@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/mulish-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --iti-navy: #002050;
  --iti-navy-deep: #134472;
  --iti-cyan: #00bcf2;
  --iti-slate: #566989;
  --iti-white: #fff;
  --iti-ice: #f5fbff;
  --iti-pale-cyan: #d6eff6;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  font-family: Mulish, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--iti-slate);
  background: var(--iti-white);
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main { flex: 1; }

.shell {
  width: min(100% - 2 * var(--gutter), 75rem);
  margin-inline: auto;
}

h1, h2 {
  margin: 0;
  color: var(--iti-navy);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

a { color: var(--iti-navy); }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0.5rem auto auto 0.5rem;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.75rem;
  background: var(--iti-white);
}

.skip-link:focus { transform: none; }

.header-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 4.5rem;
  padding-block: 0.5rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.wordmark span {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.5rem, 2vw, 1.5rem);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover, nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--iti-cyan);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}

.banner {
  color: var(--iti-white);
  background: linear-gradient(115deg, var(--iti-navy), var(--iti-navy-deep));
}

.banner h1 { color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
}

.hero-photos,
.hero-photos::after,
.hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photos::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--iti-navy) 88%, transparent),
    color-mix(in srgb, var(--iti-navy) 76%, transparent) 40%,
    color-mix(in srgb, var(--iti-navy) 18%, transparent) 76%,
    color-mix(in srgb, var(--iti-navy) 44%, transparent));
  content: "";
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focal-y, 50%);
  opacity: 0;
  transition: opacity 550ms ease-in-out;
}

.hero-slide[aria-hidden="false"] { opacity: 1; }

.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(27rem, 42vw, 35rem);
  padding-block: 4.5rem 5.75rem;
}

.banner h1::before {
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1.25rem;
  background: var(--iti-cyan);
  content: "";
}

.hero h1 {
  font-size: clamp(1.625rem, 7.6vw, 3.75rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero h1 span { display: block; }

.hero-controls {
  position: absolute;
  inset: auto auto 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-controls[hidden],
.hero-toggle[data-playing="true"] .play-icon,
.hero-toggle[data-playing="false"] .pause-icon { display: none; }

.hero-controls button,
.hero-count {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--iti-white) 65%, transparent);
  border-radius: 0.75rem;
  color: var(--iti-white);
  background: color-mix(in srgb, var(--iti-navy) 92%, transparent);
}

.hero-controls button { cursor: pointer; }

.hero-controls button:hover,
.hero-controls button:active { background: var(--iti-navy-deep); }

.hero-controls button:focus-visible {
  outline: 2px solid var(--iti-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--iti-navy);
}

.hero-controls svg { width: 1.25rem; }

.hero-count {
  min-width: 3.25rem;
  padding-inline: 0.35rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.hero-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

.address-band {
  display: grid;
  gap: 1rem 2rem;
  padding-block: clamp(2rem, 5vw, 4rem);
}

address { font-style: normal; }

address strong { color: var(--iti-navy); }

.page-banner { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

.page-banner h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }

.registry {
  display: grid;
  align-items: start;
  gap: 1rem;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border: 1px solid var(--iti-pale-cyan);
  border-radius: 1.05rem;
  background: color-mix(in srgb, var(--iti-ice) 50%, var(--iti-white));
  overflow-wrap: anywhere;
}

.facts { margin: 1.25rem 0 0; }

.facts div { padding-block: 0.65rem; }

.facts div + div { border-top: 1px solid var(--iti-pale-cyan); }

.facts dt {
  color: var(--iti-navy);
  font-weight: 700;
}

.facts dd { margin: 0; }

.card p { margin: 0.75rem 0 0; }

.source {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
}

.site-footer {
  padding-block: 1rem;
  border-top: 1px solid var(--iti-pale-cyan);
  background: var(--iti-ice);
  font-size: 0.875rem;
}

@media (min-width: 42rem) {
  .address-band { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

@media (min-width: 60rem) {
  .hero-photos::after {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--iti-navy) 94%, transparent),
      color-mix(in srgb, var(--iti-navy) 73%, transparent) 45%,
      color-mix(in srgb, var(--iti-navy) 16%, transparent) 85%);
  }

  .hero-layout {
    justify-content: center;
    padding-top: 3rem;
  }

  .hero h1 { font-size: clamp(2.5rem, 4.15vw, 3.75rem); }

  .registry { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
