:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #64605d;
  --paper: #faf7f1;
  --surface: #fffdf8;
  --line: #d9d2c4;
  --sage: #587366;
  --blue: #2f5f91;
  --red: #b4473f;
  --gold: #b7832f;
  --shadow: 0 18px 50px rgba(35, 31, 28, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(32, 33, 36, 0.12);
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #f2c14e;
  font-size: 0.62rem;
}

.nav-links,
.hero-actions,
.card-top {
  display: flex;
  flex-wrap: wrap;
}

.nav-links {
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-links a,
.button {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.48rem 0.75rem;
  background: rgba(255, 253, 248, 0.72);
  text-decoration: none;
  font-weight: 680;
  font-size: 0.9rem;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.nav-links a:hover,
.button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  background: #fff;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.section,
.section-band {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
}

.hero {
  min-height: calc(100svh - 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.intro {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.workbench-visual {
  position: relative;
  min-height: 360px;
  height: min(62vh, 560px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(32, 33, 36, 0.05) 1px, transparent 1px),
    #f3efe5;
  background-size: 36px 36px;
  box-shadow: var(--shadow);
}

.notebook-sheet {
  position: absolute;
  left: 12%;
  top: 14%;
  width: min(68%, 25rem);
  aspect-ratio: 4 / 3;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  background: var(--surface);
  box-shadow: 18px 18px 0 rgba(88, 115, 102, 0.22);
  transform: rotate(-3deg);
}

.sheet-rule {
  display: block;
  height: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 3px solid rgba(47, 95, 145, 0.28);
}

.sheet-rule.short {
  width: 64%;
}

.pin {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: #fffdf8;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(32, 33, 36, 0.12);
}

.pin:hover {
  transform: translateY(-1px);
  background: #fff;
}

.pin-one {
  left: 14%;
  top: 20%;
}

.pin-two {
  right: 13%;
  top: 36%;
}

.pin-three {
  left: 47%;
  bottom: 14%;
}

.pin-four {
  left: 21%;
  bottom: 25%;
}

.map-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.1);
}

.map-caption strong,
.map-caption span {
  display: block;
}

.map-caption span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.4rem;
}

.section-heading p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.updates-band {
  border-block: 1px solid var(--line);
  background: #f6efe1;
}

.updates-list {
  display: grid;
  gap: 0.65rem;
  max-width: 980px;
}

.update-item {
  display: grid;
  grid-template-columns: minmax(7rem, 0.22fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  background: var(--surface);
}

.update-date {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 850;
}

.update-item strong {
  display: block;
  line-height: 1.2;
}

.update-item p,
.project-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(35, 31, 28, 0.06);
}

.card-top {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.type-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.1;
  white-space: nowrap;
}

.type-chip {
  border: 1px solid var(--line);
  color: var(--blue);
  background: #edf5f8;
}

.status-chip.in-progress {
  border: 1px solid rgba(183, 131, 47, 0.35);
  color: var(--gold);
  background: #fff8e8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  font-weight: 780;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #2f5f91;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .workbench-visual {
    height: 420px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 15vw, 4rem);
  }

  .hero {
    min-height: auto;
  }

  .workbench-visual {
    min-height: 290px;
    height: 340px;
  }

  .notebook-sheet {
    left: 9%;
    top: 19%;
    width: 78%;
  }

  .map-caption {
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
    left: 0.75rem;
    max-width: none;
  }

  .pin-one {
    left: 10%;
    top: 42%;
  }

  .pin-two {
    right: 8%;
    top: 43%;
  }

  .pin-three {
    left: 52%;
    bottom: 13%;
  }

  .pin-four {
    left: 10%;
    bottom: 22%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .update-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
