/* Subtle — Soft Editorial Materialism. Canonical eight-mood tokens. */
:root[data-mood="teal"] {
  color-scheme: light;
  --bg-main:#F3F8F7; --bg-surface:#FFFFFF; --bg-surface-variant:#E5F0EE; --bg-surface-hover:#D9E9E6;
  --primary:#3F6B67; --primary-hover:#345B57; --primary-container:#D5E7E4; --on-primary-container:#1F3835;
  --text-main:#22302F; --text-muted:#637572; --border-subtle:#D7E4E1; --border-active:#3F6B67;
}
:root[data-mood="graphite"] {
  color-scheme: dark;
  --bg-main:#111315; --bg-surface:#171A1D; --bg-surface-variant:#202428; --bg-surface-hover:#2A3035;
  --primary:#B8C0C8; --primary-hover:#CBD2D9; --primary-container:#31373D; --on-primary-container:#E8EDF1;
  --text-main:#EEF1F4; --text-muted:#A6AFB7; --border-subtle:#30363C; --border-active:#B8C0C8;
}
:root[data-mood="slate"] {
  color-scheme: light;
  --bg-main:#F6F7F8; --bg-surface:#FFFFFF; --bg-surface-variant:#ECEFF2; --bg-surface-hover:#E2E6EA;
  --primary:#4D5D6C; --primary-hover:#3E4D5A; --primary-container:#DDE4E9; --on-primary-container:#26323C;
  --text-main:#252B31; --text-muted:#68737D; --border-subtle:#DEE3E7; --border-active:#4D5D6C;
}
:root[data-mood="forest"] {
  color-scheme: light;
  --bg-main:#F4F7F1; --bg-surface:#FFFFFF; --bg-surface-variant:#EAF0E6; --bg-surface-hover:#E0E9DC;
  --primary:#49644B; --primary-hover:#3C563E; --primary-container:#DDE9D8; --on-primary-container:#223524;
  --text-main:#253025; --text-muted:#687466; --border-subtle:#DCE4D8; --border-active:#49644B;
}
:root[data-mood="beige"] {
  color-scheme: light;
  --bg-main:#FAF8F5; --bg-surface:#FFFFFF; --bg-surface-variant:#F4EFEA; --bg-surface-hover:#ECE4DC;
  --primary:#6B5040; --primary-hover:#574032; --primary-container:#EDE3DA; --on-primary-container:#332317;
  --text-main:#2A231F; --text-muted:#7A6D64; --border-subtle:#E8E0D7; --border-active:#6B5040;
}
:root[data-mood="sky-night"] {
  color-scheme: dark;
  --bg-main:#0B1220; --bg-surface:#111A2B; --bg-surface-variant:#18243A; --bg-surface-hover:#21314B;
  --primary:#8FB7FF; --primary-hover:#A4C5FF; --primary-container:#1B355B; --on-primary-container:#D6E5FF;
  --text-main:#EAF1FF; --text-muted:#A8B4C7; --border-subtle:#29384F; --border-active:#8FB7FF;
}
:root[data-mood="lavender"] {
  color-scheme: light;
  --bg-main:#F7F5FA; --bg-surface:#FFFFFF; --bg-surface-variant:#EEEAF4; --bg-surface-hover:#E5DFEC;
  --primary:#665A7A; --primary-hover:#554A68; --primary-container:#E5DDED; --on-primary-container:#332B40;
  --text-main:#2C2833; --text-muted:#706A78; --border-subtle:#E0DAE7; --border-active:#665A7A;
}
:root[data-mood="rosewood"] {
  color-scheme: light;
  --bg-main:#FAF5F5; --bg-surface:#FFFFFF; --bg-surface-variant:#F3E9E9; --bg-surface-hover:#EADDDD;
  --primary:#7A4F55; --primary-hover:#684147; --primary-container:#EEDCDD; --on-primary-container:#3D262A;
  --text-main:#312628; --text-muted:#77686A; --border-subtle:#E7DADA; --border-active:#7A4F55;
}

:root {
  color-scheme: light;
  --font-heading:"Lexend Deca", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body:"Inclusive Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono:"JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-control:10px;
  --radius-card:16px;
  --radius-panel:24px;
  --radius-full:9999px;
  --ease-soft:cubic-bezier(.2,.7,.2,1);
  --bg-main:#FAF8F5; --bg-surface:#FFFFFF; --bg-surface-variant:#F4EFEA; --bg-surface-hover:#ECE4DC;
  --primary:#6B5040; --primary-hover:#574032; --primary-container:#EDE3DA; --on-primary-container:#332317;
  --text-main:#2A231F; --text-muted:#7A6D64; --border-subtle:#E8E0D7; --border-active:#6B5040;
}

*,*::before,*::after { box-sizing:border-box; }
html { min-height:100%; background:var(--bg-main); color:var(--text-main); font-family:var(--font-body); text-size-adjust:100%; scroll-behavior:smooth; }
body { min-height:100vh; min-height:100dvh; margin:0; background:var(--bg-main); color:var(--text-main); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; }
button,a { color:inherit; font:inherit; }
a { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.page-shell { width:min(100% - 48px, 1120px); min-height:100vh; min-height:100dvh; margin-inline:auto; display:flex; flex-direction:column; }
.site-header { position:relative; z-index:2; min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:16px; }
.brand { display:inline-flex; align-items:center; gap:11px; min-height:44px; text-decoration:none; border-radius:var(--radius-control); }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:var(--primary-container); color:var(--on-primary-container); font-family:var(--font-heading); font-size:17px; font-weight:650; letter-spacing:-.06em; }
.brand-name { color:var(--text-muted); font-size:13px; letter-spacing:.015em; }
.brand-name span { padding-inline:4px; color:var(--text-light, var(--text-muted)); }
.appearance-wrap { position:relative; }
.appearance-trigger { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:8px 14px; border:1px solid var(--border-subtle); border-radius:var(--radius-full); background:var(--bg-surface-variant); color:var(--text-main); cursor:pointer; font-size:13px; font-weight:560; transition:border-color 180ms var(--ease-soft),transform 180ms var(--ease-soft); }
.appearance-trigger:hover { background:var(--bg-surface-hover); border-color:var(--border-active); }
.appearance-trigger:active { transform:scale(.985); }
.palette-icon { width:18px; height:18px; flex:none; color:var(--primary); }
.trigger-separator { color:var(--text-muted); }
.current-mood { color:var(--primary); }
.appearance-panel { position:absolute; z-index:5; top:calc(100% + 10px); right:0; width:min(336px,calc(100vw - 32px)); max-height:calc(100dvh - 88px); overflow:auto; padding:18px; border:1px solid var(--border-subtle); border-radius:var(--radius-panel); background:var(--bg-surface); color:var(--text-main); box-shadow:0 14px 38px rgb(20 24 30 / 13%); }
:root[data-mood="graphite"] .appearance-panel,:root[data-mood="sky-night"] .appearance-panel { box-shadow:0 14px 38px rgb(0 0 0 / 38%); }
.appearance-panel[hidden] { display:none; }
.appearance-panel h2 { margin:0 0 13px; font-family:var(--font-heading); font-size:15px; font-weight:560; letter-spacing:-.015em; }
.mood-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.mood-option { position:relative; min-width:0; min-height:48px; display:grid; grid-template-columns:18px minmax(0,1fr) 18px; align-items:center; gap:10px; padding:7px 10px; border:1px solid transparent; border-radius:var(--radius-control); background:transparent; color:var(--text-main); text-align:left; cursor:pointer; }
.mood-option:hover { background:var(--bg-surface-variant); }
.mood-option[aria-checked="true"] { border-color:var(--border-subtle); background:var(--bg-surface-variant); }
.mood-option:focus-visible { outline:3px solid var(--primary); outline-offset:2px; }
.mood-swatch { width:16px; height:16px; border:1px solid color-mix(in srgb,var(--text-main) 18%,transparent); border-radius:50%; background:var(--swatch); }
.mood-name { overflow:hidden; color:var(--text-main); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.mood-check { width:17px; height:17px; color:var(--primary); opacity:0; }
.mood-option[aria-checked="true"] .mood-check { opacity:1; }
.main-content { flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; gap:clamp(22px,4vh,38px); padding-block:18px 24px; }
.hero { text-align:center; }
.eyebrow { width:max-content; max-width:100%; display:flex; align-items:center; gap:13px; margin:0 auto 14px; color:var(--text-muted); font-family:var(--font-mono); font-size:10px; font-weight:550; letter-spacing:.18em; line-height:1.4; }
.eyebrow::before,.eyebrow::after { width:clamp(24px,5vw,58px); height:1px; content:""; background:var(--border-active); opacity:.55; }
h1 { margin:0; color:var(--text-main); font-family:var(--font-heading); font-size:clamp(3rem,6vw,5.2rem); font-weight:520; letter-spacing:-.067em; line-height:1.03; text-wrap:balance; }
.hero-subtitle { margin:13px 0 0; color:var(--text-main); font-size:clamp(16px,1.7vw,19px); font-weight:500; letter-spacing:-.015em; }
.hero-secondary { margin:5px 0 0; color:var(--text-muted); font-size:14px; }
.directory { width:min(100%,950px); margin-inline:auto; }
.directory-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:11px; }
.directory-heading h2 { margin:0; color:var(--text-muted); font-family:var(--font-mono); font-size:10px; font-weight:550; letter-spacing:.13em; line-height:1.5; }
.directory-heading p { flex:none; margin:0; color:var(--text-muted); font-family:var(--font-mono); font-size:11px; font-variant-numeric:tabular-nums; }
.destination-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.destination { min-width:0; min-height:95px; display:flex; flex-direction:column; justify-content:center; gap:3px; padding:14px 17px; border:1px solid var(--border-subtle); border-radius:var(--radius-card); background:var(--bg-surface); color:var(--text-main); text-decoration:none; transition:border-color 180ms var(--ease-soft),transform 180ms var(--ease-soft); }
.destination:hover { transform:translateY(-2px); border-color:var(--border-active); background:var(--bg-surface-hover); }
.destination:active { transform:translateY(0); }
.destination-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.destination-title { overflow-wrap:anywhere; font-family:var(--font-heading); font-size:15px; font-weight:580; letter-spacing:-.025em; }
.destination-arrow { flex:none; color:var(--primary); font-size:17px; line-height:1; transition:transform 180ms var(--ease-soft); }
.destination:hover .destination-arrow { transform:translate(2px,-2px); }
.destination-url { overflow:hidden; color:var(--text-muted); font-family:var(--font-mono); font-size:10px; line-height:1.45; text-overflow:ellipsis; }
.destination-description { color:var(--text-muted); font-size:12px; line-height:1.4; }
.site-footer { flex:none; padding:13px 0 max(20px,env(safe-area-inset-bottom)); color:var(--text-muted); text-align:center; font-size:12px; }

html.motion-ready [data-enter] { animation:quiet-arrive 420ms var(--ease-soft) both; }
html.motion-ready [data-enter="header"] { animation-duration:220ms; }
html.motion-ready [data-enter="eyebrow"] { animation-delay:70ms; }
html.motion-ready [data-enter="title"] { animation-delay:110ms; }
html.motion-ready [data-enter="subtitle"] { animation-delay:220ms; animation-duration:360ms; }
html.motion-ready [data-enter="secondary"] { animation-delay:290ms; animation-duration:340ms; }
html.motion-ready [data-enter="directory"] { animation-delay:340ms; animation-duration:380ms; }
html.motion-ready [data-enter="tile"] { animation-delay:calc(390ms + var(--tile-index,0) * 28ms); animation-duration:360ms; }
html.motion-ready [data-enter="footer"] { animation-delay:620ms; animation-duration:260ms; }
html.motion-ready [data-enter]:focus-within { animation:none; opacity:1; transform:none; }
@keyframes quiet-arrive { from { opacity:0; transform:translate3d(0,8px,0); } to { opacity:1; transform:translate3d(0,0,0); } }

@media (max-width:720px) {
  .page-shell { width:min(100% - 36px, 560px); }
  .site-header { min-height:70px; gap:12px; }
  .brand { gap:8px; }
  .brand-mark { width:32px; height:32px; }
  .brand-name { font-size:12px; }
  .appearance-trigger { gap:7px; padding-inline:11px; font-size:12px; }
  .main-content { gap:clamp(24px,5vh,38px); padding-block:24px 28px; }
  h1 { font-size:clamp(3rem,10vw,4.3rem); }
  .destination-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .destination { min-height:94px; padding:13px 14px; }
  .site-footer { padding-top:15px; }
}
@media (max-width:370px) {
  .page-shell { width:calc(100% - 32px); }
  .site-header { gap:6px; flex-wrap:wrap; }
  .appearance-wrap { margin-left:auto; }
  .brand-name { font-size:10px; letter-spacing:-.02em; }
  .appearance-trigger { gap:5px; padding-inline:8px; font-size:10px; }
  h1 { font-size:clamp(2.15rem,9vw,2.55rem); }
  .destination-grid { grid-template-columns:1fr; }
  .destination { min-height:82px; }
  .directory-heading { align-items:flex-start; gap:8px; }
  .directory-heading h2 { max-width:62%; }
}
@media (min-width:1024px) {
  .appearance-panel { position:absolute; top:calc(100% + 10px); right:clamp(-144px,calc(576px - 50vw),-8px); width:min(304px,calc(100vw - 32px)); }
}
@media (max-width:1023px) {
  .site-header:has(.appearance-panel:not([hidden])) { flex-wrap:wrap; align-items:flex-start; }
  .site-header:has(.appearance-panel:not([hidden])) .appearance-wrap { flex:0 0 100%; width:100%; display:flex; flex-direction:column; align-items:flex-end; }
  .appearance-panel { position:static; width:min(336px,calc(100vw - 32px)); max-height:calc(100dvh - 140px); margin-top:10px; }
}
@media (min-width:1024px) and (max-width:1199px) {
  .appearance-panel { width:min(312px,calc(100vw - 32px)); }
  .mood-option { grid-template-columns:16px minmax(0,1fr) 14px; gap:6px; padding-inline:7px; }
}
@media (min-width:1200px) {
  .appearance-panel { width:min(336px,calc(100vw - 32px)); }
}
@media (max-width:370px) {
  .mood-option { grid-template-columns:16px minmax(0,1fr) 14px; gap:6px; padding-inline:7px; }
}
@media (max-height:760px) and (min-width:721px) {
  .site-header { min-height:64px; padding-block:10px; }
  .main-content { gap:20px; padding-block:9px 14px; }
  .eyebrow { margin-bottom:8px; }
  .hero-subtitle { margin-top:9px; }
  .destination { min-height:84px; padding-block:10px; }
  .destination-grid { gap:9px; }
  .directory-heading { margin-bottom:8px; }
  .site-footer { padding-top:8px; padding-bottom:12px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
  html.motion-ready [data-enter] { opacity:1; transform:none; animation:none; }
}
