:root {
  --ink: #1c1915;
  --ink-soft: #3a342c;
  --muted: #5c564e;
  --paper: #f3efe6;
  --sheet: #fffdf8;
  --line: #ddd4c6;
  --seal: #0d5c45;
  --seal-deep: #084536;
  --seal-soft: #e4f2ec;
  --fail: #8f2f1f;
  --fail-soft: #f8ebe6;
  --warn: #8a5a12;
  --warn-soft: #f8f1df;
  --shadow: 0 22px 50px rgba(48, 36, 16, 0.1);
  --serif: "Newsreader", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --header: 72px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.45;
}

body.page { background: var(--sheet); }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 40;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 500 0.95rem/1 var(--sans);
}

.btn-primary { background: var(--seal); color: #f3fbf7; }
.btn-primary:hover { background: var(--seal-deep); }

.hero-wrap { padding: 12px 0 64px; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seal);
}

h1 {
  margin: 0 0 28px;
  max-width: 11ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shot {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-top: 4px solid var(--seal);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 8px;
}

.shot-late { border-top-color: var(--warn); }
.shot-fail { border-top-color: var(--fail); }

.shot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shot-key {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
}

.shot-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shot-reason {
  margin: 10px 0 14px;
  min-height: 2.6em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.badge {
  margin: 0;
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-pass { background: var(--seal-soft); color: var(--seal-deep); }
.badge-late { background: var(--warn-soft); color: var(--warn); }
.badge-fail { background: var(--fail-soft); color: var(--fail); }

.shot table {
  width: 100%;
  border-collapse: collapse;
}

.shot th,
.shot td {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.92rem;
}

.shot th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
}

.shot td { text-align: right; }

.result-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.mark { width: 15px; height: 15px; flex: none; }
.mark-pass { color: var(--seal); }
.mark-fail { color: var(--fail); }
.mark-warn { color: var(--warn); }
.mark-info { color: var(--muted); }

.site-footer {
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--ink-soft); }

.prose {
  width: min(740px, calc(100% - 48px));
  margin: 28px auto 72px;
}

.prose h1 {
  max-width: none;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 12px;
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 28px 0 8px;
}

.prose p { color: var(--ink-soft); }
.prose a { color: var(--seal-deep); }

.page .site-header { border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .site-header { padding: 0 16px; }
  h1 { font-size: clamp(3rem, 14vw, 4rem); }

  .board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .shot {
    min-width: min(320px, 86vw);
    scroll-snap-align: start;
  }
}
