:root {
  --navy: #002868;
  --navy-deep: #06122b;
  --red: #bf0a30;
  --red-bright: #e11d48;
  --white: #f8fafc;
  --white-soft: rgba(248, 250, 252, 0.88);
  --line: rgba(248, 250, 252, 0.22);
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy-deep);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(
      to bottom,
      rgba(6, 18, 43, 0.88) 0%,
      rgba(6, 18, 43, 0.32) 48%,
      rgba(6, 18, 43, 0.90) 100%
    ),
    url("images/american-flag.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page--inner {
  background-attachment: scroll;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem 4rem;
  align-items: center;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.75rem, 12vw, 9.25rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--white-soft);
}

.cities {
  margin-top: 2.75rem;
}

.city-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.2rem 0.95rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.08);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.city-link:hover,
.city-link:focus-visible {
  background: rgba(248, 250, 252, 0.16);
  border-color: rgba(248, 250, 252, 0.45);
  transform: translateY(-1px);
}

.city-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.city-link span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--white-soft);
}

.city-link .arrow {
  font-size: 1.4rem;
  color: #fecaca;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.6rem;
  background: rgba(6, 18, 43, 0.94);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--white-soft);
}

.photo-credit {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.55);
}

.photo-credit a {
  color: inherit;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover,
.footer a:focus-visible {
  border-bottom-color: currentColor;
}

.inner {
  flex: 1;
  padding: 3.5rem 0 4rem;
}

.inner h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.inner .updated {
  margin: 0 0 1.75rem;
  color: var(--white-soft);
  font-size: 0.92rem;
}

.prose {
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--white-soft);
}

.prose h2 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}

.prose a {
  color: #fecaca;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #fecaca;
  text-decoration: none;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page {
    background-attachment: scroll;
  }
}
