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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--navy);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-xl); }

a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: var(--space-1); }

/* Header: always light so the logo stays readable */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.brand img { height: 4rem; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}
.site-nav-wrap { flex: 1 1 auto; }
.site-nav a, .footer-links a {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

/* Not-yet-built destinations: static text, clearly not a link or button */
.pending {
  color: var(--gray);
  font-size: var(--text-sm);
  font-style: italic;
  text-decoration: none;
  cursor: default;
}
.pending-note {
  color: var(--gray);
  font-size: var(--text-sm);
  font-style: italic;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* Placeholder text. The tag shows only when DEMO_MODE adds .demo-mode to <html>. */
.ph { font-style: normal; }
.demo-mode .ph::after {
  content: "placeholder";
  margin-left: 0.5em;
  padding: 0.1em 0.5em;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  vertical-align: middle;
}

main { padding: var(--space-8) 0; }
.lead { font-size: var(--text-lg); color: var(--gray); max-width: 40rem; }

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-6) 0;
  font-size: var(--text-sm);
}
.site-footer p { margin: 0 0 var(--space-1); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: var(--space-2) 0;
  padding: 0;
  list-style: none;
}
.site-footer .ph::after { color: var(--white); border-color: var(--white); }
.site-footer .pending { color: var(--white); }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }

.center { text-align: center; }

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