:root {
  --ink: #13241c;
  --muted: #5a6b62;
  --paper: #f4f1ea;
  --sheet: #fbfaf6;
  --forest: #1a3d31;
  --gilt: #c6a15b;
  --liability: #722536;
  --line: #d5ddd7;
  --display: "Source Serif 4", "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
  --body: "Source Sans 3", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --data: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--forest);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus-visible { left: 12px; }

.split {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 0.95fr);
}

.cover {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 39px,
      rgba(198, 161, 91, 0.12) 39px 40px
    ),
    var(--forest);
  color: #fff;
  padding: 28px 36px 0;
  padding-left: max(36px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: inset -3px 0 0 var(--gilt);
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gilt);
  font-weight: 650;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.35);
}

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

.mark {
  margin: 0 0 10px;
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gilt);
}

.cover h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.1;
}
.cover h1 .en {
  font-family: var(--body);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

.sub {
  margin: 12px 0 0;
  max-width: 26em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sub .en {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.ghost {
  list-style: none;
  margin: auto 0 20px;
  padding: 8px 0 0;
  font-family: var(--data);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.ghost li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost .net {
  color: #fff;
  border-bottom: 0;
  border-top: 2px solid var(--gilt);
  margin-top: 4px;
  font-weight: 650;
}

.bands {
  list-style: none;
  margin: 0 -36px 0 calc(-1 * max(36px, env(safe-area-inset-left)));
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bands li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.bands .a { background: #1b4d3e; box-shadow: inset 0 2px 0 var(--gilt); }
.bands .l { background: var(--liability); }
.bands span:last-child {
  font-weight: 400;
  opacity: 0.85;
  font-size: 12px;
}

.sheet {
  background: var(--sheet);
  padding: 48px 56px;
  padding-right: max(56px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  max-width: none;
}

.sheet form,
.sheet h2,
.sheet .kicker {
  width: 100%;
  max-width: 380px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 650;
}

.sheet h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet h2 .en {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
  font-size: 14px;
}

.field .en {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
  touch-action: manipulation;
}

.field input:hover { border-color: #b7c4bb; }

.field input:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 2px;
  border-color: var(--forest);
}

.field input.is-bad { border-color: var(--liability); }

.err {
  margin: 0 0 12px;
  color: var(--liability);
  font-size: 14px;
}
.err:empty { display: none; }

.go {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  background: var(--forest);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--gilt);
  touch-action: manipulation;
}

.go .en {
  font-weight: 400;
  opacity: 0.8;
  font-size: 13px;
}
.go:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 2px;
}
.go:disabled {
  opacity: 0.72;
  cursor: wait;
}

.foot { margin: 20px 0 0; }

.foot a,
.foot a:visited,
.foot a:hover {
  color: var(--forest);
  font-size: 14px;
  text-underline-offset: 3px;
}
.foot a .en {
  color: var(--muted);
  font-size: 12px;
}
.foot a:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .cover {
    min-height: auto;
    padding-bottom: 0;
    box-shadow: inset 0 -3px 0 var(--gilt);
  }
  .cover h1 { font-size: 36px; }
  .ghost { display: none; }
  .hero { padding: 20px 0 16px; }
  .bands {
    margin-left: calc(-1 * max(36px, env(safe-area-inset-left)));
    margin-right: -36px;
  }
  .sheet {
    padding: 32px 24px 40px;
    justify-content: flex-start;
  }
  .sheet form,
  .sheet h2,
  .sheet .kicker { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .go, .field input { transition: none; }
}
