/* AI Creator Pro: one small stylesheet, self-hosted fonts, no frameworks. */
@font-face { font-family: "Quattrocento"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/quattrocento-400.woff2") format("woff2"); }
@font-face { font-family: "Quattrocento"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/quattrocento-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-normal.woff2") format("woff2"); }
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --sunken: #f3efe9;
  --ink: #141414;
  --ink-2: #3b3835;
  --muted: #6b655f;
  --line: #e7e1d9;
  --brand: #ff2525;
  --brand-strong: #dc1414;
  --link: #c4121f;
  --hl-bg: rgba(255, 37, 37, .12);
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px -12px rgba(20, 20, 20, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Quattrocento", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0f;
    --surface: #161618;
    --sunken: #1c1c1f;
    --ink: #f3f0eb;
    --ink-2: #d5d0c9;
    --muted: #9e9891;
    --line: #2a2a2e;
    --link: #ff6b6b;
    --hl-bg: rgba(255, 37, 37, .2);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.hl { font-style: normal; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: #c20d0d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-yt { background: var(--ink); color: var(--bg); }
.btn-yt:hover { opacity: .88; }
.btn svg { flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav > a:not(.btn):hover, .nav > a[aria-current] { color: var(--ink); background: var(--sunken); }
.nav .btn { margin-left: 6px; min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav > a:not(.btn) { padding: 8px 7px; font-size: 14px; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 0 11px; margin-left: 2px; }
}

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-inner { max-width: 900px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--hl-bg); }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 400; margin: 22px 0 20px; letter-spacing: -.012em; line-height: 1.08; }
.hl { color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .hl { color: var(--brand); } }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 680px; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Steps */
.steps ol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hl-bg); color: var(--brand-strong); font-weight: 800; }
@media (prefers-color-scheme: dark) { .step-n { color: var(--brand); } }
.steps h2 { font-size: 22px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }

/* Sections and cards */
.section { padding: 56px 20px 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head a { font-weight: 600; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1060px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--sunken); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 12px; top: 12px; background: rgba(14, 14, 15, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 22px; line-height: 1.2; }
.card-body .muted { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { margin-top: auto; padding-top: 6px; font-weight: 650; color: var(--link); font-size: 15px; }
.kicker { font-size: 12.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .kicker { color: var(--brand); } }

.about-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: calc(var(--max) - 40px); }
.about-strip h2 { font-size: 29px; margin-bottom: 8px; }
.about-strip p { color: var(--ink-2); max-width: 640px; }
@media (max-width: 760px) { .about-strip { flex-direction: column; align-items: flex-start; margin-left: 20px; margin-right: 20px; padding: 24px; } }

/* Page head + filter chips */
.page-head { padding-top: 56px; padding-bottom: 8px; max-width: 860px; }
.page-head h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 400; letter-spacing: -.01em; margin-bottom: 14px; }
.page-head .lead { margin: 0; }
.page-head.center { text-align: center; margin: 0 auto; padding-bottom: 80px; }
.page-head.center .lead { margin: 0 auto 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font: 600 14px/1 var(--font); padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#prompt-grid { margin-top: -24px; }

/* Post */
.post-head { max-width: 860px; padding-top: 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post-head h1 { font-size: clamp(32px, 4.8vw, 50px); font-weight: 400; letter-spacing: -.01em; margin: 10px 0 16px; }
.dek { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14.5px; margin-top: 18px; }
.post-media { max-width: 1040px; margin-top: 30px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent 50%); }
.play svg { transition: transform .2s ease; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
.play:hover svg { transform: scale(1.08); }
.post-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tools li { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

.post-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; justify-content: center; margin-top: 48px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.toc summary { font-weight: 750; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; line-height: 1.35; }
.toc a:hover, .toc a.active { color: var(--ink); }
.toc a.active { font-weight: 650; }
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; max-width: 760px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; }
  .toc summary { margin: 0; }
  .toc summary::after { content: " +"; }
  .toc details[open] summary { margin-bottom: 10px; }
  .toc details[open] summary::after { content: " −"; }
}

/* Article prose */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--ink); font-size: clamp(27px, 3.2vw, 34px); margin-top: 2.1em; }
.prose h3 { color: var(--ink); font-size: 23px; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .65em; }
.prose strong { color: var(--ink); font-weight: 680; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand-strong); font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--sunken); border: 1px solid var(--line); padding: .1em .38em; border-radius: 6px; color: var(--ink); }
.prose > p:first-child { font-size: 20px; color: var(--ink); }
.callout { background: var(--hl-bg); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; color: var(--ink); font-size: 17px; }
.faq { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 0 20px; }
.faq + .faq { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 680; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-strong); font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: 18px; font-size: 17px; }

/* Prompt boxes */
.prompt { margin: 1.6em 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prompt-main { border: 2px solid var(--brand); box-shadow: 0 0 0 6px var(--hl-bg); }
.prompt figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.prompt-title { font-weight: 750; color: var(--ink); font-size: 15.5px; }
.prompt-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.prompt pre {
  margin: 0; padding: 18px; font: 14px/1.6 var(--mono); color: var(--ink);
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.prompt-main pre { max-height: none; }
.prompt-main.is-collapsed pre { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.prompt-actions .btn.copied { background: #138a3e; }
.expand { margin-right: auto; }

/* End card + related */
.end-card { margin-top: 3em; padding: 28px; border-radius: var(--radius); background: var(--ink); color: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.end-card h2 { color: var(--bg); font-size: 29px; margin: 0 0 6px; }
.end-card p { color: color-mix(in srgb, var(--bg) 75%, transparent); font-size: 16px; max-width: 420px; }
.end-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.end-card .btn-yt { background: var(--brand-strong); color: #fff; }
.end-card .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.related { padding-top: 72px; }
.related > h2 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 22px; }
.ad { margin: 2em 0; min-height: 100px; }

/* Static pages */
.prose-page { max-width: 760px; padding-bottom: 24px; }
.prose-page > p:first-child { font-size: 18px; color: var(--ink-2); }

/* Footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 28px; background: var(--surface); }
.footer-row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-row .muted { margin-top: 10px; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.fine { margin-top: 28px; font-size: 13.5px; color: var(--muted); }
