/* OpenArt Creator Guides: shared styles. Mobile-first; most visitors arrive from an Instagram DM.
   Editorial layout: no outlined cards, pills or glows. Whitespace does the separating.
   Colors and type follow openart.ai (brand pink #fb23c2, Inter). */
:root {
  --bg: #0a0a0b;
  --fill: #141417;
  --text: #edeef0;
  --muted: #a9adb4;
  --faint: #767a83;
  --brand: #fb23c2;
  --brand-hover: #ed00b5;
  --brand-text: #ff82db;
  --ok: #05df72;
  --col: 680px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 11, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.brand img { width: 94px; height: auto; flex: none; align-self: center; }
.brand-sub { font-size: 13px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.brand:hover { color: var(--text); }
.top .btn { padding: 9px 15px; font-size: 14px; }

/* Buttons: OpenArt brand solid, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff;
  font: 700 17px/1.1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { color: #fff; background: var(--brand-hover); }
.arrow { font-size: 1.05em; line-height: 1; }
.go-link { font-weight: 650; text-decoration: none; }
.go-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 40px 0 0; }
.crumb { font-size: 13px; color: var(--faint); margin: 0 0 18px; }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 12px; }
h1 { font-size: clamp(34px, 9vw, 54px); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 800; text-wrap: balance; }
h1 .g { color: var(--brand); }
.dek { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.byline { font-size: 13px; color: var(--faint); margin: 0 0 26px; }
.hero-cta { display: grid; gap: 12px; }
.hero-cta small { color: var(--faint); font-size: 13px; text-align: center; }
.hero-cta small b { color: var(--text); font-weight: 600; }

figure { margin: 0; }
.hero-img { margin: 34px -16px 0; }
.hero-img img { width: 100%; height: auto; }
figcaption { font-size: 13px; color: var(--faint); margin-top: 10px; line-height: 1.45; }
.hero-img figcaption { padding: 0 16px; }

/* Short version */
.summary { margin: 44px 0 0; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.summary ol { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.summary li { counter-increment: s; position: relative; padding: 0 0 14px 40px; font-size: 18px; }
.summary li::before { content: counter(s); position: absolute; left: 0; top: -2px; font-size: 22px; font-weight: 800; color: var(--brand); }

/* TOC */
.toc { margin: 30px 0 0; }
.toc summary { cursor: pointer; font-weight: 650; font-size: 15px; list-style: none; color: var(--muted); display: inline-flex; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--brand-text); }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 12px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; font-size: 15px; }
.toc li::marker { color: var(--faint); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

/* Article */
section { padding-top: 64px; scroll-margin-top: 70px; }
h2 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 800; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; margin: 30px 0 8px; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 16px; }
ul.list { padding-left: 20px; margin: 0 0 18px; }
ul.list li { margin-bottom: 9px; padding-left: 2px; }
ul.list li::marker { color: var(--brand); }
strong { color: #fff; font-weight: 650; }
.muted { color: var(--muted); }
.step-label { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 8px; }
.tip { color: var(--muted); }
.tip strong { color: var(--text); }

/* Images inside the article */
.shot { margin: 22px 0 24px; }
.shot img { width: 100%; height: auto; border-radius: 12px; }
.shot.narrow img { max-width: 320px; margin: 0 auto; }
.shot.narrow figcaption { text-align: center; }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 22px 0 10px; }
.styles img { width: 100%; height: auto; border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; }
.styles figcaption { margin-top: 7px; font-size: 14px; color: var(--text); font-weight: 600; }
.styles-note { font-size: 13px; color: var(--faint); margin: 0 0 24px; }

/* Prompt block: a quiet filled panel, no outline */
.prompt { margin: 16px 0 22px; padding: 14px 16px 16px; border-radius: 12px; background: var(--fill); }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.prompt-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.prompt-body { font-size: 16.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.prompt-foot { margin-top: 10px; font-size: 13px; color: var(--faint); }
.copy {
  appearance: none; border: 0; background: none; color: var(--brand-text);
  font: 650 14px/1 var(--font); padding: 8px 0 8px 12px; cursor: pointer; min-height: 34px; flex: none;
}
.copy:hover { color: #fff; }
.copy.done { color: var(--ok); }

/* Explainer form fields inside a prompt panel */
.field { padding: 10px 0; }
.field + .field { padding-top: 4px; }
.field-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.field-val { font-size: 16.5px; }

/* One-line copyable ideas */
.ideas { list-style: none; margin: 14px 0 22px; padding: 0; }
.ideas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 17px; }
.ideas li span::before { content: "→ "; color: var(--brand); }

/* Ladder */
.ladder { margin: 26px 0 8px; }
.rung { display: grid; grid-template-columns: 46px 1fr; gap: 0 6px; margin-bottom: 28px; }
.rung-num { font-size: 34px; line-height: 1; font-weight: 800; color: var(--brand); letter-spacing: -0.04em; padding-top: 2px; }
.rung-lvl { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); margin: 0 0 2px; }
.rung h3 { margin: 0 0 6px; font-size: 20px; }
.rung p { margin: 0 0 6px; color: var(--muted); }
.rung .skill { font-size: 15px; }
.rung .skill b { color: var(--brand-text); font-weight: 650; }

/* FAQ */
.faq details { padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 30px 12px 0; font-weight: 650; position: relative; list-style: none; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 9px; font-size: 22px; font-weight: 400; color: var(--brand-text); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 12px; color: var(--muted); }

/* Closing CTA */
.closing { text-align: center; padding: 84px 0 24px; }
.closing-logo { width: 116px; margin: 0 auto 22px; }
.closing h2 { margin-bottom: 12px; }
.closing p { color: var(--muted); margin: 0 auto 26px; max-width: 28em; }
.closing .url { display: block; margin-top: 14px; font-size: 14px; color: var(--faint); }
.next-guide { text-align: center; margin: 30px 0 0; font-size: 16px; color: var(--faint); }

/* Footer */
footer { margin-top: 64px; padding: 0 0 120px; color: var(--faint); font-size: 13px; line-height: 1.55; }
footer img { width: 80px; opacity: .55; margin-bottom: 12px; }
footer p { margin: 0 0 6px; }

/* Sticky CTA (mobile) */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10,10,11,1) 55%, rgba(10,10,11,0));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky.on { transform: translateY(0); }
.sticky .btn { width: 100%; max-width: var(--col); margin: 0 auto; display: flex; }

/* Index */
.cards { display: grid; gap: 40px; margin: 40px 0 0; }
.card { display: block; color: var(--text); text-decoration: none; }
.card img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 16px; }
.card h2 { font-size: 26px; margin: 0 0 6px; }
.card p { color: var(--muted); margin: 0 0 8px; }
.card .go { color: var(--brand-text); font-weight: 650; font-size: 15px; }
.card:hover { color: var(--text); }
.card:hover .go { color: #fff; }

@media (max-width: 359px) {
  .brand-sub { display: none; }
}
@media (max-width: 759px) {
  .closing .btn { width: 100%; padding: 15px 14px; font-size: 16px; white-space: nowrap; }
}
@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { padding-top: 64px; }
  .hero-cta { grid-template-columns: auto 1fr; align-items: center; }
  .hero-cta small { text-align: left; }
  .hero-img { margin-left: 0; margin-right: 0; }
  .hero-img img { border-radius: 14px; }
  .hero-img figcaption { padding: 0; }
  .styles { grid-template-columns: repeat(4, 1fr); }
  .sticky { display: none; }
  footer { padding-bottom: 48px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky { transition: none; }
}

/* Index: horizontal cards on wider screens */
@media (min-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 36px; }
  .card { display: grid; grid-template-columns: 280px 1fr; gap: 0 24px; align-items: center; }
  .card img { margin: 0; grid-row: span 3; }
}
