:root {
  --bg: #f6f3ee;
  --ink: #1a1c1a;
  --muted: #5c635c;
  --line: #d5d0c6;
  --card: #fffdf8;
  --accent: #0b6e4f;
  --accent-ink: #063d2c;
  --max: 52rem;
  --sans: "IBM Plex Sans", "Noto Sans SC", "Noto Sans JP", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7f2ec 0%, transparent 55%),
    linear-gradient(180deg, #efeae2 0%, var(--bg) 40%);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.78rem;
  max-width: min(100%, 36rem);
  justify-content: flex-end;
}

.lang-switch a {
  text-decoration: none;
  padding: 0.15rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  color: var(--muted);
}

.lang-switch a[aria-current="page"] {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.sheet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.sheet-list a {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  color: inherit;
}

.sheet-list a:hover {
  border-color: #b9cfc4;
}

.sheet-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.sheet-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--card);
  margin: 1rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f3efe8;
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child,
th:first-child {
  font-family: var(--mono);
  white-space: nowrap;
}

.notes {
  margin: 0 0 2rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.notes li {
  margin-bottom: 0.35rem;
}

.related {
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.related ul {
  padding-left: 1.1rem;
}

.site-footer {
  margin: 3rem 0 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
