@charset "utf-8";
/* ==========================================================================
   Inkwren Studio — inkwrenstudios.com
   One stylesheet, no framework, no build step.
   Palette: cream #F4EFE6 · ink #1F3147 · terracotta #C97D5D · sage #8FA68E
   Type:    Fraunces (display) · Atkinson Hyperlegible (body)
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, subset to latin) ---------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- 2. Tokens ---------------------------------------------------- */

:root {
  --cream:      #F4EFE6;
  --paper:      #FBF8F3;
  --cream-deep: #EAE2D5;
  --ink:        #1F3147;
  --ink-deep:   #16233A;
  --terracotta: #C97D5D;          /* rules, marks, decoration only */
  --terracotta-text: #9C5334;     /* the same accent, dark enough for small text */
  --sage:       #8FA68E;
  --charcoal:   #2E2E2E;
  --muted:      #54616F;
  --rule:       rgba(31, 49, 71, .16);
  --rule-soft:  rgba(31, 49, 71, .09);

  --maya:   #8FA68E;
  --leo:    #D9A441;
  --jaylen: #C97D5D;
  --mei:    #C98C93;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont,
           "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 8vw, 104px);
}

/* ---------- 3. Reset & base --------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.5rem + 3.1vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.55vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); }
h4 { font-size: 1.0625rem; }

p, ul, ol, dl { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--section) 0; }

strong, b { font-weight: 700; }
small { font-size: .8125rem; }

::selection { background: rgba(201, 125, 93, .28); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. Layout helpers ------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule-soft); }
.section--tint { background: var(--cream-deep); border-top: 1px solid var(--rule-soft); }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.1em;
}
.lede { font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--charcoal); }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .8em 1.2em; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: .9375rem;
  letter-spacing: .015em; line-height: 1.2;
  padding: .92em 1.5em; border-radius: 2px; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: rgba(31, 49, 71, .05); color: var(--ink); border-color: var(--ink); }
.btn--small { font-size: .8125rem; padding: .7em 1.05em; }

.btn[aria-disabled="true"],
.btn[aria-disabled="true"]:hover {
  background: transparent; color: var(--muted);
  border: 1px dashed var(--rule); cursor: default;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- 6. Header ---------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--rule-soft);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 18px; flex-wrap: wrap;
}
.brand { display: inline-block; line-height: 0; text-decoration: none; }
.brand img { width: clamp(158px, 20vw, 196px); height: auto; }

.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: .875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding-block: 4px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--terracotta); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .nav-shop a { color: var(--muted); }

/* ---------- 7. Hero ------------------------------------------------------ */

.hero { padding-block: clamp(44px, 6vw, 80px) clamp(40px, 5vw, 68px); }
.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero .lede { max-width: 46ch; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border: 1px solid var(--rule); }
.hero-figure figcaption {
  margin-top: 14px; font-size: .8125rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.swatch-row { display: flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: block; }

/* ---------- 8. Numbered three-up ---------------------------------------- */

.grid-3 { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step .num {
  font-family: var(--serif); font-weight: 400; font-size: 1rem;
  color: var(--terracotta-text); display: block; margin-bottom: .6em;
  letter-spacing: .08em;
}
.step h3 { margin-bottom: .5em; }
.step p { font-size: .9688rem; color: var(--charcoal); margin-bottom: 0; }

/* ---------- 9. Characters ------------------------------------------------ */

.char-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.char {
  background: var(--paper); border: 1px solid var(--rule-soft);
  display: flex; flex-direction: column;
}
.char img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.char-body { padding: 18px 20px 22px; }
.char-name { display: flex; align-items: center; gap: 9px; margin: 0 0 .35em; font-size: 1.125rem; }
.char-name .swatch { width: 12px; height: 12px; }
.char-body p { font-size: .875rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* character detail rows */
.char-row {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(36px, 5vw, 56px);
}
.char-row + .char-row { border-top: 1px solid var(--rule-soft); }
.char-row:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.char-row:nth-child(even) .char-row-media { order: 2; }
.char-row-media { max-width: 360px; }
.char-row:nth-child(even) .char-row-media { justify-self: end; }
.char-row-media img { width: 100%; border: 1px solid var(--rule-soft); }
.char-rule { width: 56px; height: 3px; border: 0; margin: 0 0 1.2em; }

/* ---------- 10. Story cards ---------------------------------------------- */

.story-grid { display: grid; gap: clamp(30px, 3.4vw, 44px); grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.story { display: flex; flex-direction: column; }
.story-cover { display: block; border: 1px solid var(--rule-soft); background: var(--paper); }
.story-cover img { width: 100%; aspect-ratio: 11 / 8.5; object-fit: cover; }
.story h3 { margin: 18px 0 .4em; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-color: var(--terracotta); }
.story p { font-size: .9375rem; line-height: 1.6; color: var(--muted); margin: 0 0 1.15em; }
.story .btn-row { margin-top: auto; padding-top: 4px; gap: 10px; }
.story .price {
  font-family: var(--serif); font-size: .9375rem; color: var(--muted);
  margin: 0 0 .8em; letter-spacing: .01em;
}

/* ---------- 11. Pricing -------------------------------------------------- */

.price-grid { display: grid; gap: clamp(20px, 2.6vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier {
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column;
}
.tier--feature { border-color: var(--ink); }
.tier .tag {
  font-size: .6875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--terracotta-text); margin: 0 0 1.4em;
}
.tier h3 { margin-bottom: .3em; }
.tier .amount {
  font-family: var(--serif); font-weight: 600; font-size: 2.4rem; color: var(--ink);
  line-height: 1; margin: .35em 0 .55em; letter-spacing: -.02em;
}
.tier ul { list-style: none; padding: 0; margin: 1.1em 0 1.6em; }
.tier li {
  font-size: .9063rem; color: var(--charcoal); padding: .48em 0 .48em 1.35em;
  border-top: 1px solid var(--rule-soft); position: relative; line-height: 1.5;
}
.tier li::before {
  content: ""; position: absolute; left: 0; top: 1.02em;
  width: 7px; height: 1px; background: var(--terracotta);
}
.tier .btn { margin-top: auto; }

/* ---------- 12. Panels, callouts, prose ---------------------------------- */

.panel {
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(26px, 4vw, 44px);
}
.panel--ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.panel--ink h2, .panel--ink h3 { color: var(--cream); }
.panel--ink .eyebrow { color: rgba(244, 239, 230, .72); }
.panel--ink a:not(.btn) { color: var(--cream); text-decoration-color: rgba(244, 239, 230, .5); }
.panel--ink .btn { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.panel--ink .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.panel--ink .btn--ghost { background: transparent; color: var(--cream); border-color: rgba(244, 239, 230, .45); }
.panel--ink .btn--ghost:hover { background: rgba(244, 239, 230, .1); color: var(--cream); border-color: var(--cream); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 2em 0; padding-left: clamp(18px, 3vw, 28px);
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.45; color: var(--ink);
}

.note {
  border: 1px dashed var(--rule); background: var(--paper);
  padding: 18px 22px; font-size: .9063rem; color: var(--muted); margin-bottom: 2.2em;
}
.note strong { color: var(--ink); }

.disclaimer { font-size: .875rem; color: var(--muted); }

/* definition-style FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq > div { border-bottom: 1px solid var(--rule-soft); padding-block: clamp(24px, 3vw, 32px); }
.faq h2 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.375rem); margin-bottom: .6em; }
.faq p { color: var(--charcoal); max-width: 68ch; }

/* professional credential list */
.prose .role-list { padding-left: 0; }
.role-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px; list-style: none; padding: 0; margin: 2rem 0 0; }
.role-list li {
  border-top: 1px solid var(--rule); padding: 14px 0 4px;
  font-size: .9063rem; color: var(--charcoal);
}
.role-list strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: .2em; }

/* ---------- 13. Sign-up -------------------------------------------------- */

.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.signup-form { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.signup-form label { flex: 1 1 220px; display: block; }
.signup-form .label-text {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .5em;
}
.signup-form input[type="email"] {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--charcoal);
  background: var(--paper); border: 1px solid var(--rule);
  padding: .82em .9em; border-radius: 2px;
}
.signup-form input[type="email"]::placeholder { color: #626A75; }
.signup-form input[type="email"]:focus-visible { border-color: var(--ink); }
.signup-form .btn { align-self: end; }
.form-note { font-size: .8125rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- 14. Footer --------------------------------------------------- */

.site-foot { background: var(--ink); color: rgba(244, 239, 230, .8); margin-top: 0; }
.site-foot a { color: var(--cream); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; }
.foot-top {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  padding-block: clamp(44px, 6vw, 72px);
}
.foot-brand img { width: 190px; }
.foot-brand p { margin: 18px 0 0; font-size: .9063rem; max-width: 32ch; color: rgba(244, 239, 230, .72); }
.foot-col h2 {
  font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(244, 239, 230, .6); margin: 0 0 1.1em;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .62em; font-size: .9375rem; }
.foot-col a[data-todo] { color: rgba(244, 239, 230, .6); }
.foot-bottom {
  border-top: 1px solid rgba(244, 239, 230, .18);
  padding-block: 26px 34px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: .8125rem; color: rgba(244, 239, 230, .62);
}
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.foot-legal { max-width: 62ch; }

/* ---------- 15. 404 ------------------------------------------------------ */

.err { padding-block: clamp(72px, 12vw, 148px); text-align: center; }
.err img.wren { width: 64px; margin: 0 auto 30px; }
.err .btn-row { justify-content: center; }

/* ---------- 16. Responsive ---------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char-row, .split, .signup { grid-template-columns: minmax(0, 1fr); }
  .char-row:nth-child(even) .char-row-media { order: 0; }
  .char-row-media { max-width: 340px; }
}

@media (max-width: 700px) {
  .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-head { position: static; }
  .head-inner { padding-block: 14px 12px; gap: 12px; }
  .nav ul { gap: 14px 18px; }
  .nav a { font-size: .8125rem; letter-spacing: .03em; }
  .story-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .btn { width: 100%; }
  .btn-row { gap: 10px; }
  .story .btn-row .btn { width: auto; flex: 1 1 130px; }
  .signup-form .btn { width: 100%; }
}

@media (max-width: 420px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 17. Motion & print ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .site-foot, .btn-row, .signup { display: none; }
  body { background: #fff; color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
