@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --text: #24272b;
  --strong: #111315;
  --muted: #73787e;
  --line: #e7e8ea;
  --accent: #1f4a73;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131518;
    --text: #d5d8dc;
    --strong: #f3f4f5;
    --muted: #8c929a;
    --line: #2a2e33;
    --accent: #8db6e2;
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul { margin: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

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

.page {
  max-width: 860px;
  margin: 0 auto;
  padding:
    max(40px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

/* Header: logo lockup plus anchor links */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  flex: none;
  width: 40px;
  height: 46px;
  color: var(--strong);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: inherit;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--strong);
}

.logo-sub {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--strong);
  text-decoration: none;
}

/* Sections: label column plus content column */

.row {
  display: grid;
  gap: 12px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .row {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }
}

.row h2 {
  padding-top: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.body > * + * { margin-top: 14px; }

.body strong {
  font-weight: 600;
  color: var(--strong);
}

/* Compact two-column lists */

.list {
  padding: 0;
  list-style: none;
  font-size: 0.975rem;
}

@media (min-width: 520px) {
  .list {
    columns: 2;
    column-gap: 32px;
  }
}

.list li {
  position: relative;
  padding: 2px 0 2px 16px;
  break-inside: avoid;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 1px;
  background: var(--muted);
}

/* Footer */

.foot {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
