@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/fraunces.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-500.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono.woff2') format('woff2');
}

:root {
  --ink: #12141a;
  --muted: #555c66;
  --soft: #8b929b;
  --paper: #fafaf8;
  --line: #e6e3dc;
  --accent: #0a4854;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --font-body: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --measure: 36rem;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--paper);
  /* Barely-there calibration grid; readable as atmosphere, not decoration */
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 3.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 3.5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

a:hover {
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.page {
  width: min(100% - 2.75rem, var(--measure));
  margin: 0 auto;
  padding: clamp(4.25rem, 15vh, 8rem) 0 clamp(3.25rem, 9vh, 5.5rem);
}

.identity {
  margin-bottom: 2.6rem;
}

h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 8.5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.discipline {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: clamp(1.02rem, 2.5vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.place {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.copy {
  max-width: 32.5rem;
}

.lede {
  margin: 0 0 1.65rem;
  color: var(--ink);
  font-size: clamp(1.12rem, 2.4vw, 1.22rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.advisory {
  margin: 0 0 1.65rem;
}

.advisory p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.advisory p:last-child {
  margin-bottom: 0;
}

.cred {
  margin: 0;
}

.cred p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cred p:last-child {
  margin-bottom: 0;
}

.cred a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 0.16em;
}

.cred a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.destinations {
  display: grid;
  gap: 0;
  margin: 2.85rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.dest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  padding: 1.05rem 0;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    color 160ms ease,
    padding-left 160ms ease,
    border-color 160ms ease;
}

@media (min-width: 540px) {
  .dest {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: baseline;
    gap: 1.25rem;
  }

  .dest-target {
    text-align: right;
  }
}

.dest:hover {
  color: inherit;
  padding-left: 0.4rem;
  border-bottom-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.dest-label {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.dest-primary .dest-label {
  font-size: 1.02rem;
}

.dest:hover .dest-label {
  color: var(--accent);
}

.dest-target {
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.dest:hover .dest-target {
  color: var(--muted);
}

.more {
  margin: 1.85rem 0 0;
  font-size: 0.86rem;
}

.more a {
  color: var(--soft);
  text-decoration: none;
  transition: color 160ms ease;
}

.more a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  body {
    background-size: 40px 40px;
  }

  .page {
    width: min(100% - 1.65rem, var(--measure));
    padding: 3.15rem 0 3.5rem;
  }

  .identity {
    margin-bottom: 2.1rem;
  }

  .lede {
    margin-bottom: 1.4rem;
  }

  .advisory,
  .cred {
    margin-bottom: 1.4rem;
  }

  .cred {
    margin-bottom: 0;
  }

  .destinations {
    margin-top: 2.35rem;
  }

  .dest {
    padding: 1.05rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
