@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  size-adjust: 100%;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
  size-adjust: 100%;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  size-adjust: 100%;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/fonts/IBMPlexSerif-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
  size-adjust: 100%;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/fonts/IBMPlexSerif-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  size-adjust: 100%;
}

:root {
  --navy: #002448;
  --navy-2: #001830;
  --orange: #f0900c;
  --orange-ink: #7a4a00;
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --ink: #0a1e33;
  --muted: #3d4f63;
  --line: #cfc4b0;
  --warn: #8a5a00;
  --radius: 4px;
  --space: 8px;
  --measure: 40em;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", "PT Sans", "Segoe UI", sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(0, 36, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 36, 72, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: #00366c; }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.mast {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 56px;
}
.mast-in {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 0;
  flex-wrap: nowrap;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.mark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-btn {
  display: none;
  cursor: pointer;
  border: 1px solid var(--navy);
  padding: 8px 12px;
  font: 500 14px/1 "IBM Plex Sans", sans-serif;
  background: transparent;
  color: var(--navy);
  flex-shrink: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}
nav a:hover,
nav a[aria-current="page"] { color: var(--navy); }
nav a.map-link {
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  margin-left: 6px;
}
nav a.map-link:hover { color: #fff; background: #00366c; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
h1, h2, .serif { font-family: "IBM Plex Serif", "PT Serif", Georgia, serif; }
h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 18em;
}
.lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  max-width: 36em;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.btn-main { background: var(--orange); color: var(--navy-2); }
.btn-main:hover { background: #d8820a; color: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.device {
  margin: 0;
  background: var(--navy);
  padding: 10px 10px 14px;
  max-width: 340px;
  margin-left: auto;
}
.device img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #111;
}
.device figcaption {
  color: #e8e0d2;
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stats div {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stats div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}
.stats span { color: var(--muted); font-size: 14px; }

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.ways article {
  padding: 8px 12px 0;
  text-align: center;
}
.ways h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
}
.ways p { margin: 0 0 10px; color: var(--muted); }

.rules {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.rules h2 { margin: 0 0 16px; font-size: 26px; font-weight: 600; }
.rules ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
}
.rules li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.rules li::before {
  content: counter(n, decimal-leading-zero);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  color: var(--navy);
}
.rules strong { color: var(--ink); font-weight: 600; }

.gallery {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.gallery h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; }
.gallery .lead { margin: 0 0 20px; color: var(--muted); }
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
}
.shots figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.places { padding: 40px 0; border-bottom: 1px solid var(--line); }
.places h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; }
.places .lead { margin: 0 0 20px; color: var(--muted); max-width: var(--measure); }
.places ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  gap: 32px;
}
.places li {
  break-inside: avoid;
  padding: 4px 0;
  border-bottom: 1px solid var(--paper-2);
  font-size: 15px;
}

.notice {
  margin: 40px 0;
  padding: 16px 0 16px 16px;
  border-left: 4px solid var(--orange);
}
.notice h2 { margin: 0 0 8px; font-size: 18px; }
.notice p { margin: 0; color: var(--ink); }

.prose {
  padding: 40px 0 64px;
  max-width: var(--measure);
}
.prose h1 {
  max-width: none;
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.prose p, .prose li { color: var(--muted); }
.prose code {
  font-family: "IBM Plex Sans", ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--paper-2);
  padding: 1px 4px;
}
.log {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
}
.log b { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

.foot {
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--navy); }

@media (max-width: 1080px) {
  .mast-in { flex-wrap: wrap; }
  .hero, .ways, .shots, .stats { grid-template-columns: 1fr; }
  .shots { max-width: 360px; margin-inline: auto; }
  .places ul { columns: 2; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 12px; }
  .stats div:last-child { border-bottom: 0; }
  .device { margin: 8px auto 0; }
  .nav-btn { display: inline-flex; margin-left: auto; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 3;
  }
  nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  nav a.map-link { margin: 8px 0 0; text-align: center; }
  #nav:checked ~ nav { display: flex; }
}
@media (max-width: 520px) {
  .places ul { columns: 1; }
  h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
