:root {
  --blue: #0f2d46;
  --blue-ink: #092338;
  --green: #4c6b5d;
  --stone: #e7e2da;
  --off-white: #faf8f4;
  --amber: #c47a3a;
  --line: rgba(15, 45, 70, 0.18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--blue);
  background: var(--off-white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--off-white);
  background: var(--blue);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 244, 0.97);
}

.brand { width: min(260px, 55vw); }

.site-header nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-header nav a,
.footer-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 92px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--off-white);
  background: var(--blue);
}

.hero-image,
.hero-shade,
.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 24, 37, 0.9) 0%, rgba(5, 24, 37, 0.63) 46%, rgba(5, 24, 37, 0.16) 78%),
    linear-gradient(0deg, rgba(5, 24, 37, 0.35), transparent 45%);
}

.hero-flow {
  opacity: 0.52;
  background: url("assets/flow-lines-dark.svg") center / cover no-repeat;
  mix-blend-mode: screen;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 7vw, 7rem);
}

.eyebrow,
.section-label p {
  margin: 0;
  font-size: 0.71rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { color: #e7b98e; }
h1, h2, h3, p { margin-top: 0; }

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  margin: 1.15rem 0 1.4rem;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.15rem;
  color: #fff;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover { color: var(--blue); background: #f1c29a; }

.section {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7rem);
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-top: 0.5rem;
}

.section-label span {
  color: var(--amber);
  font-family: var(--serif);
  font-size: 0.8rem;
}

.intro {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  align-items: start;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.intro h2,
.directions h2,
.contact h2 {
  margin-bottom: 2rem;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.035em;
}

.intro-copy p,
.directions-heading p {
  max-width: 42rem;
  color: #405262;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.intro-mark {
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  width: min(38vw, 480px);
  opacity: 0.08;
}

.directions {
  color: var(--off-white);
  background: var(--blue);
}

.section-label.light p { color: var(--stone); }
.directions-heading p { color: #cbd3ce; }

.direction-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid rgba(250, 248, 244, 0.2);
  border-bottom: 1px solid rgba(250, 248, 244, 0.2);
}

.direction-grid article {
  position: relative;
  min-height: 360px;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(250, 248, 244, 0.2);
}

.direction-grid article:first-child { border-left: 1px solid rgba(250, 248, 244, 0.2); }

.direction-grid img {
  width: 64px;
  margin: 3rem 0 4.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.direction-grid h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.direction-grid p {
  margin-bottom: 0;
  color: #cbd3ce;
  font-size: 0.94rem;
}

.card-number {
  color: #e7b98e;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.contact {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  align-items: center;
  background: var(--stone);
}

.contact-art {
  position: absolute;
  inset: auto -8% -25% -8%;
  opacity: 0.45;
}

.contact-copy,
.contact .section-label {
  position: relative;
  z-index: 1;
}

.contact-copy p { color: #405262; font-size: 1.2rem; }

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--amber);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { color: var(--amber); }

.official {
  min-height: 610px;
  align-items: center;
}

.official-copy {
  width: min(760px, 100%);
}

.official h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.035em;
}

.official-copy > p {
  max-width: 42rem;
  margin-bottom: 2.5rem;
  color: #405262;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: #fff;
  text-decoration: none;
}

.account-card:hover {
  border-color: var(--amber);
}

.account-card strong,
.account-card small {
  display: block;
}

.account-card strong {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
}

.account-card small {
  color: #405262;
  font-size: 0.82rem;
}

footer {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 1fr auto;
  align-items: end;
  gap: 2rem;
  padding: 3.5rem clamp(1.25rem, 7vw, 7rem);
  color: var(--off-white);
  background: var(--blue-ink);
}

footer img { width: 230px; }
footer p { margin-bottom: 0; color: #cbd3ce; }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 248, 244, 0.15);
  font-size: 0.72rem;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(rgba(250, 248, 244, 0.94), rgba(250, 248, 244, 0.94)),
    url("assets/topographic-contours.svg") center / cover;
}

.error-page main { width: min(720px, 100%); }

.error-page img {
  width: 250px;
  margin-bottom: clamp(4rem, 10vw, 8rem);
}

.error-page h1 { color: var(--blue); }

.error-page > main > p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: #405262;
  font-size: 1.15rem;
}

@media (max-width: 860px) {
  .site-header nav { display: none; }
  .section { grid-template-columns: 1fr; }

  .direction-grid {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .direction-grid article,
  .direction-grid article:first-child {
    min-height: auto;
    border: 0;
    border-top: 1px solid rgba(250, 248, 244, 0.2);
  }

  .direction-grid img { margin: 2rem 0 2.75rem; }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copyright { grid-column: 1; }
}

@media (max-width: 540px) {
  .site-header { min-height: 78px; }
  .brand { width: 220px; }
  .hero { min-height: calc(100svh - 78px); }
  .hero-copy { align-self: end; }
  h1 { font-size: clamp(3.3rem, 17vw, 5.2rem); }
  .intro-mark { width: 72vw; }
}

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