@font-face { font-family: Alegreya; src: url('generated/alegreya.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Atkinson; src: url('generated/atkinson_regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Atkinson; src: url('generated/atkinson_bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #fff6e6;
  --soft: #d4cbd8;
  --paper: #29273f;
  --line: #81788e;
  --accent: #edc09b;
  --fallback: url('generated/deep-night.webp');
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 Atkinson, sans-serif; }
.landscape { position: fixed; inset: 0; z-index: -1; background: var(--fallback) center / cover; pointer-events: none; }
.landscape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#151326a8, transparent 240px); }
#meadow { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s; }
#meadow.ready { opacity: 1; }
html[data-meadow-still="true"] #meadow { opacity: 0; }
.masthead { max-width: 78rem; margin: auto; padding: 2rem clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead a { display: inline-flex; flex-shrink: 1; min-width: 0; }
.masthead img { width: 150px; max-width: 100%; height: auto; }
main { max-width: 76rem; margin: 1rem auto 5rem; padding: clamp(24px, 4vw, 56px); overflow-wrap: anywhere; background: rgba(35, 33, 53, .94); border: 1px solid rgba(255,246,230,.18); border-radius: 28px; box-shadow: 0 20px 70px #14132635; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
main > * { min-width: 0; }
.introduction { grid-column: 1; grid-row: 1; }
.introduction h1 { margin-top: 0; max-width: 12ch; }
.introduction > p:nth-of-type(2) { border-left: 2px solid var(--accent); padding-left: 1rem; margin-block: 1.5rem; color: var(--accent); }
.account-actions { grid-column: 2; grid-row: 1 / 3; }
.subscription-notice { margin: 0 0 1rem; padding: 1.25rem; background: #edc09b; color: #29273f; border: 1px solid #ffe1c7; border-left: 5px solid #fff6e6; border-radius: 12px; }
.subscription-notice h2 { margin: 0 0 .5rem; font-size: 1.5rem; color: inherit; }
.subscription-notice p { margin: 0; }
.instructions { grid-column: 1; grid-row: 2; padding-top: 1rem; }
.instructions h2 { margin-top: 1rem; }
.instructions ol { list-style: none; counter-reset: steps; padding: 0; }
.instructions ol li { counter-increment: steps; position: relative; padding-left: 2.8rem; margin-block: 1.2rem; }
.instructions ol li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--accent); font-size: .875rem; padding-top: .15rem; }
.instructions > p { color: var(--soft); font-size: .9375rem; }
.reference { grid-column: 1 / -1; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.legal-detail { border-bottom: 1px solid #81788e70; }
.legal-detail:last-child { border-bottom: 0; }
.legal-detail summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; list-style: none; padding: 1.4rem 0; }
.legal-detail summary::-webkit-details-marker { display: none; }
.legal-detail summary::after { content: '+'; flex: none; font: 1.6rem/1 Atkinson, sans-serif; color: var(--accent); }
.legal-detail[open] summary::after { content: '−'; }
.legal-detail summary h2 { margin: 0; font-size: 1.5rem; }
.legal-detail summary:hover h2 { color: var(--accent); }
.detail-body { max-width: 64ch; padding: 0 0 1.5rem; }
.detail-body > :first-child { margin-top: 0; }
.legal-detail[open] summary { padding-bottom: 1rem; }
h1, h2 { font-family: Alegreya, Georgia, serif; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em; margin: 1.5rem 0; }
h2 { font-size: 1.75rem; line-height: 1.2; margin: 2.25rem 0 .75rem; letter-spacing: -.015em; }
p { margin: .85rem 0; }
.legal > h1 + p { font-size: 1.2rem; color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.4rem; }
li { padding-left: .25rem; margin: .55rem 0; }
li::marker { color: var(--accent); }
.controls { padding: 1.75rem; background: #fff6e609; border: 1px solid #81788e70; border-radius: 20px; }
.controls h2 { margin-top: 0; }
#google, #sign-in { width: 100%; }
#status:empty { margin: 0; min-height: 0; }
#or { display: flex; align-items: center; gap: 1rem; color: var(--soft); margin: 1.5rem 0; }
#or::after { content: ''; height: 1px; background: var(--line); flex: 1; }
label { display: block; margin: 1rem 0 .35rem; }
input[type="email"], input[type="password"] { display: block; width: 100%; min-height: 3rem; padding: .7rem .85rem; font: inherit; color: inherit; background: #1e1d30; border: 1px solid var(--line); border-radius: 10px; }
button { min-height: 2.75rem; max-width: 100%; padding: .65rem 1.35rem; font: inherit; line-height: 1.4; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; overflow-wrap: anywhere; }
button:hover:not(:disabled) { background: #fff6e612; border-color: var(--accent); }
#sign-in { color: #29273f; background: var(--accent); border-color: var(--accent); }
#sign-in:hover:not(:disabled) { background: #f7d4b7; }
button:disabled { opacity: .5; cursor: default; }
button.danger { border-color: #edae9e; color: #ffccbd; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.box { display: flex; gap: .75rem; align-items: flex-start; }
.box input { width: 1.4rem; height: 1.4rem; margin: .2rem 0 0; flex: none; accent-color: var(--accent); }
.box label { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
#status { min-height: 1.5rem; font-weight: 700; }
.scenery-toggle { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 12px; min-height: 48px; background: #29273fe6; border-color: #fff6e64d; }
.scenery-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.scenery-toggle .play-icon, .scenery-toggle[aria-pressed="true"] .pause-icon { display: none; }
.scenery-toggle[aria-pressed="true"] .play-icon { display: block; }
@media (max-width: 1248px) { main { margin-inline: 24px; } }
@media (max-width: 900px) {
  main { display: flex; flex-direction: column; margin: .5rem 16px 3rem; }
  main > * { width: 100%; }
  .introduction h1 { max-width: 18ch; }
  .account-actions { margin-top: 2rem; }
  .controls { padding: 1.5rem; }
  .instructions { margin-top: 1rem; }
  .reference { margin-top: 1.5rem; }
}
@media (max-width: 420px) { main { margin-inline: 12px; padding: 24px 20px; border-radius: 22px; } .masthead { padding: 24px; } .controls { padding: 1.2rem; } }
@media (prefers-reduced-motion: reduce) { #meadow { transition: none; } }
