/* amberkuhlman.com — plain CSS, no build step.
   Palette and type come from Amber's own mark (teal brush heart, violet script on black);
   business/promotion/brand.md has the full guide. Canva graphics use the same tokens. */
:root {
  --ink: #0b0a0f;
  --ink-2: #14121a;
  --ink-3: #1d1a25;
  --line: #2b2735;
  --paper: #f3eff7;
  --muted: #a9a2b6;
  --teal: #19c3b3;
  --teal-soft: #7fd8d4;
  --violet: #8a52f5;
  --violet-soft: #b896ff;
  --radius: 10px;
  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --script: "Allura", "Snell Roundhand", cursive;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 68rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; }
a { color: var(--teal-soft); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.eyebrow {
  margin: 0 0 .6rem;
  font: 500 .75rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
.script-name { font-family: var(--script); font-weight: 400; color: var(--violet-soft); margin: 0; }
.script-name.nav { font-size: 1.9rem; line-height: 1; }
.script-name.section { font-size: clamp(3rem, 7vw, 4.2rem); }
.script-name.small { font-size: 2.2rem; }
/* Heading roles (the design system's names; the page selectors below set the same sizes) */
.heading { margin: 0; }
.heading.hero { font-size: clamp(3.2rem, 9vw, 6rem); letter-spacing: -.01em; }
.heading.section { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.heading.series { font-size: 1.7rem; }
.heading.card { font-size: 1.5rem; }

/* Brand lockup: teal heart + script name (the heart is a stand-in until Amber's mark file arrives) */
.brand-mark { display: inline-flex; align-items: center; gap: .55em; color: var(--violet-soft); text-decoration: none; }
.brand-mark svg { width: 1.15em; height: 1.15em; fill: var(--teal); flex: none; }
.brand-mark .script-name { font-size: inherit; line-height: 1; }
.brand-mark.nav { font-size: 1.9rem; }
.brand-mark.hero { font-size: clamp(3rem, 7vw, 4.2rem); }
.brand-mark.small { font-size: 2.2rem; }
.brand-mark.stacked { flex-direction: column; gap: .15em; }
.brand-mark.stacked svg { width: 1.6em; height: 1.6em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem max(1rem, calc((100% - var(--wrap)) / 2));
  background: rgb(11 10 15 / .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font: 400 1.9rem/1 var(--script); color: var(--violet-soft); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--paper); }
.nav-links .nav-cta { color: var(--teal); }

/* Hero: the current launch */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgb(25 195 179 / .16), transparent 60%),
    radial-gradient(40rem 26rem at 10% 90%, rgb(138 82 245 / .16), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 4rem 1rem 4.5rem;
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1.2fr .8fr;
}
.hero h1 { font-size: clamp(3.2rem, 9vw, 6rem); margin: 0; letter-spacing: -.01em; }
.hook { font: italic 500 clamp(1.3rem, 2.6vw, 1.7rem)/1.35 var(--display); margin: .9rem 0 1rem; max-width: 34rem; }
.launch-date { margin: 0; color: var(--teal-soft); font-weight: 500; }
.fine { margin: 1.25rem 0 0; font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.hero-cover img { width: min(100%, 20rem); display: block; margin-left: auto; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8), 0 0 0 1px var(--line), 0 0 80px -10px rgb(25 195 179 / .35); }

.countdown { display: flex; gap: .6rem; margin-top: 1.1rem; }
.countdown div { min-width: 4.2rem; padding: .55rem .5rem; text-align: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); }
.countdown b { display: block; font: 600 1.7rem/1 var(--display); color: var(--paper); }
.countdown span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.cta, .buy, .newsletter button {
  display: inline-block; font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--teal); color: var(--ink);
}
.cta.ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.cta:hover, .buy:hover, .newsletter button:hover { filter: brightness(1.1); }
.cta.ghost:hover { border-color: var(--violet); }
.cta:disabled, .buy:disabled, .cta[aria-disabled="true"], .buy[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1rem; }
.section.alt { max-width: none; background: var(--ink-2); border-block: 1px solid var(--line); }
.section.alt > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 2rem; }
.section h2.script-name { font-size: clamp(3rem, 7vw, 4.2rem); margin-bottom: 1rem; }
.bio { font-size: 1.1rem; max-width: 42rem; }
.note, .loading { color: var(--muted); }

/* Books */
.series { margin-bottom: 3.5rem; }
.series-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem;
  border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1.5rem; }
.series-name { font-size: 1.7rem; margin: 0; }
.series-note { font-size: .9rem; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 2rem 1.5rem; }
.book { display: flex; flex-direction: column; gap: .7rem; }
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; border-radius: 6px;
  background: var(--ink-3); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .9), 0 0 0 1px var(--line);
  transition: transform .25s ease; }
.book:hover .cover { transform: translateY(-4px); }
.cover.placeholder { display: grid; place-items: center; padding: 1rem; text-align: center;
  font: 600 1.4rem var(--display); color: var(--muted);
  background: linear-gradient(160deg, var(--ink-3), #241a33); }
.book-num { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.book h3 { font-size: 1.5rem; margin: 0; }
.book .hook-line { margin: 0; font-size: .95rem; color: var(--paper); }
.book details { font-size: .92rem; color: var(--muted); }
.book summary { cursor: pointer; color: var(--violet-soft); font-size: .85rem; }
.book details p { margin: .5rem 0 0; }
.badge { align-self: flex-start; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--violet); color: var(--violet-soft); }
.buys { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .3rem; }
.buy { padding: .6rem 1rem; font-size: .88rem; }

.hidden-book { opacity: .55; }
.hidden-badge { border-color: var(--muted); color: var(--muted); }
.preview-bar { margin: 0; padding: .5rem 1rem; text-align: center; font-size: .85rem;
  background: var(--violet); color: var(--paper); }

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; max-width: 34rem; }
.newsletter input { flex: 1 1 16rem; font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2); color: inherit; }

/* Footer */
.footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid var(--line); }
.script-name.small { font-size: 2.2rem; margin: 0 0 1rem; }
.social { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--teal); }
.copyright { margin: 0; font-size: .85rem; color: var(--muted); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

@media (max-width: 48rem) {
  .hero-inner { grid-template-columns: 1fr; padding: 2.5rem 1rem 3rem; }
  .hero-cover { order: -1; }
  .hero-cover img { margin: 0 auto; width: min(70%, 15rem); }
  .section { padding: 3rem 1rem; }
  .nav-links { gap: .9rem; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}

/* Cards: links and prices */
.cover-link { display: block; }
.book h3 a { color: inherit; text-decoration: none; }
.book h3 a:hover { color: var(--teal-soft); }
.buy, .read-link { display: inline-flex; align-items: center; gap: .55rem; }
.price { font-weight: 600; }
.buy .price { color: var(--ink); opacity: .75; }
.more { align-self: center; font-size: .85rem; color: var(--violet-soft); text-decoration: none; }
.more:hover { color: var(--paper); }

/* Book page */
.book-page h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0; }
.book-hero { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: 2.5rem; align-items: start; margin-top: 1rem; }
.book-hero-cover .cover { box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8), 0 0 0 1px var(--line), 0 0 80px -10px rgb(25 195 179 / .3); }
.pen { margin: .4rem 0 0; color: var(--muted); }
.read-head { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.read-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.read-link { justify-content: space-between; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); color: var(--paper); text-decoration: none; font-size: .92rem; }
.read-link:hover { border-color: var(--teal); }
.read-link .price { color: var(--teal); }
.blurb { max-width: 44rem; margin: 3rem 0 0; font-size: 1.08rem; }
.blurb p { margin: 0 0 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.2rem 2rem; margin: 2.5rem 0 0;
  padding-top: 2rem; border-top: 1px solid var(--line); }
.fact dt { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: .45rem; }
.fact dd { margin: 0; color: var(--paper); font-size: .95rem; }
.series-order { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.series-order h2 { font-size: 1.8rem; margin: 0 0 1rem; }
.series-order li { margin: .3rem 0; }
@media (max-width: 48rem) {
  .book-hero { grid-template-columns: 1fr; }
  .book-hero-cover { max-width: 14rem; }
}
