:root {
  --paper: #f3efe6;
  --ink: #1c1915;
  --pine: #0c6b4c;
  --pine-soft: #e7f3ec;
  --line: #d8d0c2;
  --mute: #5f584e;
  --sheet: #fbf8f2;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plex Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.mast { padding: 28px 0 0; }
.mast-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}
.mark {
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
}
.mark-sub {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--mute);
}
.mast-go {
  align-self: center;
  text-decoration: none;
  border-bottom: 1px solid var(--pine);
  color: var(--pine);
  font-weight: 500;
  padding-bottom: 2px;
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.mast nav a { text-decoration: none; }
.mast nav a[aria-current="page"] { color: var(--pine); }
.lang { display: flex; gap: 8px; align-items: center; }
.lang button { background: none; border: 0; color: var(--mute); font: inherit; cursor: pointer; padding: 0; }
.lang button[aria-pressed="true"] { color: var(--ink); }

.plate {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding: 56px 0 28px;
}
h1 {
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0 0 14px;
}
.lead { font-size: 1.15rem; max-width: 38rem; margin: 0 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.actions a { color: var(--pine); }

figure { margin: 0; }
figure img { width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--ink); }
.plate figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: center 68%; aspect-ratio: 4 / 5; }
figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--mute);
}

.ledger { width: 100%; border-collapse: collapse; margin: 10px 0 64px; }
.ledger th, .ledger td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.ledger th {
  font-weight: 400;
  color: var(--mute);
  width: 42%;
}
.ledger td { font-size: 1rem; }

.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.num { color: var(--pine); }
.row h2, .band h2, .sheet h2 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 8px;
}
.row p { margin: 0; color: var(--mute); }

.band {
  background: var(--pine-soft);
  margin: 72px 0;
  padding: 48px 0;
}
.band .wrap { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.band p { margin: 0; max-width: 36rem; }
.band a { color: var(--pine); white-space: nowrap; }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--ink);
  color: var(--mute);
  font-size: 0.92rem;
}
.colophon p { margin: 0; max-width: 36rem; }

.sheet-page { padding: 48px 0 72px; display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 48px; align-items: start; }
.sheet {
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 28px 28px 32px;
}
label { display: block; margin: 16px 0 6px; font-size: 0.92rem; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  font: inherit;
  color: inherit;
  border-radius: 0;
}
.hp { position: absolute; left: -9999px; }
canvas { width: 100%; height: auto; margin-top: 8px; }
.gate-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
button, .textbtn {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--pine);
  cursor: pointer;
}
.submit {
  margin-top: 22px;
  background: var(--pine);
  color: #f3efe6;
  border: 0;
  padding: 12px 22px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.note { min-height: 1.4em; margin: 12px 0 0; font-size: 0.92rem; }
.fine { color: var(--mute); font-size: 0.92rem; }

.miss { padding: 72px 0 96px; max-width: 40rem; }

@media (max-width: 800px) {
  .plate, .row, .sheet-page, .band .wrap, .mast-top, .colophon {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .row { gap: 12px; }
  .mast nav, .lang { margin-left: 0; }
}

.lang button { color: var(--mute); }
.lang button[aria-pressed="true"] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
