/* Layout: sticky pill nav, a tinted hero band per page, then cards and buttons on a warm ground. */
:root {
  --bg: #f6f2f0;
  --paper: #fffdfb;
  --band: #f1e4ea;
  --ink: #2a2230;
  --muted: #6e6474;
  --line: #e6dcd8;
  --rose: #b8405e;
  --rose-ink: #ffffff;
  --violet: #6a5bb8;
  --head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17131b; --paper: #221b27; --band: #2a1f2e; --ink: #efe8f0; --muted: #b2a6b6;
    --line: #362c3c; --rose: #f07a97; --rose-ink: #1d1420; --violet: #a99bf0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17131b; --paper: #221b27; --band: #2a1f2e; --ink: #efe8f0; --muted: #b2a6b6;
  --line: #362c3c; --rose: #f07a97; --rose-ink: #1d1420; --violet: #a99bf0; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.75 var(--body); }
a { color: var(--rose); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.3; text-wrap: balance; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.2rem; margin-bottom: 6px; }
p { margin: 0 0 1em; }
.jp { font-weight: 700; }
.hand { font-family: var(--hand); font-size: 1.55rem; color: var(--violet); line-height: 1.2; margin: 0 0 6px; }
.muted { color: var(--muted); }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 980px; margin: 0 auto; }
.narrow { max-width: 660px; }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); display: inline-block; }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; overflow-x: auto; max-width: 100%; }
.menu a { display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.92rem; white-space: nowrap; transition: background .2s, color .2s; }
.menu a:hover { background: var(--band); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--rose); color: var(--rose-ink); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font: 700 0.95rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--rose); background: var(--rose); color: var(--rose-ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px -8px var(--rose); }
.btn.ghost { background: transparent; color: var(--rose); }
.btn.small { padding: 7px 14px; font-size: 0.85rem; }

/* hero band */
.band { background: var(--band); }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-block: 56px; }
.hero > * { min-width: 0; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.hero.solo { grid-template-columns: 1fr; padding-block: 44px; }
.spiral { width: 100%; max-width: 300px; aspect-ratio: 1; justify-self: center; display: block; }

main section { padding-block: 48px; }

/* quote */
.quote { font-family: var(--head); font-size: clamp(1.3rem, 3.6vw, 1.75rem); line-height: 1.5; text-align: center; max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.quote small { display: block; font-family: var(--hand); font-size: 1.4rem; color: var(--violet); margin-top: 10px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--rose); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; flex: 1; }
.card .go { color: var(--rose); font-weight: 700; font-size: 0.92rem; }
.card .kicker { font-family: var(--hand); font-size: 1.3rem; color: var(--violet); line-height: 1; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; padding: 0; list-style: none; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; }
.chips b { color: var(--rose); }

/* songs */
.feature { background: var(--paper); border: 2px solid var(--rose); border-radius: 18px; padding: 26px; display: grid; gap: 6px; }
.feature .tagline { font-family: var(--hand); font-size: 1.4rem; color: var(--rose); }
.songs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.song { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; }
.song > * { min-width: 0; }
.song h3 small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.song p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 12px; }
.video { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; border: 0; border-radius: 16px; background: var(--paper); display: block; }
.cap { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* letter */
.letter { background: var(--paper); border-radius: 18px; padding: clamp(22px, 5vw, 44px); border: 1px solid var(--line); font-size: 1.08rem; }
.letter .believe { font-family: var(--head); font-size: 1.25rem; color: var(--rose); line-height: 1.55; }
.sign { text-align: right; font-family: var(--hand); font-size: 1.8rem; color: var(--violet); margin: 8px 0 0; }

/* follow */
.follow { text-align: center; }
.follow .btns { justify-content: center; }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 0.88rem; }
footer .inner { display: grid; gap: 6px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
footer nav a { font-weight: 700; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 32px; }
  .spiral { max-width: 180px; grid-row: 1; justify-self: start; }
  .cards, .songs { grid-template-columns: 1fr; }
}

/* news */
.newsbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 20px; padding: 14px 18px; background: var(--paper); border: 2px solid var(--rose); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .2s; }
.newsbar:hover { transform: translateY(-2px); }
.newsbar > span { min-width: 0; }
.newsbar .go { color: var(--rose); font-weight: 700; margin-left: auto; white-space: nowrap; }
.pill { background: var(--rose); color: var(--rose-ink); font-weight: 700; font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; }
.count { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.count div { background: var(--band); border-radius: 12px; padding: 10px 16px; text-align: center; min-width: 84px; }
.count b { display: block; font-family: var(--head); font-size: 1.8rem; line-height: 1.1; color: var(--rose); font-variant-numeric: tabular-nums; }
.count span { font-size: 0.8rem; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.timeline li > * { min-width: 0; }
.timeline time { font-weight: 700; color: var(--violet); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.timeline h3 { margin-bottom: 4px; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* full news timeline, grouped by year */
.year { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 14px; }
.year h2 { margin: 0; }
.year span { color: var(--muted); font-size: 0.9rem; }
.timeline.compact { gap: 8px; }
.timeline.compact li { grid-template-columns: 4.6rem 1fr; padding: 12px 16px; border-radius: 12px; }
.timeline.compact h3 { font-size: 1.02rem; margin: 0; }
.timeline.compact p { margin: 2px 0 0; font-size: 0.9rem; }
.timeline.compact li.big { border: 2px solid var(--rose); }
.timeline.compact li.small { background: transparent; }
.tagmini { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--violet); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 2px; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 760px) { .timeline.compact li { grid-template-columns: 1fr; gap: 0; } }

/* official Spotify players */
.sp { width: 100%; max-width: 100%; border: 0; border-radius: 12px; display: block; margin: 4px 0 12px; background: var(--band); }

/* message wall */
.msgform { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; margin-top: 18px; }
.msgform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msgform label { display: grid; gap: 4px; font-weight: 700; font-size: 0.92rem; min-width: 0; }
.msgform input, .msgform textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; }
.msgform input:focus, .msgform textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.msgform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.formfoot .muted { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.formmsg { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
.formmsg.err { color: var(--rose); font-weight: 700; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.msgs { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.msgs li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.msgs li.empty { text-align: center; color: var(--muted); background: transparent; border-style: dashed; }
.msgs .who { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; margin-bottom: 4px; }
.msgs .who b { font-family: var(--head); }
.msgs .who span { color: var(--muted); }
.msgs p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msgs li.new { border-color: var(--rose); }
@media (max-width: 760px) { .msgform .row { grid-template-columns: 1fr; } }
.human { min-height: 65px; }
