
:root { --cream:#fff8ea; --ink:#21182c; --lavender:#bca8dc; --gold:#e4c778; }
* { box-sizing:border-box; }
html,body { margin:0; width:100%; min-height:100%; background:#171222; }
body { overflow:hidden; font-family:ui-rounded,"SF Pro Rounded","Avenir Next",Avenir,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--cream); }
a { -webkit-tap-highlight-color:transparent; }
a:focus-visible { outline:3px solid #e7d4ff; outline-offset:4px; }
.hero { position:relative; min-height:100svh; width:100%; overflow:hidden; isolation:isolate; background:#171222; }
.hero-video { position:fixed; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position:50% 50%; pointer-events:none; user-select:none; }
.veil { position:fixed; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg,rgba(22,16,31,.04) 0%,rgba(22,16,31,.08) 40%,rgba(22,16,31,.52) 69%,rgba(22,16,31,.74) 100%); }
.brand { position:fixed; z-index:3; top:0; left:0; right:0; display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:clamp(15px,2.6vw,30px) clamp(20px,5vw,72px); }
.logo-card { display:block; width:clamp(102px,11.8vw,150px); aspect-ratio:1/1; flex:none; padding:0; border-radius:18px; overflow:hidden; background:#fbf8ef; box-shadow:0 8px 26px #10082044; transition:transform .2s ease; }
.logo-card:hover { transform:translateY(-2px); }
.logo-card img { display:block; width:100%; height:100%; object-fit:contain; }
.coming { margin-top:2px; font-size:11px; line-height:1; letter-spacing:.22em; opacity:.93; border:1px solid rgba(255,248,234,.4); padding:10px 13px 9px 15px; border-radius:999px; background:rgba(27,21,43,.24); backdrop-filter:blur(8px); }
.copy { position:fixed; z-index:3; top:50%; right:clamp(28px,7vw,110px); transform:translateY(-45%); width:min(560px,41vw); text-shadow:0 2px 22px rgba(0,0,0,.35); }
.eyebrow { margin:0 0 15px; font-size:clamp(12px,1.15vw,16px); letter-spacing:.11em; text-transform:uppercase; opacity:.88; }
h1 { margin:0; max-width:13ch; font-family:Georgia,"Times New Roman",serif; font-size:clamp(42px,5vw,78px); line-height:.98; font-weight:500; letter-spacing:-.035em; }
.subhead { margin:clamp(20px,2.5vw,30px) 0 26px; max-width:43ch; font-size:clamp(17px,1.45vw,22px); line-height:1.45; color:rgba(255,248,234,.95); }
.cta { display:inline-flex; align-items:center; gap:14px; padding:14px 20px 14px 22px; border-radius:999px; background:rgba(255,248,234,.96); color:var(--ink); text-decoration:none; font-weight:650; font-size:15px; text-shadow:none; box-shadow:0 12px 40px rgba(16,9,29,.24); transition:transform .25s ease, background .25s ease, box-shadow .25s ease; }
.cta:hover { transform:translateY(-2px); background:#fff; box-shadow:0 16px 48px rgba(16,9,29,.34); }
.arrow { font-size:18px; line-height:1; }
.social-links { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:20px; }
.social-intro { font-size:12px; letter-spacing:.045em; opacity:.88; margin-right:4px; }
.social-links a { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border:1px solid rgba(255,248,234,.48); border-radius:50%; color:var(--cream); background:rgba(255,248,234,.07); transition:background .2s ease, transform .2s ease; }
.social-links a:hover { background:rgba(255,248,234,.18); transform:translateY(-2px); }
.social-links svg { width:18px; height:18px; }
.signature { margin:18px 0 0; font-family:Georgia,"Times New Roman",serif; font-size:15px; letter-spacing:.075em; color:#e7d7f6; }
.hint { position:fixed; z-index:3; left:clamp(20px,5vw,72px); bottom:clamp(20px,4vw,44px); font-size:12px; letter-spacing:.07em; opacity:.72; transition:opacity .4s ease; text-shadow:0 2px 10px rgba(0,0,0,.35); }
@media(max-width:900px) {
  .copy { width:48vw; right:4vw; }
  h1 { font-size:clamp(37px,5.8vw,65px); }
}
@media(max-width:820px) {
  body { overflow:auto; }
  .hero-video { object-position:43% center; }
  .veil { background:linear-gradient(180deg,rgba(20,14,29,.02) 0%,rgba(20,14,29,.12) 32%,rgba(20,14,29,.75) 69%,rgba(20,14,29,.93) 100%); }
  .brand { padding:14px 18px; }
  .logo-card { width:94px; border-radius:13px; }
  .coming { margin-top:4px; font-size:9px; padding:8px 9px 7px 11px; }
  .copy { top:auto; right:20px; left:20px; bottom:calc(28px + env(safe-area-inset-bottom)); transform:none; width:auto; }
  .eyebrow { display:none; }
  h1 { font-size:clamp(34px,10vw,58px); max-width:12ch; }
  .subhead { font-size:15px; line-height:1.4; max-width:35ch; margin:14px 0 18px; }
  .cta { font-size:13px; padding:12px 16px; }
  .social-links { margin-top:12px; gap:8px; }
  .social-intro { font-size:11px; }
  .social-links a { width:34px; height:34px; }
  .signature { margin-top:10px; font-size:13px; }
  .hint { display:none; }
}
@media(max-width:370px) {
  .logo-card { width:77px; }
  h1 { font-size:33px; }
  .subhead { font-size:14px; }
  .social-intro { width:100%; }
}
@media(prefers-reduced-motion:reduce) { .cta,.logo-card,.social-links a { transition:none; } }

/* Mobile-only fallback when an OS/browser blocks silent autoplay. */
.mobile-play[hidden] { display:none !important; }
.mobile-play { display:none; }
@media (max-width:820px) { .mobile-play:not([hidden]) { display:block; position:fixed; z-index:5; left:50%; top:38%; transform:translate(-50%,-50%); border:1px solid #fff8; border-radius:999px; background:#21172bdf; color:#fff9ef; font:600 14px/1.2 system-ui,sans-serif; padding:14px 20px; cursor:pointer; box-shadow:0 5px 25px #0006; } }

/* FernMoon Bookshelf v1.0 homepage CTA */
.bookshelf-cta { display: flex; align-items: center; justify-content: center; gap: 11px; width: fit-content; max-width: 100%; margin-top: 12px; padding: 13px 19px; border-radius: 100px; background: rgba(52, 29, 65, .52); border: 1px solid rgba(250, 220, 169, .86); color: #fff6df; font-size: 14px; font-weight: 700; text-decoration: none; text-shadow: none; box-shadow: 0 8px 30px #11071e66; backdrop-filter: blur(8px); transition: background .25s ease, transform .25s ease; }
.bookshelf-cta:hover { background: rgba(73, 42, 82, .86); transform: translateY(-2px); }
.bookshelf-cta-star { color: #f7d794; font-size: 19px; }
.bookshelf-cta-arrow { color: #f7d794; margin-left: 5px; font-size: 18px; }
@media (max-width:820px) { .bookshelf-cta { font-size: 12px; padding: 11px 15px; margin-top: 8px; } }
@media (prefers-reduced-motion:reduce) { .bookshelf-cta { transition:none; } }
