/* Direction C: trail guide. Ice Age Trail yellow blaze, park-sign type, spruce and snow. 4px radius everywhere. */
:root {
  --spruce: #23574a;
  --spruce-2: #2f6b5b;
  --spruce-3: #173f35;
  --snow: #f3f4ef;
  --white: #fcfcf9;
  --ink: #17201d;
  --ink-2: #4b5651;
  --line: #d4d8cf;
  --blaze: #f2b705;
  --radius: 4px;
  --wide: "Archivo", "Arial Black", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 1.075rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 1rem; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--white); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; }
section { scroll-margin-top: 72px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--spruce); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { border-radius: 50%; background: #fff; }
.brand span { font: 900 1.35rem/1 var(--wide); font-stretch: 125%; text-transform: uppercase; }
.brand small { display: block; font: 400 .72rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: #b9cdc6; margin-top: .2rem; font-stretch: 100%; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .55rem .85rem; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:hover { background: var(--spruce-2); }
.nav .pay { background: var(--blaze); color: var(--spruce-3); margin-left: .5rem; }
.nav .pay:hover { background: #ffc829; }
.menu-btn { display: none; align-items: center; gap: .4rem; height: 44px; padding: 0 .9rem; border: 1px solid #4b7d6f; border-radius: var(--radius); background: none; color: #fff; font: 700 .95rem var(--body); cursor: pointer; }
.menu-btn i { font-size: 1.3rem; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(calc(100dvh - 68px), 820px); background: var(--spruce); overflow: hidden; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(35, 87, 74, .97) 0%, rgba(35, 87, 74, .9) 28%, rgba(35, 87, 74, .55) 50%, rgba(35, 87, 74, 0) 72%),
    linear-gradient(0deg, rgba(23, 63, 53, .55) 0%, rgba(23, 63, 53, 0) 30%);
}
.hero-panel { width: min(1200px, 100% - 32px); margin-inline: auto; padding: 5rem 0; }
.hero-text { max-width: 560px; color: #e4ece8; text-shadow: 0 1px 12px rgba(23, 63, 53, .35); }
.blaze { display: block; width: 22px; height: 44px; background: var(--blaze); border-radius: 2px; margin-bottom: 2rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.2vw, 3.7rem); font-weight: 900; margin-bottom: 1.5rem; }
.hero-text > p { font-size: 1.2rem; max-width: 42ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 1.5rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--blaze); color: var(--spruce-3); }
.btn-yellow:hover { background: #ffc829; }
.btn-line { border: 2px solid #7ea296; color: #fff; }
.btn-line:hover { border-color: #fff; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }

/* Village Hall */
.hall { background: var(--white); border-bottom: 1px solid var(--line); padding: 4.5rem 0; }
.hall-grid { display: grid; grid-template-columns: 380px 1fr; gap: 3.5rem; }
.meeting { background: var(--blaze); color: var(--spruce-3); padding: 2rem; border-radius: var(--radius); align-self: start; }
.meeting h2 { font-size: 1.9rem; margin-bottom: 1.5rem; }
.meeting-label { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .2rem; }
.meeting-date { font: 900 2.1rem/1.05 var(--wide); font-stretch: 112%; margin-bottom: .8rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.arrow-link i { transition: transform .2s ease; }
.arrow-link:hover i { transform: translateX(3px); }
.quick { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.quick a { display: block; padding: 1.15rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.quick b { display: block; font: 800 1.2rem var(--wide); font-stretch: 110%; color: var(--spruce); }
.quick span { color: var(--ink-2); font-size: .97rem; }
.quick a:hover b { text-decoration: underline; text-decoration-color: var(--blaze); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Numbers */
.numbers { background: var(--spruce-3); color: #c8d6d0; padding: 3.5rem 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.numbers b { display: block; font: 900 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--wide); font-stretch: 125%; color: var(--blaze); margin-bottom: .6rem; }
.numbers span { font-size: .92rem; line-height: 1.4; display: block; max-width: 18ch; }

/* Trails */
.trails { padding: 5.5rem 0; }
.trails-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: start; }
.trails-copy { position: sticky; top: 100px; }
.trails-copy h2 { margin-bottom: 1.5rem; }
.trails-copy p { color: var(--ink-2); font-size: 1.12rem; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.signs li {
  position: relative; background: #5b3d26; color: #f6ead8;
  border-radius: var(--radius); padding: 1.5rem 1.75rem 1.5rem 2.75rem;
  box-shadow: inset 0 0 0 3px #4a3120, inset 0 0 0 5px #b89a73;
}
.signs li::before { content: ""; position: absolute; left: 1.15rem; top: 1.6rem; width: 10px; height: 22px; background: var(--blaze); border-radius: 1px; }
.signs li:nth-child(even) { margin-left: 2.5rem; }
.sign-miles { float: right; font: 900 1.4rem var(--wide); font-stretch: 112%; color: #fff; margin-left: 1rem; }
.signs h3 { font-size: 1.15rem; font-stretch: 112%; color: #fff; margin-bottom: .45rem; text-transform: uppercase; }
.signs p { margin: 0; color: #ecdcc4; font-size: .97rem; }

/* Seasons */
.seasons { background: var(--white); border-block: 1px solid var(--line); padding: 5rem 0; }
.seasons h2 { margin-bottom: 1.75rem; }
.tabs { display: inline-flex; gap: .25rem; background: var(--snow); border: 1px solid var(--line); padding: .3rem; border-radius: var(--radius); margin-bottom: 1.75rem; }
.tabs button { font: 700 1rem var(--body); border: 0; background: none; padding: .7rem 1.4rem; border-radius: var(--radius); color: var(--ink-2); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--spruce); color: #fff; }
.panel { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2rem; animation: fade .35s ease; }
.panel[hidden] { display: none; }
.panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.panel h3 { font-size: 1.7rem; color: var(--spruce); margin-bottom: 1rem; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { padding: .65rem 0 .65rem 1.6rem; position: relative; border-top: 1px solid var(--line); }
.panel li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 7px; height: 14px; background: var(--blaze); }
.arrow-link.dark { color: var(--spruce); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* History timeline */
.history { padding: 5.5rem 0; }
.history h2 { margin-bottom: 2.5rem; max-width: 16ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--imgh) + 2.05rem); height: 3px; background: var(--spruce); }
.timeline { --imgh: 170px; }
.timeline img { width: 100%; height: var(--imgh); object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); transition: filter .4s ease; }
.timeline li:hover img { filter: none; }
.timeline b { display: inline-block; position: relative; margin: 1.1rem 0 .8rem; padding: .2rem .6rem; background: var(--spruce); color: var(--blaze); font: 900 1.4rem var(--wide); font-stretch: 112%; border-radius: var(--radius); }
.timeline p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.museum-note { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--blaze); border-radius: var(--radius); }
.museum-note i { font-size: 1.3rem; color: var(--spruce); }

/* Around town */
.town { background: var(--spruce); color: #dbe6e1; padding: 5rem 0; }
.town h2 { color: #fff; margin-bottom: 1.25rem; }
.town-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; }
.town-lede { font-size: 1.15rem; max-width: 52ch; }
.town-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.town-links a { display: inline-block; padding: .6rem 1rem; border: 1px solid #5a8a7d; border-radius: var(--radius); text-decoration: none; font-weight: 700; color: #fff; }
.town-links a:hover { border-color: var(--blaze); color: var(--blaze); }
.notices { background: var(--spruce-3); border-radius: var(--radius); padding: 1.75rem; }
.notices h3 { color: #fff; font-size: 1.3rem; margin-bottom: .75rem; }
.notices a { display: block; padding: .8rem 0; border-bottom: 1px solid #2f5a4d; color: #fff; text-decoration: none; font-weight: 700; }
.notices a:hover { color: var(--blaze); }
.flag { display: inline-block; background: var(--blaze); color: var(--spruce-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .1rem .45rem; border-radius: 2px; margin-right: .6rem; vertical-align: 2px; }
.notices p { margin: 1rem 0 0; font-size: .92rem; color: #a9bdb5; }

/* Footer */
.footer { background: var(--spruce-3); color: #a9bdb5; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.footer img { border-radius: 50%; background: #fff; margin-bottom: .9rem; }
.footer-name { font: 900 1.3rem var(--wide); font-stretch: 125%; color: #fff; text-transform: uppercase; margin-bottom: .4rem; }
.footer h3 { color: #fff; font-size: .95rem; font-stretch: 112%; text-transform: uppercase; margin-bottom: .8rem; }
.footer a { color: #fff; }
.footer-base { border-top: 1px solid #2f5a4d; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; }

/* Tablet */
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--spruce); padding: .5rem 16px 1.25rem; border-top: 1px solid var(--spruce-2); }
  .nav.open { display: flex; }
  .nav a { padding: .95rem .25rem; border-bottom: 1px solid var(--spruce-2); border-radius: 0; font-size: 1.1rem; }
  .nav .pay { margin: 1rem 0 0; text-align: center; border-radius: var(--radius); }
  .hall-grid, .trails-grid, .town-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .trails-copy { position: static; }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 700px) {
  .hero { align-items: flex-end; min-height: 640px; }
  .hero::after { background: linear-gradient(0deg, rgba(35, 87, 74, 1) 0%, rgba(35, 87, 74, .92) 40%, rgba(35, 87, 74, .3) 68%, rgba(35, 87, 74, 0) 100%); }
  .hero-img { height: 62%; object-position: 60% 50%; }
  .hero-panel { padding: 10rem 0 3rem; }
  .blaze { width: 16px; height: 32px; margin-bottom: 1.25rem; }
  .hero-text > p { font-size: 1.08rem; }
  .btn { flex: 1 1 100%; justify-content: center; }
  .hall, .trails, .seasons, .history, .town { padding: 3.5rem 0; }
  .quick { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .signs li:nth-child(even) { margin-left: 0; }
  .sign-miles { float: none; display: block; margin: 0 0 .3rem; font-size: 1.15rem; color: var(--blaze); }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding: .7rem .5rem; }
  .panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; margin-right: -16px; }
  .timeline li { flex: 0 0 78%; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
}

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