/* Visuals Media Co. — resource / guide pages (r/*) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/inter-v20-latin.woff2") format("woff2"); }
@font-face { font-family: "Questrial"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/questrial-v19-latin.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #000; --bg-2: #0b0c0b; --card: #111311;
  --line: rgba(236,235,230,.12); --text: #ecebe6; --muted: #8c918b; --muted-2: #a7a49b;
  --sage: #93ac8f; --sage-deep: #4f6b4b; --prompt: #0f130f; --mark: rgba(147,172,143,.22);
  --display: "Questrial", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="day"] {
  color-scheme: light;
  --bg: #fff; --bg-2: #f4f5f2; --card: #eef0eb;
  --line: rgba(0,0,0,.12); --text: #0b0c0b; --muted: #5e635d; --muted-2: #4c514b;
  --sage: #536f50; --prompt: #f1f4ef; --mark: rgba(83,111,80,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--sage); color: #000; }

/* top bar */
.gbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.gbar__logo img { height: 15px; width: auto; }
:root[data-theme="day"] .gbar__logo img { filter: invert(1); }
.gbar__right { display: flex; align-items: center; gap: 10px; }
.tbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.tbtn .ic-moon { display: none; }
:root[data-theme="day"] .tbtn .ic-sun { display: none; }
:root[data-theme="day"] .tbtn .ic-moon { display: block; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; background: var(--sage-deep); color: #fff; white-space: nowrap; }
.pill:hover { background: var(--sage); color: #000; }
.pill--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.pill--ghost:hover { background: var(--card); color: var(--text); }

/* article */
.guide { max-width: 760px; margin: 0 auto; padding: 28px clamp(16px, 5vw, 32px) 80px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--text); }
.eyebrow { display: block; margin-top: 28px; color: var(--sage); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -.01em; margin-top: 10px; }
.lede { margin-top: 14px; font-size: 18px; color: var(--muted-2); }
.author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.author__pic { width: 60px; height: 60px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.author b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.author a { color: var(--sage); font-size: 13.5px; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
details.toc { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details.toc summary { cursor: pointer; font-weight: 500; }
details.toc ol { margin: 10px 0 2px 20px; color: var(--muted-2); font-size: 15px; }
details.toc a { text-decoration: none; } details.toc a:hover { color: var(--sage); }

.need { margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--bg-2); }
.need ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 22px; margin-top: 10px; font-size: 15px; }
.need li { padding-left: 16px; position: relative; }
.need li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.label { color: var(--sage); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

section.step { margin-top: 56px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(25px, 4.6vw, 32px); line-height: 1.2; margin-top: 6px; }
section.step p, section.step ol, section.step ul { margin-top: 12px; }
section.step ol, section.step ul { padding-left: 22px; }
section.step li { margin-top: 4px; }
.guide a.u { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.note { font-size: 14.5px; color: var(--muted-2); margin-top: 12px; }
.note b { color: var(--text); font-weight: 600; }

/* prompt box */
.prompt { margin-top: 16px; border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: 4px 12px 12px 4px; background: var(--prompt); padding: 14px 18px 16px; }
.prompt__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.copy:hover { border-color: var(--sage); }
.copy.is-done { background: var(--sage-deep); color: #fff; border-color: transparent; }
.prompt__body { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.65; }
.prompt__body ol, .prompt__body ul { margin-top: 6px; padding-left: 22px; }
.prompt__body p + p, .prompt__body ol + p, .prompt__body ul + p { margin-top: 6px; }
.fill { background: var(--mark); color: var(--sage); border-radius: 4px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.tbl th { text-align: left; color: var(--sage); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 8px 10px; border-bottom: 2px solid var(--sage-deep); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { font-weight: 600; width: 32%; }
.tbl .copy { margin-top: 8px; }
@media (max-width: 560px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100% !important; }
  .tbl thead { display: none; }
  .tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 2px 0; }
}

/* all prompts */
.all { margin-top: 64px; border: 1px solid var(--line); border-radius: 18px; padding: 24px clamp(16px, 4vw, 28px); background: var(--bg-2); }
.all__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.all ol { list-style: none; counter-reset: p; margin-top: 18px; }
.all li { counter-increment: p; position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.all li::before { content: counter(p) "."; position: absolute; left: 0; top: 14px; color: var(--sage); font-weight: 600; }
.all li p { font-size: 15px; font-weight: 500; }
.all li small { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 13px; }

.outro { text-align: center; margin-top: 56px; }
.outro h2 { font-size: clamp(26px, 5vw, 34px); }
.outro p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.outro a { color: var(--sage); }
.hire { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.hire p { color: var(--muted-2); max-width: 420px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 999px; font-size: 13.5px; pointer-events: none; z-index: 20; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 480px) { .gbar .pill { display: none; } }
@media print { .gbar, .actions, .copy, .hire, details.toc { display: none !important; } }

/* resources index */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.rcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; background: var(--bg-2); transition: border-color .3s, transform .3s; }
.rcard:hover { border-color: var(--sage); transform: translateY(-2px); }
.rcard__art { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--sage-deep); color: #fff; padding: 20px; text-align: center; font-family: var(--display); font-size: 24px; line-height: 1.15; }
.rcard__body { padding: 16px 18px 18px; }
.rcard__body b { display: block; font-weight: 500; font-size: 18px; line-height: 1.35; margin-top: 6px; }
.rcard__body p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.rcard__go { color: var(--sage); font-size: 13.5px; margin-top: 12px; display: inline-block; }
