:root {
  color-scheme: light;
  --background: #f4f0e6;
  --surface: #fffdf8;
  --text: #25231f;
  --muted: #625e55;
  --accent: #7b2d26;
  --accent-dark: #57201b;
  --border: #d8d0c0;
  --shadow: 0 12px 30px rgb(52 43 30 / 10%);
  font-family: Verdana, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

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

.site-header {
  color: white;
  background: #292720;
}

.header-inner,
main,
.footer-inner {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  color: white;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: #f0c9a7;
}

main {
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(13rem, 19rem) 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-image {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  max-width: 18ch;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.8rem);
}

h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 7vw, 5rem);
}

.card,
details {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card > :last-child {
  margin-bottom: 0;
}

.route-plans {
  margin-top: 1.25rem;
}

summary {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

details img {
  display: block;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
}

.archive-section {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.archive-section li + li {
  margin-top: 0.75rem;
}

.problem-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.problem-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.problem-description {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.problem-description span {
  display: block;
}

.problem-description span + span {
  margin-top: 0.2rem;
}

.problem-board {
  display: block;
  width: auto;
  margin-block: 1.25rem;
  border: 1px solid var(--border);
}

.problem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.solution-toggle,
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.4rem;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.solution-toggle:hover,
.solution-toggle:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  color: white;
  background: var(--accent-dark);
}

.solution-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.solution-panel h3 {
  margin-top: 0;
}

.source-note {
  margin-top: 2rem;
}

.site-footer {
  padding-block: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 44rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: min(100%, 16rem);
  }
}
