@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Oswald:wght@400;500;600&display=swap');

:root {
  --ink: #070b0f;
  --panel: #0d1319;
  --panel-2: #111a22;
  --paper: #f2efe8;
  --muted: #99a5ae;
  --line: rgba(255,255,255,.13);
  --orange: #f06419;
  --gold: #c88b3a;
  --green: #50d49b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(240,100,25,.09), transparent 28rem),
    radial-gradient(circle at 12% 8%, rgba(200,139,58,.08), transparent 24rem),
    var(--ink);
  color: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 20; padding: .75rem 1rem; background: white; color: black; }
.skip-link:focus { left: 1rem; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-family: "Oswald", sans-serif; font-size: 1.65rem; letter-spacing: .02em; }
.brand > span:last-child > span { color: var(--orange); }
.brand-mark { position: relative; display: inline-flex; width: 30px; height: 34px; overflow: hidden; }
.brand-mark i { position: absolute; width: 13px; height: 29px; top: 0; background: var(--gold); transform: skewY(30deg); }
.brand-mark i:first-child { left: 2px; }
.brand-mark i:last-child { right: 2px; top: 5px; background: var(--orange); transform: skewY(-30deg); }
.fiction-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: 5.5rem 0; }
.eyebrow { margin: 0 0 .9rem; color: var(--orange); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; line-height: 1.02; letter-spacing: -.015em; }
h1 { max-width: 820px; margin-bottom: 1.7rem; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 500; }
h1 em { color: var(--orange); font-style: normal; }
.intro { max-width: 670px; color: #c8d0d5; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.status { margin-top: 2rem; display: inline-flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: #dce2e5; font-size: .84rem; }
.status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(240,100,25,.12); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem; }
.hero-actions .status { margin-top: 0; }
.book-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--paper); font-size: .84rem; font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.book-link:hover, .book-link:focus-visible { color: #ff9b65; }

.book-card { margin: 0; display: grid; justify-items: center; }
.cover-wrap { position: relative; display: block; width: min(100%, 430px); box-shadow: 0 34px 80px rgba(0,0,0,.56); }
.cover-wrap::before { content: ""; position: absolute; inset: 3% -4% -3% 4%; background: rgba(240,100,25,.13); filter: blur(28px); z-index: -1; }
.cover-wrap img { width: 100%; height: auto; object-fit: contain; border: 1px solid rgba(255,255,255,.18); }
.cover-wrap:hover img, .cover-wrap:focus-visible img { border-color: rgba(240,100,25,.75); }
.cover-wrap:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.book-card figcaption { display: flex; flex-direction: column; margin-top: 1.4rem; }
.book-card figcaption strong { font-family: "Oswald"; text-transform: uppercase; letter-spacing: .08em; }
.book-card figcaption span { color: var(--muted); font-size: .82rem; }

.coming { padding: 7rem 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 3.5rem; }
.section-heading h2, .board-head h2 { margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 4.7rem); font-weight: 500; }
.section-heading > p:last-child { color: #b8c2c8; font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-grid article { min-height: 300px; padding: 2.2rem; background: rgba(13,19,25,.95); }
.feature-grid article:hover { background: var(--panel-2); }
.feature-number { color: var(--orange); font-family: "Oswald"; font-size: .9rem; }
.feature-grid h3, .build-list h3 { margin: 4rem 0 1rem; font-family: "Oswald"; font-size: 1.65rem; font-weight: 500; text-transform: uppercase; }
.feature-grid p, .build-list p { color: var(--muted); font-size: .94rem; }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-bottom: 7rem; padding: 2rem; border: 1px solid rgba(240,100,25,.35); background: rgba(240,100,25,.055); }
.notice-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--orange); color: var(--orange); font-family: "Oswald"; }
.notice h2 { margin-bottom: .4rem; font-family: "DM Sans"; font-size: .84rem; letter-spacing: .14em; }
.notice p { margin: 0; color: #aeb8be; font-size: .9rem; }

footer { min-height: 150px; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-brand { color: var(--paper); font-size: 1.15rem; }
footer p { margin: 0; text-align: center; }
footer a { color: var(--paper); text-underline-offset: 4px; }

/* Private preview */
.private-label { color: var(--orange); }
.preview-main { padding: 5rem 0 7rem; }
.preview-intro { max-width: 900px; margin-bottom: 5rem; }
.preview-intro h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); }
.preview-intro > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.build-board { border: 1px solid var(--line); background: rgba(13,19,25,.84); }
.board-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 2.2rem; border-bottom: 1px solid var(--line); }
.board-head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.build-chip { padding: .45rem .85rem; border-radius: 999px; background: rgba(240,100,25,.13); color: #ff9f6c; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.build-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.build-list article { min-height: 250px; padding: 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.build-list article:nth-child(2n) { border-right: 0; }
.build-list article:nth-last-child(-n+2) { border-bottom: 0; }
.build-list h3 { margin-top: 3rem; }
.build-state { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; }
.planning { color: #ffd27a; }
.designing { color: #78b9ff; }
.queued { color: #b9a1ff; }
.ongoing { color: var(--green); }
.playable { color: #ff9f6c; }
.build-card-link { display: inline-flex; gap: .5rem; margin-top: 1rem; color: var(--paper); font-size: .86rem; font-weight: 700; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.build-card-link:hover, .build-card-link:focus-visible { color: #ff9f6c; }
.dev-note { margin-top: 2rem; padding: 1.5rem 1.8rem; border-left: 3px solid var(--orange); background: rgba(255,255,255,.035); }
.dev-note strong { display: block; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.dev-note p { margin: 0; color: var(--muted); }

@media (max-width: 850px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 4rem 0 5rem; }
  .hero-copy { order: 1; }
  .book-card { order: 2; width: min(70%, 360px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 230px; }
  .feature-grid h3 { margin-top: 2.5rem; }
  footer { grid-template-columns: 1fr; padding: 2.5rem 0; text-align: center; }
  footer p { order: 3; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  .fiction-label { max-width: 140px; text-align: right; font-size: .62rem; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 25px; height: 29px; transform: scale(.85); transform-origin: left center; }
  .hero { gap: 3rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .book-card { width: min(82%, 330px); }
  .coming { padding: 5rem 0; }
  .feature-grid article, .board-head, .build-list article { padding: 1.5rem; }
  .notice { grid-template-columns: 1fr; }
  .board-head { align-items: start; flex-direction: column; }
  .build-list { grid-template-columns: 1fr; }
  .build-list article, .build-list article:nth-child(2n), .build-list article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .build-list article:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
