@font-face {
  font-family: Pretendard;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Pretendard-Regular.subset.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --navy: #012548;
  --white: #f3f8f8;
  --muted: #b9cedd;
  --line: #34536e;
  --accent: #def1e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 1rem/1.55 Pretendard, system-ui, sans-serif;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  vertical-align: middle;
}

.brand img { display: block; }

.hero {
  display: grid;
  align-items: center;
  gap: 24px;
  padding-block: 24px 36px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

h1, h2, p, dl, dd { margin: 0; }

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.location {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

.intro {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.45;
}

.dive-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.dive-link:hover { background: var(--white); }
.dive-link span { font-size: 1.25rem; }

.reference {
  display: grid;
  gap: 20px;
  padding-block: 24px 28px;
  border-top: 1px solid var(--line);
}

.note { color: var(--muted); }
.reference p { max-width: 29ch; margin-top: 8px; }

.facts > div {
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin-top: 2px; }

.operators, .sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.operators { display: grid; gap: 4px; }
.operators + .note { display: block; margin-top: 4px; }
.sources { display: grid; gap: 12px; }
.sources .note, .facts .note { font-size: 0.875rem; }
.sources .note { display: block; }

@media (min-width: 48rem) {
  .layout { width: min(calc(100% - 80px), 1120px); }
  .brand { min-height: 72px; }
  .hero {
    grid-template-columns: 1.55fr 1fr;
    gap: clamp(32px, 4vw, 60px);
    padding-block: 40px 48px;
  }
  .reference {
    grid-template-columns: 1fr 2.1fr;
    gap: 40px;
    padding-block: 28px 36px;
  }
  .facts > div {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 16px;
  }
  .facts dd { margin-top: 0; }
}

@media (min-width: 64rem) {
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
