/* Arken Elessai, author site.
   The look is "daylight on the island": marble white, sea blue, and the gold of the tear.
   The trailer sits in a band of night blue, because the film happens at night. */

/* The two typefaces are kept in assets/fonts, so the page asks no outside service for them.
   Cinzel and EB Garamond are free under the SIL Open Font License. The licence texts sit beside the files.
   Each file holds every weight. The "ext" files are fetched only if a page uses an accented letter outside plain Latin. */
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../assets/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: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../assets/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: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/eb-garamond-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: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/eb-garamond-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: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/eb-garamond-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: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../assets/fonts/eb-garamond-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;
}

:root {
  --marble: #f7f2e8;
  --marble-warm: #efe7d6;
  --stone: #d9cdb4;
  --ink: #17202e;
  --ink-soft: #4b5567;
  --sea: #1d4f7c;
  --sea-deep: #0e2a45;
  --night: #0b1c2e;
  --gold: #a8700f;
  --gold-bright: #ecb955;
  --on-night: #f3ecdc;
  --on-night-soft: #b9c6d6;

  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.6;
}

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

[hidden] { display: none !important; }

a { color: var(--sea); text-underline-offset: 0.18em; }
a:hover { color: var(--sea-deep); }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--marble); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 680px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--gold-bright); }

.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 34em; text-wrap: balance; }
.lede-light { color: var(--on-night-soft); }

.quiet { font-size: 1.05rem; color: var(--ink-soft); }

/* Buttons */
.button {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border: 2px solid var(--sea-deep);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button-solid { background: var(--sea-deep); color: var(--marble); }
.button-solid:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.button-line { background: transparent; color: var(--sea-deep); }
.button-line:hover { background: var(--sea-deep); color: var(--marble); }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1400px; margin: 0 auto; padding: 18px 24px;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.topbar nav a {
  font-family: var(--display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.topbar nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* 1. Hero */
.hero { padding-bottom: 72px; }
.hero-picture img {
  width: 100%;
  height: clamp(280px, 62vh, 700px);
  object-fit: cover;
  object-position: 50% 42%;
}
.hook-panel {
  position: relative;
  max-width: 860px;
  margin: -92px auto 0;
  padding: 44px 48px 48px;
  background: var(--marble);
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 60px -30px rgba(14, 42, 69, 0.45);
  text-align: center;
}
.hook-panel h1 { font-size: clamp(1.75rem, 4.4vw, 3.1rem); }
.hook-rest {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 26em; margin: 1.1em auto 1.6em;
  text-wrap: balance;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

/* 2. Trailer */
.trailer {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(236, 185, 85, 0.10), transparent 70%),
    linear-gradient(var(--sea-deep), var(--night));
  color: var(--on-night);
  padding: 88px 0 96px;
  text-align: center;
}
.trailer h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--on-night); }
.trailer .lede { margin: 0.8em auto 2em; }

.film {
  position: relative;
  max-width: 920px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(236, 185, 85, 0.45);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.film-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.film-play img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.film-play:hover img { opacity: 0.86; }
.film-button {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-bright); color: var(--night);
  box-shadow: 0 0 0 10px rgba(236, 185, 85, 0.22), 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}
.film-button svg { margin-left: 4px; }
.film-play:hover .film-button { transform: translate(-50%, -50%) scale(1.07); }
.film iframe, .film video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.film-note { margin: 1.2em auto 0; font-size: 1.05rem; color: var(--on-night-soft); }
.film-note a { color: var(--gold-bright); }

/* 3. Book */
.book { padding: 96px 0; }
.book-grid { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 64px; align-items: center; }

.tablet {
  aspect-ratio: 2 / 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 28px 22px;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%),
    var(--marble-warm);
  border: 1px solid var(--stone);
  outline: 1px solid var(--stone); outline-offset: -10px;
  box-shadow: 0 30px 60px -34px rgba(14, 42, 69, 0.5);
  font-family: var(--display);
  text-transform: uppercase;
  color: var(--ink);
}
.tablet-series { font-size: 0.78rem; letter-spacing: 0.3em; color: var(--ink-soft); }
.tablet .tear { color: var(--gold); margin: 6px 0; }
.tablet-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: 0.08em; line-height: 1.15; }
.tablet-number { font-size: 0.78rem; letter-spacing: 0.3em; color: var(--gold); }
.tablet-author { font-size: 0.78rem; letter-spacing: 0.26em; color: var(--ink-soft); margin-top: 22px; }

.book-words h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.book-words p { max-width: 31em; }
.pill {
  display: inline-block;
  font-family: var(--display); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sea-deep);
  border: 1px solid var(--sea);
  border-radius: 100px;
  padding: 0.45em 1.1em;
  margin: 1rem 0 1.6rem;
}
.book-last { font-style: italic; font-size: 1.4rem; }
.book-words .quiet { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--stone); }

/* 4. Sign-up */
.signup {
  background: var(--marble-warm);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 88px 0;
  text-align: center;
}
.signup h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.signup .lede { margin: 0.9em auto 1.8em; }
.signup-form { max-width: 560px; margin: 0 auto 1.4em; text-align: left; }
.signup-form label {
  display: block;
  font-family: var(--display); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 8px;
}
.signup-row { display: flex; gap: 10px; }
.signup-row input {
  flex: 1; min-width: 0;
  font: inherit; color: var(--ink);
  padding: 0.6em 0.8em;
  background: #fff;
  border: 2px solid var(--stone);
  border-radius: 2px;
}
.signup-row input:focus { border-color: var(--sea); outline: none; }
.signup-message { min-height: 1.6em; margin: 0.8em 0 0; font-size: 1.1rem; }
.signup-message.is-good { color: #1f5d3a; }
.signup-message.is-bad { color: #9a2a1c; }
.signup-form.is-done .signup-row, .signup-form.is-done label { display: none; }
.signup-form.is-done .signup-message { text-align: center; font-size: 1.3rem; }

/* Footer */
.foot { padding: 34px 0 44px; font-size: 1rem; color: var(--ink-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }

/* Privacy page */
.plain { padding: 56px 0 88px; }
.plain h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8em; }
.plain h2 { font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 2em 0 0.6em; }
.plain h3 { font-family: var(--text); font-size: 1.3rem; font-weight: 600; margin: 1.6em 0 0.4em; }
.plain p, .plain li { max-width: 34em; }
.plain ul { margin: 0 0 1em; padding-left: 1.2em; }
.plain li { margin-bottom: 0.45em; }
.plain h2[id] { scroll-margin-top: 16px; }
.draft-flag {
  display: inline-block; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: #fff3cf; color: #6b4a00; border: 1px solid #e2c36b; padding: 0.4em 0.9em; margin-bottom: 1.6em;
}

/* ------------------------------------------------------------------------
   More than one series. Added 2026-11-24.
   Each series keeps the site's layout and typefaces and brings its own colours.
   Shattered Skies uses the colours at the top of this file.
   Enemy Roads sets class="theme-roads" on its pages and swaps the colours here:
   charcoal, steel grey, muted earth and a restrained amber.
   ------------------------------------------------------------------------ */
.theme-roads {
  --marble: #f0eeea;
  --marble-warm: #e3e0d9;
  --stone: #cbc6bb;
  --ink: #1b1e21;
  --ink-soft: #4a5159;
  --sea: #3a4047;
  --sea-deep: #1b1e21;
  --night: #121416;
  --gold: #855709;
  --gold-bright: #e0a030;
  --on-night: #eceae5;
  --on-night-soft: #b4bac1;
}

h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; margin: 0; }

.topbar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

.actions-left { justify-content: flex-start; }
.button-on-dark { border-color: var(--gold-bright); color: var(--on-night); background: transparent; }
.button-on-dark:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--night); }
.button-bright { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--night); }
.button-bright:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }

/* Home: the list of series */
.series { padding: 24px 0 96px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.series-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.series-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--stone);
  box-shadow: 0 24px 50px -34px rgba(14, 42, 69, 0.45);
}
.series-card-art { aspect-ratio: 16 / 9; overflow: hidden; background: #1b1e21; }
.series-card-art img { width: 100%; height: 100%; object-fit: cover; }
.series-card-art.is-drawing img { object-fit: contain; padding: 14px 0 0; }
.series-card-body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 34px; }
.series-card-body .eyebrow { margin-bottom: 0.7rem; }
.series-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6em; }
.series-card-headline { font-size: 1.35rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.7em; text-wrap: balance; }
.series-card-text { color: var(--ink-soft); font-size: 1.12rem; }
.series-card .button { align-self: flex-start; margin-top: auto; }
.series-card.theme-roads { background: var(--marble); }

/* A dark band that opens a series page or a book page. Text sits on solid colour. */
.band {
  background: linear-gradient(var(--sea-deep), var(--night));
  color: var(--on-night);
  padding: 64px 0 72px;
}
.band h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--on-night); }
.band .eyebrow { color: var(--gold-bright); }
.band-tagline { font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.35; margin: 0.7em 0 0; max-width: 22em; text-wrap: balance; }
.band-summary { font-size: 1.25rem; color: var(--on-night-soft); max-width: 30em; margin: 1em 0 1.8em; }
.band-with-picture { padding-top: 0; }
.band-with-picture .hero-picture { display: block; margin-bottom: 52px; border-bottom: 3px solid var(--gold-bright); }
.band-with-picture .hero-picture img { height: clamp(260px, 62vh, 700px); object-position: 50% 36%; }
.band-with-picture .band-summary { max-width: 34em; }
.band-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.band-art img { width: 100%; height: auto; }
.crumbs { font-family: var(--display); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 1.4rem; }
.crumbs { color: var(--gold-bright); font-size: 0.8rem; letter-spacing: 0.24em; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(236, 185, 85, 0.5); }
.crumbs a:hover { color: var(--on-night); border-bottom-color: var(--on-night); }

/* Long description */
.about { padding: 88px 0 72px; }
.about p { max-width: 33em; }
.about .about-open { font-size: 1.4rem; line-height: 1.5; }

/* "Inside the Series" */
.inside { background: var(--marble-warm); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); padding: 80px 0; }
.inside h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 1.2em; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px; }
.feature-list li { position: relative; padding-left: 30px; max-width: 26em; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 16px; height: 3px; background: var(--gold);
}

/* "Begin with Book One", and the top of a book page */
.begin { padding: 88px 0; }
.begin > .wrap > h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 1.4em; }
.book-words h3 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.status-line { font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 1.6em 0 1.6em; }
.cover-wrap { margin: 0; }
.cover-note { text-align: center; font-family: var(--display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 0; }
.cover-art { width: 100%; height: auto; border: 1px solid var(--stone); box-shadow: 0 30px 60px -34px rgba(14, 42, 69, 0.5); }
.tablet.is-placeholder { outline-style: dashed; }
.tablet-reveal { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--ink-soft); margin-top: 22px; }

.theme-roads .tablet {
  background: linear-gradient(160deg, #2b3035, #1b1e21 60%);
  border-color: #3a4047;
  outline-color: #4a5159;
  color: #eceae5;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.7);
}
.theme-roads .tablet-series, .theme-roads .tablet-author, .theme-roads .tablet-reveal { color: #b4bac1; }
.theme-roads .tablet-number { color: #e0a030; }
.theme-roads .tablet .tear { color: #e0a030; }
.tablet-rule { width: 54px; height: 3px; background: #e0a030; margin: 8px 0; }

/* Details panel on a book page */
.details { width: 100%; max-width: 31em; border-collapse: collapse; margin: 2.2em 0 2em; font-size: 1.1rem; }
.details caption { text-align: left; font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding-bottom: 0.8em; }
.details th, .details td { text-align: left; padding: 0.6em 0; border-top: 1px solid var(--stone); vertical-align: top; }
.details tr:last-child th, .details tr:last-child td { border-bottom: 1px solid var(--stone); }
.details th { width: 40%; font-weight: 500; color: var(--ink-soft); }
.more-link { font-size: 1.12rem; }

/* Narrow screens */
@media (max-width: 820px) {
  .series { padding: 8px 0 64px; }
  .series-grid { grid-template-columns: 1fr; }
  .series-card-body { padding: 24px 20px 28px; }
  .band { padding: 44px 0 52px; }
  .band-with-picture { padding-top: 0; }
  .band-with-picture .hero-picture { margin-bottom: 36px; }
  .band-with-picture .hero-picture img { height: auto; aspect-ratio: 16 / 9; }
  .band-grid { grid-template-columns: 1fr; gap: 28px; }
  .band-art { max-width: 420px; }
  .about { padding: 60px 0 48px; }
  .inside, .begin { padding: 60px 0; }
  .feature-list { grid-template-columns: 1fr; }
  .actions-left { justify-content: flex-start; }
  body { font-size: 1.15rem; }
  .topbar { flex-direction: column; gap: 10px; padding: 16px 16px 12px; }
  .topbar nav { justify-content: center; gap: 4px 20px; }
  .wrap { padding: 0 16px; }
  .hero { padding-bottom: 56px; }
  .hook-panel { margin: -48px 16px 0; padding: 30px 20px 34px; }
  .trailer, .signup { padding: 64px 0; }
  .book { padding: 64px 0; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .tablet { max-width: 260px; margin: 0 auto; width: 100%; }
  .signup-row { flex-direction: column; }
  .film-button { width: 68px; height: 68px; }
}

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