@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(fonts/barlow-700.woff2) format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #0d0d0d;
  --sub: #4b5563;
  --muted: #8a8f98;
  --line: #e4e4e4;
  --code: #f4f4f4;
  --brand: #03a84c;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --fg: #f2f2f2;
    --sub: #b8bcc4;
    --muted: #8a8f98;
    --line: #262626;
    --code: #1a1a1a;
    --brand: #47f090;
  }
}
* { box-sizing: border-box; }
html { font-family: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.5; }
a { color: inherit; }

.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 32px; height: 32px; background: #0d0d0d; }
.logo__mark img { display: block; }
.logo__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.lang { display: flex; border: 1px solid var(--line); }
.lang a { padding: 5px 10px; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--sub); }
.lang a[aria-current] { background: var(--fg); color: var(--bg); }

.sheet { width: 100%; max-width: 560px; margin: 0 auto; padding: 28px 20px 8px; flex: 1 0 auto; }
.sheet--message { padding-top: 56px; }
.maker { display: flex; align-items: center; gap: 12px; }
.maker__logo { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.maker p { margin: 0; display: flex; flex-direction: column; line-height: 1.25; }
.maker span { font-size: 13px; color: var(--muted); }
.maker strong { font-size: 16px; font-weight: 600; }
h1 { margin: 22px 0 0; font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lead { margin: 12px 0 0; font-size: 17px; color: var(--sub); }
.serial { display: inline-flex; align-items: stretch; margin: 16px 0 0; border: 1px solid var(--line); font-size: 14px; }
.serial span { padding: 6px 10px; color: var(--sub); border-right: 1px solid var(--line); }
.serial code { padding: 6px 10px; font-family: var(--mono); font-weight: 600; background: var(--code); user-select: all; }

section { margin-top: 32px; box-shadow: inset 0 2px 0 var(--brand); }
h2 { margin: 0; padding: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.fields { margin: 0; }
.fields__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.fields__row--wide { display: block; }
.fields__row--wide dd { margin-top: 4px; text-align: left; font-weight: 400; white-space: pre-line; }
dt { flex: 0 0 auto; max-width: 50%; color: var(--sub); }
dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.unit { font-weight: 500; color: var(--muted); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 32px; padding: 10px 20px; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); margin-top: 0; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

.staff { width: 100%; max-width: 560px; margin: 40px auto 0; padding: 0 20px; }
.staff p { margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.foot { margin-top: 48px; padding: 24px 20px 32px; border-top: 1px solid var(--line); background: var(--code); font-size: 14px; color: var(--sub); }
.foot > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.foot p { margin-top: 0; margin-bottom: 4px; }
.foot__brand { font-weight: 700; color: var(--fg); }
.foot a { display: block; margin-top: 10px; font-weight: 600; color: var(--fg); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
