:root {
  --bg: #fff1e2; --bg2: #ffe5cc; --surface: #fffaf4; --soft: #ffe9d3;
  --text: #15110d; --muted: #5d4b3b; --dim: #9a8570;
  --accent: #ffb27a; --accent-h: #ff9a52; --accent-soft: #ffd9b8; --on-accent: #15110d;
  --ink: #15110d; --on-ink: #fff1e2; --ink-card: #231c16;
  --border: #f2cfaa; --shadow: 0 18px 44px -22px rgba(110, 55, 10, .45);
  --radius: 22px; color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d0b09; --bg2: #14110e; --surface: #171310; --soft: #1b1612;
  --text: #fff2e5; --muted: #cdb8a3; --dim: #8d7a67;
  --accent: #ffb27a; --accent-h: #ffc79d; --accent-soft: #3a2616; --on-accent: #15110d;
  --ink: #1d1712; --on-ink: #fff2e5; --ink-card: #261e17;
  --border: #33291f; --shadow: 0 18px 44px -22px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); }

.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 10px; object-fit: contain; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: .18s; }
.nav a:hover { background: var(--accent-soft); color: var(--text); }
.top-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: .18s; }
.theme:hover { background: var(--accent-soft); }
.theme .moon { display: none; }
[data-theme="dark"] .theme .sun { display: none; }
[data-theme="dark"] .theme .moon { display: inline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 24px; border-radius: 999px; font-weight: 800; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; transition: .18s; cursor: pointer; }
.btn-main { background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
[data-theme="dark"] .btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { transform: translateY(-2px); background: #000; }
[data-theme="dark"] .btn-main:hover { background: var(--accent-h); }
.btn-line { border-color: var(--ink); color: var(--text); }
[data-theme="dark"] .btn-line { border-color: var(--accent); color: var(--accent); }
.btn-line:hover { background: var(--accent-soft); }
.btn-ghost { background: var(--accent); color: var(--on-accent); min-height: 42px; padding: 9px 20px; }
.btn-ghost:hover { background: var(--accent-h); }

.hero { padding: 64px 0 56px; background: radial-gradient(900px circle at 85% 10%, var(--accent-soft), transparent 60%), radial-gradient(700px circle at 0% 100%, var(--bg2), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--accent); font-weight: 700; font-size: 13.5px; letter-spacing: .01em; }
[data-theme="dark"] .tag { background: var(--accent-soft); }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.07; letter-spacing: -.035em; margin: 18px 0 16px; font-weight: 900; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 580px; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.art-card { width: min(420px, 100%); aspect-ratio: 1; border-radius: 36px; background: var(--surface); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--accent); display: grid; place-items: center; padding: 18px; }
[data-theme="dark"] .art-card { border-color: var(--accent); box-shadow: 14px 14px 0 var(--accent-soft); background: #f7efe6; }
.art-card img { width: 100%; height: auto; }
.chip { position: absolute; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--accent); font: 700 13px/1 ui-monospace, "SF Mono", Consolas, monospace; box-shadow: var(--shadow); white-space: nowrap; }
.c1 { top: 8px; left: 0; } .c2 { bottom: 30px; right: -6px; background: var(--accent); color: var(--on-accent); } .c3 { bottom: -4px; left: 10%; }

.band { background: var(--ink); color: var(--on-ink); }
.band-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 0; }
.band-in div { display: flex; flex-direction: column; padding: 6px 14px; border-left: 2px solid var(--accent); }
.band-in b { color: var(--accent); font-size: 17px; }
.band-in span { font-size: 14px; opacity: .8; }

.sec { padding: 78px 0; }
.sec.soft { background: var(--soft); }
.sec.dark { background: var(--ink); color: var(--on-ink); }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; font-weight: 850; }
.sub { margin: 0 0 34px; color: var(--muted); font-size: 17px; max-width: 640px; }
.dark .sub { color: var(--on-ink); opacity: .8; }
h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
[data-theme="dark"] .ic { background: var(--accent-soft); }

.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 16px; background: var(--ink-card); border: 1px solid #3a2e24; border-radius: var(--radius); padding: 24px; }
.steps p { margin: 0; opacity: .8; font-size: 15.5px; }
.steps a { color: var(--accent); }
.n { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 19px; display: grid; place-items: center; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.dl { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border); text-decoration: none; box-shadow: var(--shadow); transition: .2s; }
.dl:hover { transform: translateY(-4px); border-color: var(--ink); background: var(--accent-soft); }
[data-theme="dark"] .dl:hover { border-color: var(--accent); }
.dl.rec { border-color: var(--ink); background: var(--accent); color: var(--on-accent); }
[data-theme="dark"] .dl.rec { border-color: var(--accent); }
.dl-os { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.dl-sub { font-size: 14.5px; opacity: .85; }
.dl-meta { margin-top: 10px; font-size: 13px; opacity: .7; }
.dl-rec { position: absolute; top: 14px; right: 14px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.note { margin: 26px 0 0; color: var(--muted); font-size: 14.5px; }
.empty { padding: 22px; border: 2px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); }

details { background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; margin: 0 0 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent-h); transition: .18s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
details a { color: var(--text); font-weight: 700; }

.foot { background: var(--ink); color: var(--on-ink); padding: 34px 0; }
.foot-in { display: grid; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.foot-brand img { border-radius: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--on-ink); opacity: .8; text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { opacity: 1; color: var(--accent); }
.copy { font-size: 13px; opacity: .55; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-h); outline-offset: 2px; }

@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .art-card { width: min(300px, 80%); box-shadow: 10px 10px 0 var(--accent); }
  .grid, .steps { grid-template-columns: 1fr; }
  .band-in { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .sec { padding: 56px 0; }
}
@media (max-width: 520px) {
  .brand span { font-size: 17px; }
  .btn-ghost { display: none; }
  .band-in { grid-template-columns: 1fr; }
  .c1 { left: -4px; } .c2 { right: -4px; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
