/* ── NovaAuthor landing ─────────────────────────────────────── */
:root {
  --night:   #0F1436;
  --plum:    #2A1E4F;
  --rose:    #C98AA6;
  --gold:    #F2C46B;
  --cream:   #F5EDDC;
  --cream-2: #D9D0BF;
  --ink:     #1B1A2E;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --text:    'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); background: var(--night); color: var(--cream); line-height: 1.65; font-size: 1.05rem; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 72; letter-spacing: -.01em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
p { max-width: 62ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* top bar */
.nova-top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); }
.nova-brand { font-family: var(--display); font-size: 1.35rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.nova-star { width: 16px; height: 16px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); display: inline-block; }
.nova-star.small { width: 11px; height: 11px; }
.nova-nav { display: flex; gap: clamp(14px, 2.5vw, 30px); align-items: center; font-size: .95rem; }
.nova-nav a { text-decoration: none; color: var(--cream-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nova-nav a:hover { color: var(--cream); border-bottom-color: var(--rose); }
.nova-signin { border: 1px solid rgba(245,237,220,.35) !important; border-radius: 999px; padding: 8px 16px !important; color: var(--cream) !important; }
.nova-signin:hover { border-color: var(--gold) !important; }

/* sky */
.sky { position: relative; min-height: 100vh; padding: clamp(120px, 16vh, 170px) clamp(20px, 5vw, 64px) 120px; overflow: hidden; background: radial-gradient(ellipse 120% 70% at 50% 110%, var(--plum) 0%, var(--night) 60%); }
.stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--cream); opacity: .55; }
.star.big { width: 3px; height: 3px; opacity: .85; box-shadow: 0 0 6px rgba(245,237,220,.7); }
@media (prefers-reduced-motion: no-preference) {
  .star.twinkle { animation: twinkle var(--dur, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
  @keyframes twinkle { 50% { opacity: .15; } }
}
.constellation { position: absolute; right: clamp(0px, 4vw, 60px); top: 90px; width: min(48vw, 600px); height: auto; pointer-events: none; opacity: .9; }
.constellation polyline { fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-opacity: .7; stroke-dasharray: 1200; stroke-dashoffset: 0; }
.const-stars circle { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(242,196,107,.8)); }
.const-labels text { font-family: var(--display); font-style: italic; font-size: 13px; fill: var(--cream-2); opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .constellation polyline { stroke-dashoffset: 1200; animation: draw 2.6s ease-out .6s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .const-stars circle { opacity: 0; animation: appear .5s ease forwards; }
  .const-stars circle:nth-child(1) { animation-delay: .6s; } .const-stars circle:nth-child(2) { animation-delay: 1s; } .const-stars circle:nth-child(3) { animation-delay: 1.4s; }
  .const-stars circle:nth-child(4) { animation-delay: 1.8s; } .const-stars circle:nth-child(5) { animation-delay: 2.2s; } .const-stars circle:nth-child(6) { animation-delay: 2.6s; } .const-stars circle:nth-child(7) { animation-delay: 3s; }
  .const-labels text { opacity: 0; animation: appear .8s ease 3.1s forwards; }
  @keyframes appear { to { opacity: .85; } }
}
.hero { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); margin-bottom: 22px; }
.hero-lede { font-size: 1.15rem; color: var(--cream-2); max-width: 56ch; margin-bottom: 44px; }

/* the memo → page moment */
.memo { display: grid; grid-template-columns: minmax(220px, 300px) 40px minmax(260px, 420px); gap: 14px; align-items: center; margin-bottom: 44px; }
.memo-card { background: rgba(245,237,220,.06); border: 1px solid rgba(245,237,220,.18); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px); }
.memo-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--cream-2); margin-bottom: 10px; }
.memo-dot { width: 9px; height: 9px; border-radius: 50%; background: #E06C6C; box-shadow: 0 0 8px #E06C6C; }
.memo-title { flex: 1; }
.memo-len { font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 38px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--rose); height: var(--h, 30%); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .wave.playing i { animation: bounce 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
  @keyframes bounce { 50% { height: calc(var(--h, 30%) * .35); } }
}
.memo-arrow { transform: rotate(-90deg); color: var(--gold); opacity: .8; }
.memo-arrow svg { width: 40px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-card { background: var(--cream); color: var(--ink); border-radius: 6px 14px 14px 6px; padding: 18px 20px 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), inset 3px 0 0 var(--rose); min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.page-line { font-family: var(--display); font-size: 1.12rem; line-height: 1.5; min-height: 3.2em; font-variation-settings: "SOFT" 100, "opsz" 18; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--ink); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(2) infinite; }
.caret.done { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.page-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: #5A5670; margin-top: 12px; flex-wrap: wrap; }
.saved { opacity: 0; transition: opacity .6s ease; color: #2F6B45; font-weight: 700; }
.saved.show { opacity: 1; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-star { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 999px; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 30px -12px rgba(242,196,107,.8); }
.btn-star:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(242,196,107,1); }
.hero-note { color: var(--cream-2); font-size: .92rem; }
.dawn { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to top, rgba(201,138,166,.35), rgba(201,138,166,0)); pointer-events: none; }

/* orbits */
.orbit-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 520px); gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(70px, 10vh, 120px) clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.orbit-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.orbit-list li { padding-left: 22px; position: relative; color: var(--cream-2); max-width: 60ch; }
.orbit-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.orbit-list li:nth-child(2)::before { background: var(--gold); } .orbit-list li:nth-child(3)::before { background: var(--cream); } .orbit-list li:nth-child(4)::before { background: #9BB8E8; } .orbit-list li:nth-child(5)::before { background: #8FD0B6; }
.orbit-list strong { color: var(--cream); font-weight: 700; }
.orbits { width: 100%; height: auto; }
.orbits .ring { fill: none; stroke: rgba(245,237,220,.22); stroke-width: 1; stroke-dasharray: 3 5; }
.orbits .sun { fill: var(--gold); }
.orbits .sun-label { font-family: var(--display); font-size: 15px; fill: var(--ink); text-anchor: middle; font-weight: 600; }
.orbits .planet text { font-family: var(--text); font-size: 13px; fill: var(--cream-2); text-anchor: middle; }
.orbits .p-rec { fill: var(--rose); } .orbits .p-doc { fill: var(--gold); } .orbits .p-book { fill: var(--cream); } .orbits .p-cover { fill: #9BB8E8; } .orbits .p-audio { fill: #8FD0B6; } .orbits .p-support { fill: #E06C6C; }
@media (prefers-reduced-motion: no-preference) {
  .orbits .ring { animation: spin 90s linear infinite; transform-origin: 260px 260px; }
  .orbits .ring:nth-of-type(3) { animation-duration: 140s; animation-direction: reverse; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* people */
.people { background: var(--cream); color: var(--ink); padding: clamp(70px, 10vh, 120px) clamp(20px, 5vw, 64px); }
.people-statement { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; max-width: 18ch; margin: 0 auto 40px; text-align: center; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96; }
.people-statement em { font-style: italic; color: #7B3F5E; }
.people-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.people-cols p { font-size: 1.05rem; line-height: 1.7; color: #3A3750; }
.formats-shelf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1000px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(27,26,46,.15); }
.fmt { font-family: var(--display); font-size: 1.1rem; background: var(--night); color: var(--cream); padding: 6px 14px; border-radius: 6px 6px 2px 2px; }
.fmt-note { color: #5A5670; font-size: .92rem; margin-left: 6px; }

/* book shelf */
.book { display: grid; grid-template-columns: minmax(280px, 460px) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(70px, 10vh, 120px) clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.book-copy p { color: var(--cream-2); margin-bottom: 16px; }
.book-audio { color: var(--cream) !important; border-left: 3px solid var(--rose); padding-left: 14px; }
.shelf { position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 0 24px 16px; height: 300px; }
.spine { position: relative; width: 62px; border-radius: 4px 4px 2px 2px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 6px; color: var(--ink); box-shadow: inset -4px 0 0 rgba(0,0,0,.18), 0 10px 20px -12px rgba(0,0,0,.8); }
.spine span { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.spine small { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .78rem; letter-spacing: .02em; opacity: .85; }
.s1 { height: 200px; background: #D9D0BF; } .s2 { height: 222px; background: var(--rose); } .s3 { height: 232px; background: #9BB8E8; }
.s4 { height: 252px; background: var(--gold); box-shadow: inset -4px 0 0 rgba(0,0,0,.18), 0 0 0 3px rgba(242,196,107,.35), 0 10px 20px -12px rgba(0,0,0,.8); }
.spine.current::after { content: 'current'; position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--gold); white-space: nowrap; }
.shelf-board { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(#6B5A7C, #4A3D5C); border-radius: 3px; box-shadow: 0 14px 20px -12px rgba(0,0,0,.9); }

/* support + footer */
.support { padding: 0 clamp(20px, 5vw, 64px) clamp(70px, 10vh, 120px); }
.support-inner { max-width: 760px; margin: 0 auto; text-align: center; background: rgba(245,237,220,.05); border: 1px solid rgba(245,237,220,.14); border-radius: 22px; padding: clamp(36px, 6vw, 60px) clamp(22px, 5vw, 56px); }
.support-inner p { margin: 0 auto 28px; color: var(--cream-2); }
.nova-foot { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; padding: 26px clamp(20px, 5vw, 64px); border-top: 1px solid rgba(245,237,220,.12); font-size: .92rem; color: var(--cream-2); }
.nova-foot a { color: var(--cream); }

/* responsive */
@media (max-width: 900px) {
  .constellation { position: static; width: 100%; max-width: 520px; margin: -30px auto 10px; display: block; opacity: .75; }
  .sky { padding-top: 100px; }
  .orbit-section, .book { grid-template-columns: 1fr; }
  .orbits { max-width: 460px; margin: 0 auto; }
  .book { grid-template-areas: none; }
  .shelf { justify-content: center; height: 280px; }
}
@media (max-width: 640px) {
  .nova-nav a:not(.nova-signin) { display: none; }
  .memo { grid-template-columns: 1fr; gap: 6px; }
  .memo-arrow { transform: none; justify-self: center; height: 40px; overflow: hidden; }
  .memo-arrow svg { height: 40px; }
  .spine { width: 54px; }
  .s1 { height: 170px; } .s2 { height: 188px; } .s3 { height: 198px; } .s4 { height: 214px; }
}
