/* The Unauthorized — series landing page
   Palette and type are taken from the book covers. See DESIGN.md. */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07070a;
  --bg-soft: #101014;
  --ink: #f3ede0;
  --ink-dim: #b7afa0;
  --gold: #d4af6a;
  --gold-deep: #a9843a;
  --gold-bright: #e8d5a3;
  --line: rgba(212, 175, 106, 0.38);
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 3px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 38rem;
  --max: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-bright);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 20;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}


/* Slim announcement for the scheduled Book 1 free days */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0;
  padding: 0.7rem var(--gutter);
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.promo-banner a {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  line-height: 1.45;
}

.promo-banner a:hover { color: var(--gold-bright); }


/* Cover-style hairline with a center diamond */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.25rem 0;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.ornament span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ----- header / hero (title-page) ----- */
.hero {
  min-height: calc(100svh - 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem var(--gutter) 3.5rem;
  text-align: center;
}

@media (max-height: 700px) {
  .hero { min-height: 0; padding-top: 3.5rem; padding-bottom: 3rem; }
}

.hero-kicker {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f0e0b8 0%, #d4af6a 46%, #8c6a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .title-the {
  display: block;
  font-size: clamp(0.85rem, 2.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.45em;
  line-height: 1;
  margin-bottom: 0.45em;
}

.hero h1 .title-series {
  display: block;
  font-size: clamp(1.7rem, 8.4vw, 6.2rem);
  letter-spacing: 0.03em;
  line-height: 0.92;
  padding-inline: 0.05em;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 { color: var(--gold); background: none; }
}

.hero-author {
  font-family: var(--display);
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.35rem 0 0;
  font-weight: 400;
}

.hero-hook {
  max-width: 28rem;
  margin: 1.75rem auto 0;
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}

.hero-intro {
  max-width: 28rem;
  margin: 1rem auto 0;
  color: var(--ink-dim);
  font-size: 1.02rem;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.25rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-nav a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

.hero-nav a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold-bright);
}

/* ----- books ----- */
.books {
  padding: 1rem var(--gutter) 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.book {
  display: grid;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.book:last-of-type { border-bottom: 1px solid var(--line); }

.cover-frame {
  justify-self: center;
  width: min(16.5rem, 72vw);
}

.cover-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* One shadow only, on the physical covers — they need to lift off the page. */

.book-copy {
  max-width: 34rem;
  margin: 0 auto;
}

.book-meta {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

.book h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.lede {
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.book-copy p {
  margin: 0 0 0.9rem;
  color: var(--ink-dim);
}

.book-copy p:last-child { margin-bottom: 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  color: #1a1408;
  background: var(--gold);
  font-weight: 600;
}

.btn:hover { background: var(--gold-bright); color: #1a1408; border-color: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
}

.btn-ghost:hover { background: transparent; color: var(--gold-bright); border-color: var(--gold-bright); }

@media (min-width: 800px) {
  .book {
    grid-template-columns: 18rem 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
  }
  .book-flip {
    grid-template-columns: 1fr 18rem;
  }
  .book-flip .cover-frame { order: 2; }
  .book-flip .book-copy { order: 1; margin: 0; }
  .book-copy { margin: 0; }
  .cover-frame { width: 18rem; justify-self: start; }
  .book-flip .cover-frame { justify-self: end; }
}

/* ----- author ----- */
.author {
  padding: 4.5rem var(--gutter);
  text-align: center;
}

.author h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

.author .name {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-weight: 600;
}

.author p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 1.12rem;
}

/* ----- signup ----- */
.signup {
  padding: 0 var(--gutter) 5rem;
}

.signup-panel {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.4rem 2.1rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.signup h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 0.85rem;
  line-height: 1.3;
}

.placeholder-note {
  font-size: 0.92rem;
  color: var(--ink-dim);
  text-align: center;
  margin: 0 0 1.25rem;
}

.placeholder-note strong {
  font-weight: 600;
  color: var(--ink);
}

.signup-form {
  display: grid;
  gap: 0.7rem;
}

.signup-form label {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.signup-form input[type="email"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
}

.signup-form input::placeholder { color: #7a7368; }

.signup-form button {
  min-height: 2.85rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: #1a1408;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.signup-form button:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
}

.form-status {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}

/* ----- footer ----- */
footer {
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

footer p {
  margin: 0;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
