:root {
  --paper: #f8f0df;
  --paper-deep: #eadfc9;
  --ink: #20231f;
  --muted: #615f56;
  --line: #bdb39e;
  --accent: #b64a2d;
  --accent-deep: #80301f;
  --signal: #17664e;
  --focus: #075f92;
  --wash: #e6cfa9;
  --status-error-bg: #f8ded6;
  --status-warning-bg: #f5e4b5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", Verdana, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 92% 4%, rgba(182, 74, 45, .14), transparent 22rem), repeating-linear-gradient(90deg, rgba(32,35,31,.025) 0 1px, transparent 1px 9px), var(--paper); }
a { color: var(--accent-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: -5rem; background: var(--ink); color: #fff; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { max-width: 76rem; margin: 0 auto; min-height: 5rem; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font: 700 clamp(1.15rem, 2vw, 1.5rem)/1 var(--serif); text-decoration: none; letter-spacing: -.04em; }
.brand-mark { color: var(--accent); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.nav a { font-size: .92rem; font-weight: 700; }
.button { appearance: none; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--accent-deep); background: var(--accent); color: #fff; padding: .65rem 1rem; font: 700 .94rem var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { color: #fff; background: var(--accent-deep); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.danger { border-color: #7d251d; background: #9b3329; }
main { max-width: 76rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.eyebrow { color: var(--signal); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding: clamp(2rem, 7vw, 6rem) 0 3rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); align-items: end; gap: clamp(1.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.045em; }
h1 { max-width: 13ch; margin: .25rem 0 1rem; font-size: clamp(2.9rem, 8vw, 6.5rem); line-height: .88; }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1; }
.lede { max-width: 52ch; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.sound-card { min-height: 21rem; padding: 1.5rem; color: #f8f0df; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 10px 10px 0 var(--wash); }
.wave { height: 7rem; margin-bottom: auto; background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 10px, #e6cfa9 11px 13px, transparent 14px 22px); opacity: .9; }
.sound-card p { color: #e6cfa9; }
.sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 3rem -1.25rem; background: var(--line); border-block: 1px solid var(--line); }
.step { min-height: 15rem; padding: 1.5rem; background: var(--paper); }
.step strong { color: var(--accent); font: 700 1.2rem var(--serif); }
.trust { max-width: 60rem; padding: 2rem 0; }
.auth-shell { max-width: 34rem; margin: clamp(1rem, 8vw, 5rem) auto; padding: 2rem; background: rgba(255,255,255,.38); border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--wash); }
.auth-shell h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
.field { display: grid; gap: .45rem; margin: 1rem 0; }
.field label { font-weight: 800; }
.field input { width: 100%; min-height: 44px; border: 1px solid var(--ink); border-radius: 0; background: #fffaf0; padding: .65rem; font: inherit; }
.hint, .muted { color: var(--muted); font-size: .9rem; }
.form-message { min-height: 1.4rem; margin: 1rem 0; padding: .7rem; background: var(--status-error-bg); color: #5f2018; }
.form-message:empty { display: none; }
.form-message.success { background: #d9ede4; color: #164936; }
.panel { display: grid; grid-template-columns: minmax(12rem, .38fr) minmax(0, 1fr); gap: 2rem; }
.rail { border-right: 1px solid var(--line); padding-right: 1.25rem; }
.rail ol { list-style: none; padding: 0; }
.rail li { padding: .8rem 0; border-top: 1px solid var(--line); }
.rail li::before { content: "-- "; color: var(--accent); font-weight: 800; }
.panel-content { max-width: 48rem; }
.notice { border-left: 5px solid var(--signal); padding: .85rem 1rem; background: #deeee8; }
.notice.warning { border-color: #a66e00; background: var(--status-warning-bg); }
.account-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 719px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .panel { grid-template-columns: 1fr; }
  .sound-card { min-height: 15rem; }
  .sections { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .step { animation: enter .45s both ease-out; }
  .hero > :last-child { animation-delay: .12s; }
  .step:nth-child(2) { animation-delay: .08s; }
  .step:nth-child(3) { animation-delay: .16s; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (forced-colors: active) { .button { border: 2px solid ButtonText; } .notice { border: 2px solid CanvasText; } }
