:root {
  --bg: #FCFBF8;
  --surface: #FFFFFF;
  --soft: #F5F4EF;
  --ink: #16181D;
  --ink-soft: #3E424B;
  --muted: #5C616B;
  --line: #E9E7E0;
  --line-strong: #D8D5CC;
  --inverse: #15171B;
  --inverse-text: #F5F4F0;
  --inverse-muted: #C5C7CC;
  --danger: #9F2D20;
  --brand: #0E6E5C;
  --brand-strong: #0A5546;
  --brand-soft: #E3F0EC;
  --music: #0E6E5C;
  --see: #9C5A0B;
  --zip: #3D56B2;
  --header: 64px;
  --measure: 1120px;
  --wrap: min(var(--measure), calc(100% - 48px));
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: light; background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

main { flex: 1 0 auto; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: #CDE5DE; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
  padding-inline: max(24px, calc((100% - var(--measure)) / 2));
  background: rgba(252, 251, 248, 0.9);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark { width: 34px; height: 34px; border-radius: 9px; }

.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.brand-en {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-panel { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; gap: 4px; }

.nav a {
  position: relative;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
}

.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-weight: 650;
}

.when-open { display: none; }
body.nav-open .when-closed { display: none; }
body.nav-open .when-open { display: inline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1;
}

.btn:hover { background: var(--soft); }
.btn-fill { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-fill:hover { background: #26292F; }
.btn-brand { border-color: var(--brand); background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-strong); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; }

.hero { padding: 72px 0 28px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

h1, .display {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.results { margin-top: 18px; }

.desk {
  background: var(--inverse);
  color: var(--inverse-text);
  border-radius: 18px;
  padding: 22px;
}

.desk h2 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--inverse-muted); font-weight: 700; }
.desk ol { margin-top: 8px; }
.desk a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(245, 244, 240, 0.14);
  text-decoration: none;
  font-weight: 650;
}
.desk li:last-child a { border-bottom: 0; }
.desk a span { color: var(--inverse-muted); font-weight: 550; }

.section { padding: 64px 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.section-head p { max-width: 28rem; color: var(--muted); }

.registry { width: 100%; border-collapse: collapse; }
.registry th {
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.registry td {
  padding: 20px 18px 20px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.registry tr:last-child td { border-bottom: 0; }

.product-name { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.product-name img { width: 44px; height: 44px; }
.product-name small { display: block; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 750;
}
.tag-see { background: #F6EEDF; color: #7A4608; }
.tag-zip { background: #E8ECF8; color: #2C3E86; }
.tag-muted { background: var(--soft); color: var(--muted); }
.tag-warn { background: #F8E8E4; color: var(--danger); }

.row-links { display: flex; gap: 14px; font-weight: 700; }
.row-links a { color: var(--brand-strong); text-underline-offset: 3px; }

.section h2 { margin-bottom: 18px; letter-spacing: -0.03em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px; }
.steps article { padding-top: 8px; }
.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.steps h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p, .limits li, .fine { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.limits li { padding: 14px 0; border-top: 1px solid var(--line); }

.page-hero { padding: 56px 0 12px; }
.page-hero h1 { font-size: clamp(34px, 4vw, 52px); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.panel h2 { font-size: 18px; margin-bottom: 8px; }
.panel p + p { margin-top: 8px; }

.form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field span, fieldset legend { font-size: 13px; font-weight: 750; }
.field em { font-style: normal; color: var(--muted); font-weight: 550; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }

.choices { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.choices label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.choices input { width: auto; min-height: 0; }
.choices label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

.flash {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.flash-bad { background: #F8E8E4; color: var(--danger); }

.release {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.release h3 { font-size: 18px; }
.checksum { margin-top: 6px; color: var(--muted); font-size: 13px; word-break: break-all; }
code { font-family: var(--mono); font-size: 0.92em; }

.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin-top: 22px; }
.facts dt { color: var(--muted); font-weight: 700; }
.empty { color: var(--muted); }

.site-footer { margin-top: 20px; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
.footer-brand { font-weight: 750; }
.site-footer p { color: var(--muted); font-size: 14px; }
.site-footer a.icp { color: inherit; font-weight: 650; text-decoration: none; }
.site-footer a.icp:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.site-footer nav a { font-size: 14px; font-weight: 650; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-panel {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  body.nav-open .header-panel { display: flex; }
  .nav { flex-direction: column; }
  .hero-grid, .split, .layout, .steps, .limits, .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .registry thead { display: none; }
  .registry, .registry tbody, .registry tr, .registry td { display: block; width: 100%; }
  .registry tr { padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
  .registry td { border: 0; padding: 6px 0; }
  .facts { grid-template-columns: 1fr; }
  .release { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
