@font-face {
  font-family: "Eastman Roman";
  src: url("Fonts/Woff2/Eastman-Roman-Regular.woff2") format("woff2"),
    url("Fonts/Woff/Eastman-Roman-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Eastman Roman";
  src: url("Fonts/Woff2/Eastman-Roman-Heavy.woff2") format("woff2"),
    url("Fonts/Woff/Eastman-Roman-Heavy.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sand: #efdeb0;
  --sky: #f4e4b5;
  --ink: #4d2015;
  --rust: #b33500;
  --gold: #ea9b28;
  --forest: #2f7d2d;
  --deep-forest: #163f16;
  --lake: #14a69a;
  --sage: #7ea685;
  --violet: #6a4990;
  --cream: #fff5dc;
  --line: rgba(77, 32, 21, 0.18);
  --soft-line: rgba(77, 32, 21, 0.1);
  font-family: "Eastman Roman", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sand);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sand) 46%, #ead7a3 100%);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: clamp(0.85rem, 2vw, 1.35rem);
  overflow-x: hidden;
}

.page-shell--inner {
  gap: 1rem;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: min(100%, 1180px);
  min-width: 0;
  margin: 0 auto 0.8rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(77, 32, 21, 0.28);
  border-radius: 8px;
  background: rgba(255, 245, 220, 0.58);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sand);
  outline: none;
}

.language-switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid rgba(77, 32, 21, 0.28);
  border-radius: 8px;
  background: rgba(255, 245, 220, 0.58);
}

.language-switch__button {
  min-width: 2.7rem;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(77, 32, 21, 0.68);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-switch__button:hover,
.language-switch__button:focus-visible {
  color: var(--ink);
  outline: none;
}

.language-switch__button.is-active {
  background: var(--ink);
  color: var(--sand);
}

.hero {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(0.75rem, 1.5vw, 1.05rem);
  overflow: hidden;
  border: 1px solid rgba(77, 32, 21, 0.22);
  border-radius: 8px;
  background: rgba(255, 245, 220, 0.38);
  box-shadow: 0 18px 38px rgba(77, 32, 21, 0.07);
}

.hero-scene {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(77, 32, 21, 0.16);
  border-radius: 6px;
  background: var(--sand);
}

.hero-scene__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12rem, 17.5rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.2rem);
  padding: clamp(0.45rem, 2vw, 1.25rem);
  min-width: 0;
}

.logo-mark {
  display: block;
  width: min(100%, 17.5rem);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(77, 32, 21, 0.08));
}

.hero-copy {
  display: grid;
  gap: 0.5rem;
  max-width: 42rem;
  min-width: 0;
}

.status {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rust);
  overflow-wrap: anywhere;
}

.hero-date {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.hero-concept {
  margin: 0.25rem 0 0;
  max-width: 48ch;
  font-size: 1.06rem;
  line-height: 1.45;
  color: rgba(77, 32, 21, 0.78);
  overflow-wrap: break-word;
}

.format-section,
.track-section,
.site-footer {
  width: min(100%, 1180px);
  margin-left: auto;
  margin-right: auto;
}

.format-section {
  margin-top: 0.95rem;
}

.format-list {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.format-item {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.95rem 0;
}

.format-item + .format-item {
  border-top: 1px solid var(--line);
}

.event-date {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rust);
  overflow-wrap: anywhere;
}

.format-item + .format-item .event-date {
  color: var(--deep-forest);
}

.event-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(77, 32, 21, 0.76);
  overflow-wrap: anywhere;
}

.track-section {
  position: relative;
  margin-top: 1.55rem;
}

.track-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(77, 32, 21, 0.66);
}

.track-card {
  position: relative;
  overflow: hidden;
  padding: clamp(0.85rem, 2vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 245, 220, 0.78);
  box-shadow: 0 16px 34px rgba(77, 32, 21, 0.08);
}

.track-map {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(77, 32, 21, 0.28);
  border-radius: 6px;
  background-color: var(--forest);
}

.lake-area {
  fill: var(--lake);
  stroke: rgba(77, 32, 21, 0.55);
  stroke-width: 3;
}

.map-trees {
  pointer-events: none;
}

.map-tree__trunk {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 12;
}

.map-tree__trunk--orange {
  stroke: #d98a25;
}

.map-tree__trunk--violet {
  stroke: var(--violet);
}

.map-tree__trunk--rust {
  stroke: #b94b19;
}

.map-tree__bark {
  fill: none;
  stroke: rgba(255, 224, 142, 0.78);
  stroke-linecap: round;
  stroke-width: 3.2;
}

.map-tree__leaf {
  stroke: #11441e;
  stroke-width: 2.2;
}

.map-tree__leaf--green {
  fill: #12bb3f;
}

.map-tree__leaf--lime {
  fill: #82d044;
}

.map-tree__leaf--dark {
  fill: #006b3a;
}

.map-tree__leaf--yellow {
  fill: #f3e347;
}

.map-label {
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.map-label--lake {
  fill: rgba(77, 32, 21, 0.45);
  text-anchor: middle;
}

.map-label--lake {
  display: none;
}

.olympic-rings {
  display: block;
}

.map-river {
  pointer-events: none;
}

.map-river__line {
  fill: none;
  stroke: #1c8ff0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 11px;
}

.map-label--river {
  fill: #fff5dc;
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(18, 75, 122, 0.78);
  stroke-linejoin: round;
  stroke-width: 3px;
  text-anchor: middle;
}

.map-label--ioc {
  fill: #fff5dc;
  font-size: 14px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(77, 32, 21, 0.64);
  stroke-linejoin: round;
  stroke-width: 2.8px;
  text-anchor: middle;
}

.map-stadium {
  pointer-events: none;
}

.map-stadium__track {
  fill: #b94b19;
  paint-order: stroke fill;
  stroke: rgba(77, 32, 21, 0.7);
  stroke-width: 4px;
}

.map-stadium__grass {
  fill: #89d66f;
  stroke: rgba(255, 245, 220, 0.85);
  stroke-width: 2px;
}

.map-stadium__lane,
.map-stadium__pitch {
  fill: none;
  stroke: rgba(255, 245, 220, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
}

.map-label--stadium {
  fill: #fff5dc;
  font-size: 11px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(77, 32, 21, 0.72);
  stroke-linejoin: round;
  stroke-width: 2.6px;
  text-anchor: middle;
}

.map-bbq-icons {
  pointer-events: none;
}

.map-bbq {
  cursor: pointer;
  transition: filter 0.25s ease;
  pointer-events: auto; /* Enable hover interaction and tooltips over map icon */
}

.map-bbq:hover {
  filter: brightness(1.08) drop-shadow(0 3px 6px rgba(77, 32, 21, 0.35));
}

.map-pyramids {
  pointer-events: none;
}

.map-pyramid {
  fill: #f1d46e;
  paint-order: stroke fill;
  stroke: rgba(77, 32, 21, 0.78);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.map-pyramid--small {
  fill: #e7bd4d;
}

.map-pyramid__ridge {
  fill: none;
  stroke: rgba(77, 32, 21, 0.48);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.map-label--landmark {
  fill: #fff5dc;
  font-size: 11px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(77, 32, 21, 0.68);
  stroke-linejoin: round;
  stroke-width: 2.4px;
  text-anchor: middle;
}

.map-label--land {
  fill: #fff5dc;
  paint-order: stroke fill;
  stroke: rgba(77, 32, 21, 0.72);
  stroke-linejoin: round;
  stroke-width: 5px;
  text-anchor: start;
}

.camp-icon {
  pointer-events: none;
}

.track-shadow,
.track-outline,
.track-trail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-shadow {
  stroke: rgba(77, 32, 21, 0.25);
  stroke-width: 25;
}

.track-outline {
  stroke: #651f10;
  stroke-width: 14;
}

.track-trail {
  stroke: url(#track-gradient);
  stroke-width: 8;
}

.track-marker {
  fill: var(--gold);
  stroke: rgba(77, 32, 21, 0.3);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(234, 155, 40, 0.54));
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.55rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 245, 220, 0.7);
  content-visibility: auto;
  contain-intrinsic-size: 210px;
}

.footer-block {
  min-width: min(100%, 15rem);
}

.footer-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(77, 32, 21, 0.66);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link,
.footer-email {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.social-link,
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
}

.social-link:hover,
.social-link:focus-visible,
.footer-email:hover,
.footer-email:focus-visible {
  color: var(--rust);
  outline: none;
}

.social-icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-icon--strava {
  fill: currentColor;
  stroke: none;
}

.pdf-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  align-items: center;
  gap: 1.5rem;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.about-copy {
  max-width: 40rem;
}

.about-copy h1 {
  margin: 0;
  max-width: 34rem;
  font-size: 2.4rem;
  line-height: 1.08;
}

.committee-card {
  position: relative;
  margin: 0;
  padding: clamp(0.8rem, 2vw, 1.15rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 245, 220, 0.72);
  box-shadow: 0 14px 30px rgba(77, 32, 21, 0.08);
}

.committee-photo {
  display: block;
  width: 100%;
  max-height: min(68svh, 48rem);
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(77, 32, 21, 0.26);
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 900px) {
  .format-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-item + .format-item {
    margin-left: 1.35rem;
    padding-left: 1.35rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .about-page {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2.4rem;
  }
}

@media (max-width: 899px) {
  .hero {
    gap: 0.85rem;
  }

  .hero-scene {
    order: 2;
  }

  .hero-content {
    order: 1;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 0.45rem 0.35rem 0.1rem;
  }

  .hero-concept {
    font-size: 1rem;
  }

  .about-copy h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 0.75rem;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 0.35rem;
    width: 100%;
    max-width: min(100%, 23rem);
    margin-left: 0;
    margin-right: auto;
  }

  .hero,
  .format-section,
  .track-section,
  .site-footer {
    width: 100%;
    max-width: min(100%, 23rem);
    margin-left: 0;
    margin-right: auto;
  }

  .site-nav {
    max-width: 100%;
    overflow: visible;
  }

  .language-switch {
    max-width: 100%;
    overflow: hidden;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
    gap: 0.25rem;
    min-width: 0;
  }

  .site-nav__link {
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 2.25rem;
    padding: 0.4rem 0.3rem;
  }

  .language-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    flex: 0 0 6rem;
    min-width: 0;
  }

  .language-switch__button {
    width: 100%;
    min-width: 0;
    min-height: 1.9rem;
    padding: 0.28rem 0.35rem;
  }

  .hero {
    padding: 0.75rem;
  }

  .logo-mark {
    width: min(100%, 14.5rem);
  }

  .status {
    font-size: 0.9rem;
  }

  .hero-date {
    font-size: 1.55rem;
  }

  .track-card,
  .site-footer {
    background: rgba(255, 245, 220, 0.76);
  }

  .track-shadow {
    stroke-width: 22;
  }

  .track-outline {
    stroke-width: 12;
  }

  .track-trail {
    stroke-width: 7;
  }

  /* Compact and organized footer layout on mobile */
  .site-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
    padding: 1.2rem 1rem;
  }

  .footer-block {
    min-width: 0; /* Reset desktop min-width to allow grid columns to fit */
  }

  .footer-block:nth-child(1) {
    grid-column: 1 / -1; /* Follow us spans full width to allow social links side-by-side */
  }

  .footer-title {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .social-links {
    gap: 0.5rem 0.8rem;
  }

  .social-link,
  .footer-email {
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 2rem;
  }

  .footer-email {
    word-break: break-all; /* Prevent overflow on extremely narrow devices */
  }

  .social-icon {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 1.6;
  }

  .pdf-icon {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__link,
  .language-switch__button {
    transition: none;
  }
}

.map-bridge {
  cursor: pointer;
  transition: filter 0.25s ease;
}

.map-bridge:hover {
  filter: brightness(1.06) drop-shadow(0 2px 4px rgba(77, 32, 21, 0.25));
}
