:root {
  font-family: system-ui, sans-serif;
  scroll-padding-top: calc(var(--header-clearance, 0px) + clamp(2rem, 8vh, 4.5rem));
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip; }
main { display: flow-root; }
figure, blockquote, h1, h2, h3, p { margin: 0; }
button { font: inherit; }
a { color: inherit; }
button, a, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(100% - 2 * clamp(1.25rem, 4.2vw, 4.5rem), 78rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 1rem; left: 1rem; padding: .75rem; background: var(--ink); color: var(--bg); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-header, .site-footer, nav { display: flex; align-items: center; gap: clamp(.8rem, 2.7vw, 2rem); }
.site-header { min-height: 4.5rem; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-header nav { margin-left: auto; }
nav a { font-size: .88rem; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }
.brand { flex: none; font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.brand span { color: var(--accent); }
.material-icon { display: block; flex: none; width: 1.25em; height: 1.25em; }
.header-link, .button, .text-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.header-link { min-height: 2.5rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--control-radius, var(--radius)); font-size: .875rem; }
.header-link:hover { background: var(--panel); border-color: var(--muted); }
.button { min-height: 3rem; justify-content: space-between; padding: .75rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: var(--control-radius, var(--radius)); }
.button:hover { background: var(--accent-hover); }
.text-link { text-decoration: underline; text-underline-offset: .24em; font-size: .9rem; }
.text-link:hover { color: var(--accent-ink, var(--accent)); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.7rem, 5vw, 5rem); padding-block: clamp(3rem, 8vw, 7rem); }
.eyebrow { color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.5; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin-block: .75rem 1.5rem; font: var(--hero-weight, 500) clamp(2.5rem, 5vw, 4.5rem)/1.06 var(--display, system-ui); letter-spacing: -.045em; }
h1 em { color: var(--accent); display: block; font-style: normal; }
h2 { font: var(--hero-weight, 500) clamp(1.75rem, 3.3vw, 3.25rem)/1.08 var(--display, system-ui); letter-spacing: -.035em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; letter-spacing: -.015em; }
.intro, .section li p, .example p, .questions p { color: var(--muted); line-height: 1.6; }
.intro { max-width: 47ch; margin-bottom: 1.5rem; font-size: clamp(1rem, 1.6vw, 1.125rem); }
.hero-note { color: var(--muted); margin-top: .75rem; font-size: .8125rem; }
.hero-art { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.art { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; background: var(--panel); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding: .75rem 1rem; font-size: .9375rem; }
figcaption strong { font-weight: 600; }
figcaption span { color: var(--muted); font-size: .8125rem; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.3rem, 3vw, 2.25rem); }
.section-head .eyebrow, .closing .eyebrow { margin-bottom: .55rem; }
.steps-list, .examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps-list { list-style: none; padding: 0; margin: 0; }
.steps-list li, .example { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps-list li, .example-copy { padding: clamp(1rem, 2.5vw, 1.65rem); }
.step-number { display: inline-block; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; margin-bottom: .75rem; }
.section li p, .example p, .questions p { margin-top: .55rem; font-size: .96rem; }
.example { overflow: hidden; }
.faq { --faq-inset: clamp(.875rem, 1.6vw, 1.25rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 1.5rem; }
.faq .section-head { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { position: relative; cursor: pointer; list-style: none; padding: 1rem calc(2.5rem + var(--faq-inset)) 1rem var(--faq-inset); font-weight: 600; }
summary::-webkit-details-marker { display: none; }
.faq-indicator { position: absolute; top: 50%; inset-inline-end: var(--faq-inset); display: grid; place-items: center; width: 1.5rem; height: 1.5rem; translate: 0 -50%; color: var(--accent); }
.faq-indicator .material-icon { grid-area: 1 / 1; }
details:not([open]) > summary .faq-remove,
details[open] > summary .faq-add { opacity: 0; }
.questions p { margin: 0 var(--faq-inset) 1.2rem; max-width: 62ch; }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 4rem); border-block: 1px solid var(--line); }
.closing h2 { max-width: 20ch; }
.closing-links { display: grid; gap: .85rem; align-items: center; justify-items: start; }
.guide {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.guide-intro { min-width: 0; }
.guide .section-head { margin-bottom: 1.25rem; }
.guide-lead { max-width: 58ch; color: var(--muted); font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.guide-blocks { display: grid; min-width: 0; gap: 1rem; }
.guide-block { min-width: 0; padding: clamp(1.25rem, 2.7vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.guide-block h3 { max-width: 34ch; margin-bottom: .85rem; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; text-wrap: pretty; }
.guide-body > p { max-width: 65ch; color: var(--muted); font-size: .975rem; line-height: 1.7; text-wrap: pretty; }
.guide-body > p + p { margin-top: .8rem; }
.guide-block ol { margin: 1.25rem 0 0; padding: 0 0 0 1.8rem; color: var(--muted); line-height: 1.6; }
.guide-block li { padding: .8rem 0 .8rem .55rem; border-top: 1px solid var(--line); }
.guide-block li::marker { color: var(--accent-ink, var(--accent)); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.guide-table-scroll { max-width: 100%; margin-top: 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; }
.guide-table-scroll:focus-visible { outline-offset: 3px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.5; }
.guide-table caption { caption-side: top; padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 650; color: var(--ink); }
.guide-table th, .guide-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-table thead th { background: var(--table-head, var(--bg)); color: var(--ink); font-weight: 650; }
.guide-table thead th:first-child { width: 22%; }
.guide-table tbody th { color: var(--ink); font-weight: 600; }
.guide-table td { color: var(--muted); }
.guide-table tr > * + * { border-inline-start: 1px solid var(--line); }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
@media (min-width: 1001px) {
  .guide-intro { position: sticky; top: calc(var(--header-clearance, 0px) + 2rem); }
}
@media (max-width: 1000px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .guide-lead { max-width: 68ch; }
}
@media (max-width: 480px) {
  .guide-table { min-width: 30rem; }
}
.site-footer { justify-content: space-between; align-items: flex-start; padding-block: 2.5rem; }
.site-footer p { color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.site-footer nav { flex-wrap: wrap; padding-top: .5rem; }

@media (max-width: 760px) {
  .site-header nav { display: none; }
  .header-link { padding: .45rem .7rem; font-size: .8125rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero, .faq { grid-template-columns: minmax(0, 1fr); }
  .steps-list, .examples-grid { grid-template-columns: minmax(0, 1fr); }
  .closing, .site-footer { align-items: flex-start; flex-direction: column; }
  h1 { font-size: clamp(2.5rem, 8vw, 3.75rem); }
}

@font-face {
  font-family: Archivo;
  src: url("./archivo.woff2") format('woff2');
  font-display: swap;
  font-weight: 400 800;
}

:root {
  --hero-top: clamp(.625rem, 1.5vw, 1.5rem);
  --header-top: calc(var(--hero-top) + 1.2rem);
  --header-clearance: calc(var(--header-top) + 3.6rem);
}

.templates {
  --bg: #090808;
  --ink: #fff7f1;
  --muted: #c4b3ac;
  --accent: #ff521f;
  --accent-hover: var(--accent);
  --accent-ink: #ff9675;
  --on-accent: #190903;
  --panel: #171211;
  --line: #41302b;
  --radius: 1.25rem;
  --control-radius: 999px;
  --display: Archivo, system-ui, sans-serif;
  --page-gutter: clamp(.625rem, 1.8vw, 1.75rem);
  --page-max: 84rem;
  --hero-inset: clamp(1.25rem, 5.2vw, 5rem);
  font-family: var(--display);
}

.templates .brand span { color: inherit; }
.templates .site-header {
  --header-glass: #160c0bbd;
  --header-glass-hover: #301510db;
  --header-blur: blur(1rem);
  position: fixed;
  z-index: 4;
  inset: var(--header-top) 0 auto;
  width: min(
    100% - 2 * (var(--page-gutter) + var(--hero-inset)),
    var(--page-max) - 2 * var(--hero-inset)
  );
  min-height: 2.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border: 0;
  pointer-events: none;
}
.templates .site-header > * { pointer-events: auto; }
.templates .site-header .brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  text-shadow: 0 1px .25rem #000, 0 0 .65rem #000;
}
.templates .site-header :is(nav, .header-link) {
  border: 1px solid #fff7f14d;
  background: var(--header-glass);
  -webkit-backdrop-filter: var(--header-blur);
  backdrop-filter: var(--header-blur);
}
.templates .site-header nav {
  gap: 0;
  margin: 0;
  border-radius: var(--control-radius);
}
.templates .site-header nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .75rem clamp(.8rem, 1.65vw, 1.4rem);
  color: var(--ink);
}
.templates .site-header .header-link {
  justify-self: end;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.templates .site-header .header-link:hover { background: var(--accent-hover); color: var(--on-accent); }
.templates :focus-visible { outline-color: var(--accent-ink); outline-offset: 3px; }

.templates .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: clip;
  width: min(100% - 2 * var(--page-gutter), var(--page-max));
  min-height: clamp(39rem, 56vw, 49rem);
  margin-top: var(--hero-top);
  padding: clamp(6rem, 9vw, 8rem) var(--hero-inset) clamp(2.5rem, 5vw, 4.5rem);
  border: 1px solid #914025;
  border-radius: 1.65rem;
  background:
    linear-gradient(0deg, #140705cf, transparent 45%),
    repeating-linear-gradient(90deg, #fff7f135 0 1px, #fff7f108 2px, #15060636 34px),
    radial-gradient(ellipse at 81% 37%, #ff6429 0%, #e64313 29%, #81220d 54%, #29100d 72%, #130b0a 100%);
}
.templates .hero > .cover-image {
  position: absolute;
  z-index: -1;
  inset: auto -2% -29% auto;
  width: auto;
  height: 116%;
  max-width: none;
  filter: brightness(.86) saturate(.9) contrast(1.12);
  mask-image: linear-gradient(#000 77%, transparent 97%);
  pointer-events: none;
}
.templates .hero-copy { width: 69%; }
.templates .hero-kicker {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #ffd7c9;
}
.templates .hero-kicker::before {
  content: '';
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1rem var(--accent);
}
.templates h1 {
  margin-block: .8rem clamp(1.35rem, 3vw, 2rem);
  font-size: clamp(3.1rem, 7.25vw, 6.75rem);
  line-height: .96;
  font-weight: 500;
  letter-spacing: -.055em;
  word-spacing: .07em;
  text-wrap: initial;
}
.templates h1 em {
  margin-top: .1em;
  color: #ffb8a0;
  font-size: .76em;
  letter-spacing: -.05em;
}
.templates .intro {
  max-width: 34ch;
  margin-bottom: 1.2rem;
  color: #ffe8df;
  line-height: 1.45;
}
.templates .hero-note {
  max-width: 43ch;
  color: #ffcec0;
  line-height: 1.5;
}
.templates .button {
  --cta-icon-inset: .3rem;
  gap: .85rem;
  padding: .25rem .25rem .25rem 1.05rem;
}
.templates .button .material-icon,
.templates .preview-arrow {
  width: 2.4rem;
  height: 2.4rem;
  padding: .575rem;
  border-radius: 50%;
  background: var(--ink);
  color: #9a2b0d;
}

.templates .hero-preview {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: .7rem;
  margin-top: clamp(1.7rem, 3.6vw, 3rem);
  padding: .35rem .85rem .35rem .35rem;
  border: 1px solid #fff;
  border-radius: 1rem;
  background: #fff7f1;
  color: #190903;
  text-decoration: none;
}
.templates .hero-preview:hover { background: #fff; }
.templates .hero-preview img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  object-position: center 22%;
  border-radius: .65rem;
}
.templates .preview-label { display: grid; gap: .15rem; }
.templates .preview-label span { color: #8a4b38; font-size: .75rem; font-weight: 650; }
.templates .preview-label strong { color: #190903; font-weight: 700; }
.templates .hero-preview .preview-arrow { background: var(--accent); color: var(--on-accent); }
.templates .preview-arrow {
  width: 1.75rem;
  height: 1.75rem;
  padding: .375rem;
  margin-left: .25rem;
}

.templates .section {
  --tile: #131212;
  --tile-border: #352926;
  --tile-gap: clamp(.65rem, 1.4vw, 1.1rem);
  --tile-inset: clamp(1rem, 2.25vw, 1.8rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) 0;
  border-top: 0;
}
.templates :is(.section, .site-footer) {
  width: min(100% - 2 * (var(--page-gutter) + var(--hero-inset)), 72rem);
}
.templates .section-head {
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
  text-align: center;
}
.templates .section-head .eyebrow,
.templates .closing .eyebrow { color: var(--accent-ink); }
.templates h2 {
  font-size: clamp(2rem, 4.6vw, 4.15rem);
  letter-spacing: -.045em;
  word-spacing: .05em;
}
.templates .section h2 { font-size: clamp(2rem, 4.35vw, 3.85rem); }
.templates .section h2 span { display: block; color: var(--muted); }

.templates :is(.examples-grid, .steps-list, .template-study) { gap: var(--tile-gap); }
.templates .section :where(.example, .steps-list li, .template-study figcaption, .template-sheet, .questions) {
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  background: var(--tile);
}
.templates .example {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(16.5rem, 24vw, 22rem);
}
.templates .example .art {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  object-position: center 18%;
  filter: saturate(.82) brightness(.9);
}
.templates .example::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #100b09 1%, #100b09ef 14%, #100b0970 49%, transparent 78%);
}
.templates .example:nth-child(2)::before {
  background:
    radial-gradient(ellipse at 95% 100%, #9b2c11ad, transparent 72%),
    linear-gradient(0deg, #210b06 1%, #210b06f2 14%, #210b0666 49%, transparent 78%);
}
.templates .example-copy { padding: var(--tile-inset); }
.templates .example h3,
.templates .steps-list h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 500; }
.templates .example p,
.templates .steps-list p { max-width: 38ch; font-size: .9375rem; line-height: 1.5; }
.templates .example p { min-block-size: 3lh; color: #e5d8d1; }

.templates .template-study {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  margin-top: var(--tile-gap);
}
.templates .template-study figcaption {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  gap: .7rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: radial-gradient(ellipse at 0% 130%, #a52e13, #48170e 45%, transparent 77%), var(--tile);
}
.templates .template-study figcaption::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -3.5rem;
  bottom: -4.25rem;
  width: clamp(9rem, 20vw, 16rem);
  aspect-ratio: 1;
  border: 1px dashed #ffb39a68;
  border-radius: 50%;
}
.templates .template-study figcaption .eyebrow { color: var(--accent-ink); }
.templates .template-study figcaption strong {
  font-size: clamp(2.15rem, 4.35vw, 3.85rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.045em;
}
.templates .template-study figcaption p { color: var(--muted); line-height: 1.5; }
.templates .template-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  padding: .4rem;
  background: linear-gradient(145deg, #682a1b, var(--tile) 70%);
}
.templates .template-proof {
  position: relative;
  overflow: clip;
  border-radius: calc(var(--radius) - .4rem);
  background: var(--tile);
}
.templates .proof-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 18%;
}
.templates .template-proof p {
  position: absolute;
  inset: auto .4rem .4rem;
  display: flex;
  align-items: center;
  gap: clamp(.3rem, 1vw, .6rem);
  min-height: 2.45rem;
  padding: .35rem clamp(.4rem, 1vw, .75rem);
  border: 1px solid #fff7f13b;
  border-radius: .75rem;
  background: #170e0cec;
  font-size: clamp(.75rem, 1.1vw, .875rem);
  line-height: 1.2;
}
.templates .proof-index,
.templates .step-number { color: var(--accent-ink); font-variant-numeric: tabular-nums; }

.templates .steps-list li {
  display: flex;
  flex-direction: column;
  padding: var(--tile-inset);
}
.templates .steps-list li:nth-child(2) {
  background:
    radial-gradient(ellipse at 100% 0%, #582115, transparent 68%),
    var(--tile);
}
.templates .step-number {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(.75rem, 2.3vw, 1.75rem);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.06em;
}
.templates .step-number::after {
  content: '';
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #f46b3c75, transparent 95%);
}

.templates .faq {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 3rem);
  margin-bottom: clamp(3.5rem, 7vw, 6.25rem);
}
.templates .faq .section-head {
  margin: 0;
  padding-top: clamp(.5rem, 2vw, 1.5rem);
  text-align: left;
}
.templates .questions {
  display: grid;
  gap: .45rem;
  padding: clamp(.5rem, 1.2vw, .9rem);
  background: radial-gradient(ellipse at 100% 0%, #702914, transparent 75%), var(--tile);
}
.templates .questions details {
  border: 1px solid var(--tile-border);
  border-radius: .85rem;
  background: #171413;
}
.templates .questions details[open] { border-color: #9f492d; }
.templates .questions summary {
  min-height: 3.5rem;
  padding: 1.05rem 3.5rem 1.05rem var(--tile-inset);
  border-radius: .85rem;
  line-height: 1.4;
}
.templates .questions summary:focus-visible { outline-offset: -3px; }
.templates .questions .faq-indicator {
  inset-inline-end: .8rem;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid #75402e;
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: .8rem;
}
.templates .questions p {
  margin: 0 var(--tile-inset) 1.1rem;
  line-height: 1.55;
}
.templates .site-footer { gap: 1rem 2rem; }
.templates .site-footer .brand span { color: var(--accent-ink); }
.templates .site-footer p { max-width: 55ch; line-height: 1.5; }
.templates .site-footer nav { gap: .2rem 1.25rem; padding-top: 0; }
.templates .site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.templates .closing {
  justify-content: center;
  flex-direction: column;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--hero-inset);
  border: 1px solid #83331a;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 120%, #a12d10, #38160e 48%, var(--panel) 80%);
  text-align: center;
}
.templates .closing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.templates .guide { padding-bottom: clamp(3.5rem, 7vw, 6.25rem); }
.templates .guide .section-head { text-align: left; }
.templates .guide h2 { font-size: clamp(2rem, 3.7vw, 3.25rem); }
.templates .guide-block { background: var(--tile); border-color: var(--tile-border); }
.templates .guide-block h3 { font-weight: 550; letter-spacing: -.025em; }
.templates .guide-block--table { --table-head: #382019; border-color: #78402c; }
.templates .guide-table caption { color: #ffb8a0; background: #221612; }
.templates .guide-block:last-child { border-inline-start: 3px solid var(--accent); }

@media (max-width: 760px) {
  .templates .site-header { grid-template-columns: 1fr auto; }
  .templates .header-link { padding-inline: .75rem; font-size: .8125rem; }
  .templates .hero {
    min-height: auto;
    align-items: flex-start;
    padding-block: 6rem 1.4rem;
    background:
      linear-gradient(180deg, #170b0a 0%, #401309 36%, transparent 72%, #130705b0 100%),
      repeating-linear-gradient(90deg, #fff7f12e 0 1px, #fff7f108 2px, #15060636 24px),
      radial-gradient(ellipse at 75% 67%, #ff6429, #a32b0f 53%, #29100d 100%);
  }
  .templates .hero > .cover-image {
    inset: auto -1.5rem -12rem auto;
    height: 36rem;
  }
  .templates .hero-copy { width: 100%; }
  .templates h1 { font-size: clamp(2.05rem, 8.4vw, 4.5rem); }
  .templates .hero-preview { position: relative; margin-top: 21rem; }
  .templates :is(.section, .site-footer) { width: calc(100% - 2.5rem); }
  .templates .template-study,
  .templates .faq { grid-template-columns: minmax(0, 1fr); }
  .templates .example { min-height: clamp(16.5rem, 75vw, 22rem); }
  .templates .example p { min-block-size: 0; }
  .templates .faq { gap: 1.5rem; }
  .templates .closing { align-items: center; }
}

@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .templates .site-header {
    --header-glass: #171211;
    --header-glass-hover: #301510;
    --header-blur: none;
  }
}

@media (760px < width <= 1040px) {
  .templates .example p { min-block-size: 4lh; }
}

/* Shared interaction behavior; theme colors and timing stay distinct. */
:root {
  --motion-ease: cubic-bezier(.2, .8, .2, 1);
  --motion-quick: 100ms;
  --motion-control: 200ms;
}

.templates {
  --control-shadow: inset 0 0 0 1px #fff7f148, 0 0 1.25rem #ff521f36;
  --surface-hover: #392018;
  --indicator-hover: #ff9675;
  --indicator-ink: #190903;
  --table-row-hover: #ff967510;
}
.images {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --control-shadow: inset 0 0 0 1px #ffffff38, 0 .25rem 1.1rem #214bc825;
  --surface-hover: #eef4ff;
  --indicator-hover: #214bc8;
  --indicator-ink: #fff;
  --table-row-hover: #214bc80a;
}
.video {
  --motion-control: 240ms;
  --control-shadow: inset 0 0 0 1px #ffffff33, 0 0 1.4rem #d8399526;
  --surface-hover: #ffffff0d;
  --indicator-hover: var(--accent);
  --indicator-ink: var(--ink);
  --table-row-hover: #bee8f00c;
}
.prompts {
  --motion-control: 180ms;
  --control-shadow: inset 0 0 0 1px #102b2133, 0 0 0 3px #e5ff6126;
  --surface-hover: #284a3766;
  --indicator-hover: #e5ff61;
  --indicator-ink: #102b21;
  --table-row-hover: #e5ff6112;
}

/* Every button-shaped CTA uses one radius for its outer and nested surfaces. */
:is(.button, .header-link, .hero-examples-link, [data-copy]),
.prompts .hero-actions .text-link {
  --cta-radius: 1.5rem;
  --control-radius: var(--cta-radius);
  border-radius: var(--cta-radius);
}
:is(.templates, .prompts) .button .material-icon {
  border-radius: calc(var(--cta-radius) - var(--cta-icon-inset));
}

/* Underlines fade in without moving or changing the link's hit area. */
:is(.site-header, .site-footer) nav a { position: relative; }
:is(.site-header, .site-footer) nav a::after {
  content: '';
  position: absolute;
  inset-inline: var(--nav-line-inset, 0);
  bottom: var(--nav-line-bottom, -.3em);
  height: 1px;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
}
.templates .site-header nav { --nav-line-inset: clamp(.8rem, 1.65vw, 1.4rem); --nav-line-bottom: .5rem; }
.video .site-header nav { --nav-line-inset: clamp(.75rem, 1.65vw, 1.4rem); --nav-line-bottom: .5rem; }
:is(.templates, .video) .site-footer nav { --nav-line-bottom: .5rem; }

.questions summary { border-radius: .5rem; }
.faq-indicator { border-radius: 50%; }

/* Keyboard focus gets the same surface feedback, plus the theme's outline. */
:is(.button, .header-link, .hero-examples-link, .hero-preview, .prompt-map, [data-copy]):focus-visible,
.prompts .hero-actions .text-link:focus-visible {
  box-shadow: var(--control-shadow);
}
:is(.site-header, .site-footer) nav a:focus-visible::after { opacity: 1; }
:is(.button, .header-link, .hero-examples-link, [data-copy]):focus-visible,
.prompts .hero-actions .text-link:focus-visible { --cta-radius: 1.1rem; }
.questions summary:focus-visible { background-color: var(--surface-hover); }
.questions summary:focus-visible .faq-indicator {
  background-color: var(--indicator-hover);
  color: var(--indicator-ink);
  border-radius: .55rem;
}

@media (hover: hover) and (pointer: fine) {
  :is(.button, .header-link, .hero-examples-link, .hero-preview, .prompt-map, [data-copy]):hover {
    box-shadow: var(--control-shadow);
  }
  .prompts .hero-actions .text-link:hover { box-shadow: var(--control-shadow); }
  :is(.site-header, .site-footer) nav a:hover::after { opacity: 1; }
  .brand:hover { opacity: .8; }
  .text-link:hover { text-decoration-thickness: 2px; }
  .questions summary:hover { background-color: var(--surface-hover); }
  .questions summary:hover .faq-indicator {
    background-color: var(--indicator-hover);
    color: var(--indicator-ink);
    border-radius: .55rem;
  }
  .guide-table tbody tr:hover { background-color: var(--table-row-hover); }
  .templates .hero-preview:hover { border-color: var(--accent-ink); border-radius: .75rem; }
  .prompts .prompt-map:hover { border-color: var(--accent); border-radius: .9rem; }
  :is(.button, .header-link, .hero-examples-link, [data-copy]):hover,
  .prompts .hero-actions .text-link:hover { --cta-radius: 1.1rem; }
  .prompts .button:hover .material-icon { background-color: #226748; }
}

/* Press feedback is a fixed inset rim, including on touch devices. */
:is(.button, .header-link, .hero-examples-link, .hero-preview, .prompt-map, [data-copy]):active,
.prompts .hero-actions .text-link:active { box-shadow: inset 0 0 0 2px #00000030; }

/* Hover/press effects stay on surfaces; FAQ symbols animate when toggled. */
@media (prefers-reduced-motion: no-preference) {
  :is(.button, .header-link, .hero-examples-link, .text-link, .hero-preview, .prompt-map, [data-copy]) {
    transition:
      box-shadow var(--motion-control) var(--motion-ease),
      border-radius var(--motion-control) var(--motion-ease),
      background-color var(--motion-quick) ease-out,
      border-color var(--motion-quick) ease-out,
      color var(--motion-quick) ease-out;
  }
  .brand { transition: opacity var(--motion-quick) ease-out, background-color var(--motion-quick) ease-out; }
  :is(.site-header, .site-footer) nav a { transition: color var(--motion-quick) ease-out; }
  :is(.site-header, .site-footer) nav a::after {
    transition: opacity var(--motion-control) ease-out;
  }
  :is(a, button) .material-icon {
    transition: background-color var(--motion-control) ease-out, border-radius var(--motion-control) var(--motion-ease), color var(--motion-quick) ease-out;
  }
  .questions :is(details, summary), .guide-table tbody tr {
    transition: background-color var(--motion-quick) ease-out, border-color var(--motion-control) ease-out;
  }
  .faq-indicator {
    transition: border-radius var(--motion-control) var(--motion-ease), background-color var(--motion-quick) ease-out, color var(--motion-quick) ease-out;
  }
  .faq-indicator .material-icon {
    transition: opacity 120ms ease-out, rotate var(--motion-control) var(--motion-ease), scale var(--motion-control) var(--motion-ease);
  }
  details:not([open]) > summary .faq-remove { rotate: -90deg; scale: .6; }
  details[open] > summary .faq-add { rotate: 90deg; scale: .6; }

  :is(.button, .header-link, .hero-examples-link, .hero-preview, .prompt-map, [data-copy]):active,
  .prompts .hero-actions .text-link:active {
    transition-duration: 80ms;
  }
}
