/* Sentinel Force — concept v1 (2026-10-14). Dark military sci-fi: near-black steel, bronze
   accents, green-metal title. Colours live in the tokens; layout below doesn't hard-code them. */

@font-face { font-family: 'Saira Condensed'; font-weight: 500; font-display: swap; src: url(/assets/fonts/saira-condensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 600; font-display: swap; src: url(/assets/fonts/saira-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/saira-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Saira'; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/saira-var.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/cinzel-var.woff2) format('woff2'); }

:root {
  --bg: #07090b;
  --bg-2: #0c0f12;
  --panel: #101418;
  --line: #2b2a24;            /* warm hairline, reads as tarnished metal */
  --line-strong: #4a3f2c;
  --text: #dfe3e6;
  --muted: #9aa1a8;
  --silver-1: #f1f4f6; --silver-2: #9aa3ab;
  --bronze: #c9a063; --bronze-hi: #e2bf85; --bronze-lo: #8c6532; --bronze-ink: #1a1207;
  --green-hi: #a6d36a; --green: #6f9e3c; --green-lo: #2f4a1b;
  --ok: #7cc48f; --err: #ef7d6b;
  --maxw: 1180px;
  --f-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Saira', system-ui, sans-serif;
  --f-serif: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--bronze-hi); }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.eyebrow { font: 600 .82rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 .8em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 26px;
  font: 600 .95rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border-radius: 2px; cursor: pointer; border: 1px solid transparent; transition: filter .15s, background .15s, color .15s; }
.btn-bronze { color: var(--bronze-ink); border-color: var(--bronze-hi);
  background: linear-gradient(180deg, var(--bronze-hi), var(--bronze) 55%, var(--bronze-lo)); }
.btn-bronze:hover { filter: brightness(1.1); }
.btn-line { color: var(--text); background: rgba(0,0,0,.35); border-color: rgba(223,227,230,.75); }
.btn-line:hover { border-color: var(--bronze-hi); color: var(--bronze-hi); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: .82rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 3px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 24px;
  background: rgba(7,9,11,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { width: 40px; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 700 1.25rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.brand-kicker { font: 500 .62rem/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 15em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; color: var(--text); text-decoration: none; font: 600 .86rem/68px var(--f-display);
  letter-spacing: .14em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bronze-hi); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: 14px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent); }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 26px; height: 26px; color: var(--text); }
.social a:hover { color: var(--bronze-hi); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; background: none; border: 1px solid var(--line-strong); border-radius: 2px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center;
  border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-art { position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, #231d36 0%, var(--bg) 65%); }
/* The art sits right and fades into the dark on its left and bottom edges, so any aspect ratio works. */
.hero-art::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: min(64%, 980px);
  background: url(/assets/hero.jpg) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 25%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 25%);
  mask-composite: intersect; }
.hero-inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.hero-title { display: grid; gap: 4px; margin-bottom: 26px; }
.t-kicker { font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: .08em;
  background: linear-gradient(180deg, var(--silver-1) 20%, var(--silver-2) 75%, #5d656c);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.t-main { font-size: clamp(3.4rem, 10vw, 7.8rem); letter-spacing: .04em; line-height: .9;
  background: linear-gradient(180deg, var(--green-hi) 0%, var(--green) 45%, var(--green-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.75)) drop-shadow(0 0 22px rgba(111,158,60,.25)); }
.byline-pre { margin: 0; font: 600 1rem/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--bronze); }
.byline { margin: 8px 0 22px; font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--f-serif); letter-spacing: .18em; text-transform: uppercase; color: var(--silver-1); }
.hero-tagline { margin: 0 0 30px; white-space: pre-line; font-size: 1.15rem; line-height: 1.55; color: var(--text); max-width: 26em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* buy dropdown (no JS needed: <details>) */
.buy-menu { position: relative; }
.buy-menu summary { list-style: none; }
.buy-menu summary::-webkit-details-marker { display: none; }
.buy-pop { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 240px; display: grid; gap: 2px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.buy-pop a { padding: 12px 14px; color: var(--text); text-decoration: none; font: 600 .9rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.buy-pop a:hover { background: var(--bg-2); color: var(--bronze-hi); }
.buy-pop .none { padding: 12px 14px; color: var(--muted); font-size: .9rem; }

/* ---------- selected book ---------- */
.book { padding: 84px 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.book-grid { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 64px; align-items: center; }
.book3d { perspective: 1400px; justify-self: center; width: 100%; max-width: 320px; }
.book3d-inner { position: relative; transform: rotateY(-18deg); transform-style: preserve-3d; transition: transform .5s; }
.book3d:hover .book3d-inner { transform: rotateY(-8deg); }
.book3d-inner img, .book3d-inner .cover-ph, .book3d-inner .cover-soon { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 0 3px 3px 0;
  box-shadow: 24px 26px 50px rgba(0,0,0,.75), inset 4px 0 8px rgba(255,255,255,.08); }
.book3d-inner::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 28px; transform-origin: left;
  transform: rotateY(90deg); background: linear-gradient(90deg, #111, #2a2a2a 40%, #0c0c0c); }
.book-copy h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 22px; }
.book-copy .blurb { white-space: pre-line; color: #c9ced3; max-width: 40em; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge-soon { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--bronze-hi);
  font: 600 .82rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.cover-ph { display: grid; place-items: center; aspect-ratio: 2/3; padding: 18px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #1c232b, #090b0d 75%); border: 1px solid var(--line-strong);
  font: 700 1.3rem/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* Coming-soon art: text sits between the two bronze rules baked into the image (62%–89%). */
.cover-soon { position: relative; aspect-ratio: 2/3; container-type: inline-size;
  background: #07090b url(/assets/coming-soon.jpg) center / cover no-repeat; border: 1px solid var(--line-strong); }
.cs-text { position: absolute; inset: 62% 6% 11.3%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3.5cqw; text-align: center; font-family: var(--f-display); text-transform: uppercase; }
.cs-kicker { font-weight: 600; font-size: 6cqw; letter-spacing: .14em; color: #c9ced3; }
.cs-title { font-weight: 700; font-size: 12cqw; line-height: .95; letter-spacing: .04em; color: var(--bronze-hi);
  overflow-wrap: anywhere; }
.cs-when { font-weight: 600; font-size: 5cqw; letter-spacing: .3em; color: var(--muted); }

/* ---------- series ---------- */
.series { padding: 72px 0 84px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,160,99,.07), transparent 60%), var(--bg); }
.ornament { display: flex; align-items: center; gap: 22px; justify-content: center; text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); letter-spacing: .14em; color: var(--bronze-hi); margin-bottom: 18px; }
.ornament::before, .ornament::after { content: ''; flex: 1; max-width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze-lo)); }
.ornament::after { background: linear-gradient(90deg, var(--bronze-lo), transparent); }
.series-about { max-width: 46em; margin: 0 auto 36px; text-align: center; color: var(--muted); }
.carousel-shell { position: relative; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; }
.carousel { list-style: none; margin: 0; padding: 6px 4px 14px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel li { scroll-snap-align: start; }
.card { width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.card-cover { position: relative; display: block; padding: 6px; background: linear-gradient(180deg, #2a2418, #0e0c08);
  border: 1px solid var(--line-strong); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-cover img, .card-cover .cover-ph, .card-cover .cover-soon { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.card:hover .card-cover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.6); }
.card[aria-current="true"] .card-cover { border-color: var(--bronze-hi); box-shadow: 0 0 0 1px var(--bronze-hi), 0 0 28px rgba(201,160,99,.25); }
.card-cover img, .card-cover .cover-ph, .card-cover .cover-soon { display: block; }
.card-flag { display: block; position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 6px; background: rgba(7,9,11,.82);
  font: 600 .75rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-hi); }
.card-num { display: block; margin-top: 14px; font: 600 .82rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.card-name { display: block; margin-top: 6px; font: 700 1.05rem/1.1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.car-arrow { width: 48px; height: 64px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--text); }
.car-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.car-arrow:hover { color: var(--bronze-hi); }
.car-arrow:disabled { opacity: .25; cursor: default; }

/* ---------- media ---------- */
.media { padding: 72px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.video-frame { position: relative; max-width: 960px; margin: 28px auto 0; aspect-ratio: 16/9; background: #000;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- author + join ---------- */
.lower { border-bottom: 1px solid var(--line); }
.lower-grid { display: grid; grid-template-columns: 1.35fr 1fr; padding: 0; }
.h-sm { font-size: 1.35rem; letter-spacing: .14em; color: var(--bronze-hi); margin-bottom: 12px; }
.author { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 56px 40px 56px 24px; }
.author-photo { aspect-ratio: 4/5; border: 1px solid var(--line-strong); background: var(--panel) center / cover no-repeat;
  display: grid; place-items: center; color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.author-photo.has-img span { display: none; }
.author-bio { white-space: pre-line; color: #c9ced3; margin: 0 0 18px;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.author-bio.open { display: block; }
.join { position: relative; padding: 56px 24px 56px 40px; border-left: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg) 25%, rgba(7,9,11,.55)), url(/assets/troops.jpg) right bottom / auto 100% no-repeat, var(--bg-2); }
.join p { color: #c9ced3; margin: 0 0 16px; max-width: 24em; }
.join form { display: grid; gap: 10px; max-width: 320px; }
.join input { height: 42px; padding: 0 12px; font: inherit; color: var(--text); background: rgba(7,9,11,.85);
  border: 1px solid var(--line-strong); border-radius: 2px; }
.join .fine { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact { padding: 72px 0 84px; }
.contact-lede { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 40em; }
.contact form { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact label { display: grid; gap: 6px; font: 600 .8rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact input, .contact select, .contact textarea { font: 400 1rem/1.5 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 2px; padding: 11px 12px; width: 100%; }
.contact .btn { justify-self: start; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }
.form-status { min-height: 1.4em; margin: 0; font-size: .92rem; }
.form-status.ok { color: var(--ok); } .form-status.err { color: var(--err); }

/* ---------- footer ---------- */
.foot { padding: 26px 0; background: #050608; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-motto { display: flex; align-items: center; gap: 14px; }
.foot-motto p { margin: 0; max-width: 22em; font: 600 .78rem/1.35 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-meta { margin: 0; font-size: .82rem; color: var(--muted); }
.foot-meta a { color: var(--muted); margin-left: 18px; }

/* ---------- excerpt dialog ---------- */
.excerpt { width: min(760px, calc(100% - 32px)); max-height: 86vh; padding: 40px 44px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.excerpt::backdrop { background: rgba(0,0,0,.75); }
.excerpt h2 { font-size: 1.8rem; margin-bottom: 20px; }
.excerpt-body { white-space: pre-line; font-size: 1.05rem; line-height: 1.8; color: #d3d7db; }
.excerpt-close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; font-size: 1.6rem; line-height: 1;
  background: none; border: 0; color: var(--muted); cursor: pointer; }
.excerpt-close:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .social { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(7,9,11,.97); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { line-height: 48px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .book3d { max-width: 240px; }
  .carousel { grid-auto-columns: calc((100% - 22px) / 2); }
  .lower-grid { grid-template-columns: 1fr; }
  .author { padding: 48px 24px; }
  .join { border-left: 0; border-top: 1px solid var(--line); padding: 48px 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .brand-kicker { display: none; }
  .hero { min-height: auto; }
  .hero-art::before { width: 100%; opacity: .55;
    -webkit-mask-image: linear-gradient(0deg, transparent 5%, #000 60%); mask-image: linear-gradient(0deg, transparent 5%, #000 60%); }
  .hero-inner { padding: 56px 16px 48px; }
  .carousel-shell { grid-template-columns: 32px 1fr 32px; gap: 4px; }
  .car-arrow { width: 32px; }
  .carousel { grid-auto-columns: 78%; gap: 16px; }
  .author { grid-template-columns: 1fr; }
  .author-photo { max-width: 180px; }
  .contact .row { grid-template-columns: 1fr; }
  .excerpt { padding: 32px 20px; }
  .foot-meta a { margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book3d-inner, .card-cover { transition: none; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal p { color: #c9ced3; }
.legal .h-sm { margin-top: 28px; }
.legal-title { font-size: 2rem; }

/* ---------- image viewer (cover + emblem) ---------- */
.zoom-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom-btn:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 4px; }
.zoomable { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(4,5,7,.94); color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lb-stage { position: absolute; inset: 56px 16px 40px; overflow: auto; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; cursor: zoom-in;
  box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.lb-stage.zoomed { display: block; }
.lb-stage.zoomed img { max-width: none; max-height: none; height: 240vh; width: auto; cursor: zoom-out; }
.lb-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center;
  font: 600 .75rem/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.lightbox .excerpt-close { z-index: 1; }
.sub-action { display: grid; gap: 16px; justify-items: start; margin-top: 8px; }
/* "coming soon" links: shown, not clickable */
.btn-soon { opacity: .55; cursor: default; pointer-events: none; }
.buy-pop .link-soon { padding: 12px 14px; color: var(--muted); font: 600 .9rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.social a.soon { opacity: .35; cursor: default; }
.trailer-soon { position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(rgba(7,9,11,.7), rgba(7,9,11,.85)), url(/assets/hero.jpg) center / cover; }
.trailer-soon span { font: 700 1.4rem/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; color: var(--bronze-hi); }
