/* Bahm Publishing / The Sea Chose Us — palette drawn from the twilight-cove cover */
:root {
  --dusk-900: #1b2638;
  --dusk-800: #24344e;
  --dusk-700: #34496b;
  --dusk-500: #6a7fa3;
  --lavender: #b9b3cc;
  --seaglass: #9fc5b8;
  --seaglass-deep: #4f8a7e;
  --cedar: #9a6a45;
  --cedar-deep: #6e4a30;
  --gold: #e3c88f;
  --gold-pale: #f3e6c8;
  --sand: #f6efe2;
  --paper: #fbf7ef;
  --ink: #26303f;
  --ink-soft: #4e5a6c;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 24px 60px -20px rgba(15, 22, 36, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
cite { font-style: italic; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--dusk-800); }
h2 em { color: var(--seaglass-deep); font-style: italic; }
p { margin: 0 0 1.05em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--dusk-900); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Top bar */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--gold-pale);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(227, 200, 143, .16); border: 1px solid rgba(227, 200, 143, .5);
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--gold);
}
.brand-mark.small { width: 26px; height: 26px; font-size: 1rem; border-radius: 7px; }
.brand-name { font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; letter-spacing: .04em; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover, .nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: var(--sand);
  background:
    radial-gradient(1200px 500px at 75% 8%, rgba(227, 200, 143, .22), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(159, 197, 184, .20), transparent 60%),
    linear-gradient(170deg, #6f6f93 0%, #43557a 38%, var(--dusk-800) 70%, var(--dusk-900) 100%);
  padding: clamp(96px, 12vw, 140px) clamp(18px, 4vw, 48px) clamp(90px, 10vw, 130px);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.cover { margin: 0; }
.cover img { border-radius: 6px; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08); }
.placeholder-note {
  margin-top: 12px; font-size: .9rem; font-style: italic; letter-spacing: .02em;
  color: inherit; opacity: .75; text-align: center;
}
.badge {
  display: inline-block; margin-bottom: 20px; padding: 6px 16px; border-radius: 999px;
  background: rgba(227, 200, 143, .16); border: 1px solid rgba(227, 200, 143, .65);
  color: var(--gold); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
}
.series { font-family: var(--display); font-size: 1.05rem; letter-spacing: .28em; text-transform: uppercase; color: var(--seaglass); margin-bottom: .4em; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); color: var(--gold-pale); font-weight: 500; margin-bottom: .15em; text-shadow: 0 2px 30px rgba(10, 15, 30, .35); }
.byline { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: .3em; text-transform: uppercase; color: var(--sand); margin-bottom: 1em; }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.4; color: #e9e4f0; max-width: 32ch; }
.release { font-size: 1.05rem; color: #d7dde6; }
.release time { color: var(--gold-pale); }
.ku { font-size: .98rem; color: #c9d3de; margin-top: 14px; }

.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 26px; border-radius: 999px;
  font-family: var(--body); font-size: 1.08rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: var(--dusk-900); box-shadow: 0 10px 30px -12px rgba(227, 200, 143, .8); }
.btn-primary:hover { background: #ecd6a6; }
.btn-ghost { background: transparent; color: var(--sand); border-color: rgba(246, 239, 226, .55); }
.btn-ghost:hover { background: rgba(246, 239, 226, .1); }
.btn .soon { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; line-height: 1.2; }
.btn[aria-disabled="true"] { cursor: default; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.wave path { fill: var(--paper); }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 48px); }
.narrow { max-width: 720px; margin: 0 auto; }
.wide { max-width: 1080px; margin: 0 auto; }
.kicker { font-family: var(--display); font-size: .98rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cedar); margin-bottom: .8em; }

.blurb { text-align: left; }
.blurb h2 { margin-bottom: .9em; }
.blurb p { color: var(--ink); }
.comps { font-style: italic; color: var(--ink-soft); border-top: 1px solid #e3d9c6; padding-top: 1.1em; margin-top: 1.6em; }

.about-book { background: linear-gradient(180deg, #eef2ee 0%, #e6eeea 100%); }
.about-intro { max-width: 720px; margin: 0 auto 44px; }
.themes {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.themes li {
  background: rgba(255, 255, 255, .7); border: 1px solid #d6e2dc; border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; font-size: 1.05rem; color: var(--ink-soft);
}
.theme-title { font-family: var(--display); font-size: 1.45rem; color: var(--dusk-800); font-weight: 600; }
.content-note { max-width: 720px; margin: 40px auto 0; font-size: 1rem; color: var(--ink-soft); text-align: center; }

/* Signup */
.signup { background: linear-gradient(160deg, var(--dusk-700) 0%, var(--dusk-900) 100%); color: var(--sand); }
.signup-card {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.signup h2 { color: var(--gold-pale); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.signup .kicker { color: var(--seaglass); }
.signup-copy p { color: #dde3ea; }
.signup-form {
  background: rgba(246, 239, 226, .06); border: 1px solid rgba(227, 200, 143, .35); border-radius: 18px;
  padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 8px;
}
.signup-form label { font-size: .95rem; letter-spacing: .04em; color: #d4dbe4; }
.signup-form input[type="text"], .signup-form input[type="email"] {
  width: 100%; padding: 13px 16px; margin-bottom: 8px; border-radius: 10px;
  border: 1px solid rgba(246, 239, 226, .35); background: rgba(10, 16, 28, .35); color: var(--sand);
  font-family: var(--body); font-size: 1.05rem;
}
.signup-form input::placeholder { color: rgba(246, 239, 226, .5); }
.signup-form .check { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.signup-form .check input { width: 18px; height: 18px; accent-color: var(--gold); }
.signup-form .btn { width: 100%; }
.fine { font-size: .92rem; opacity: .78; margin-top: 8px; }

/* Author */
.author { text-align: center; }
.author-mark svg { width: 64px; height: 64px; fill: none; stroke: var(--seaglass-deep); stroke-width: 2.4; stroke-linecap: round; margin: 0 auto 18px; display: block; }
.author-inner p { text-align: left; }
.author .placeholder-note { text-align: center; color: var(--cedar-deep); }

/* Teaser */
.teaser {
  text-align: center; color: var(--sand);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(227, 200, 143, .18), transparent 70%),
    linear-gradient(180deg, #3d4f6f 0%, var(--dusk-800) 100%);
}
.teaser h2 { color: var(--gold-pale); }
.teaser .kicker { color: var(--seaglass); }
.teaser p { color: #dbe1e9; }
.btn-ghost.light { margin-top: 10px; }

/* Footer */
.footer { background: var(--dusk-900); color: #c6cfdb; padding: 44px clamp(18px, 4vw, 48px) 28px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.imprint { font-family: var(--display); font-size: 1.4rem; color: var(--gold-pale); display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.footer .fine { margin: 0; }
.social { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(227, 200, 143, .45); color: var(--gold);
}
.social a:hover { background: rgba(227, 200, 143, .12); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.copyright { max-width: 1080px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; opacity: .7; }

/* Responsive */
@media (max-width: 900px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 1.1rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cover { max-width: 280px; margin: 0 auto; }
  .tagline { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .btn { flex: 1 1 220px; }
  .signup-card { grid-template-columns: 1fr; }
  .themes { grid-template-columns: 1fr; }
  .nav { gap: 4px 16px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Fixes after preview review */
.signup-form .btn { flex: none; }
.author-inner .kicker { text-align: center; }
@media (max-width: 760px) {
  .hero { padding-top: 128px; }
  .topbar { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
}
