/* =========================================================
   Wisconsin.in — Travel Guide
   Design system: white + warm neutral palette, system fonts
   ========================================================= */

:root {
  --paper: #ffffff;
  --sand: #f7f4ef;
  --sand-deep: #efe9e1;
  --stone: #e3ddd3;
  --ink: #1b1f1c;
  --ink-soft: #4c554f;
  --ink-mute: #6f7873;
  --pine: #1f5a48;
  --pine-dark: #143d31;
  --lake: #2b6a83;
  --clay: #a75f43;
  --footer-bg: #1a1e1b;
  --footer-ink: #cfd5cf;
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(24, 30, 26, .06), 0 2px 8px rgba(24, 30, 26, .04);
  --shadow-m: 0 12px 32px -18px rgba(24, 30, 26, .35);
  --wrap: 1180px;
  --wrap-narrow: 780px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .55em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong { font-weight: 650; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--pine); color: #fff; padding: .7em 1.2em; border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 .9em;
}

.lede { font-size: 1.13rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; align-self: center; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.brand-dot { color: var(--pine); }
.brand-tag {
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); border-left: 1px solid var(--stone); padding-left: 10px;
}

.primary-nav ul {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block; padding: 10px 13px; border-radius: var(--radius-s);
  font-size: .93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover { background: var(--sand); color: var(--pine-dark); }
.primary-nav a[aria-current="page"] { color: var(--pine); background: var(--sand); font-weight: 650; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--stone); border-radius: var(--radius-s);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--sand); overflow: hidden; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(340px, 54vw, 620px); object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 24, 20, .18) 0%, rgba(18, 24, 20, .05) 38%, rgba(18, 24, 20, .55) 100%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 44px;
}
.hero-copy .wrap { padding: 0; }
.hero-copy-inner { max-width: 780px; color: #fff; }
.hero-copy h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-copy p { color: rgba(255, 255, 255, .93); font-size: 1.1rem; max-width: 62ch; margin-bottom: 0; }
.hero .eyebrow { color: rgba(255, 255, 255, .82); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: .94rem; font-weight: 600; text-decoration: none; line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--pine-dark); }
.btn-outline { background: transparent; color: var(--pine-dark); border-color: var(--stone); }
.btn-outline:hover { border-color: var(--pine); background: var(--sand); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--sand);
  border-bottom: 1px solid var(--stone);
}
.page-hero-copy {
  align-self: center;
  padding: clamp(34px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(34px, 5vw, 64px) max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  max-width: 660px;
}
.page-hero-copy h1 { margin-bottom: .5em; }
.page-hero-copy .lede { margin-bottom: 0; max-width: 46ch; }
.page-hero-media { position: relative; overflow: hidden; min-height: 320px; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

@media (max-width: 900px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-copy { padding: 36px 22px 30px; max-width: none; order: 2; }
  .page-hero-media { min-height: 0; order: 1; }
  .page-hero-media img { position: static; height: clamp(220px, 46vw, 340px); }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--sand); border-bottom: 1px solid var(--stone); font-size: .83rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 12px 0; }
.breadcrumbs li { margin: 0; color: var(--ink-mute); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--stone); }
.breadcrumbs a { color: var(--ink-mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pine); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--sand { background: var(--sand); }
.section--tight { padding: clamp(38px, 5vw, 60px) 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.split img { border-radius: var(--radius-l); box-shadow: var(--shadow-m); width: 100%; }
.split--reverse .split-media { order: 2; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--sand-deep); }
.card-media { position: relative; overflow: hidden; background: var(--sand-deep); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--pine); }
.card-body p { font-size: .95rem; color: var(--ink-soft); }
.card-meta {
  margin-top: auto; padding-top: 14px; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.card-link { margin-top: 16px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.card-link::after { content: " \2192"; }

/* small horizontal card */
.card-row { display: grid; grid-template-columns: 180px 1fr; gap: 0; }
.card-row .card-media img { aspect-ratio: 1 / 1; height: 100%; }

/* region tile */
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; min-height: 260px; background: var(--ink);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,20,17,.05) 30%, rgba(13,18,15,.78) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile-copy { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 260px; }
.tile-copy h3 { color: #fff; margin-bottom: .25em; }
.tile-copy p { color: rgba(255, 255, 255, .88); font-size: .92rem; margin: 0; }

/* ---------- chips / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  appearance: none; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 550;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--stone);
  background: var(--paper); color: var(--ink-soft);
}
.chip:hover { border-color: var(--pine); color: var(--pine-dark); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ---------- info boxes ---------- */
.infobox {
  background: var(--sand); border: 1px solid var(--stone); border-left: 3px solid var(--pine);
  border-radius: var(--radius-s); padding: 24px 26px; margin: 0 0 26px;
}
.infobox h3, .infobox h4 { margin-top: 0; margin-bottom: .5em; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .01em; }
.infobox ul { margin-bottom: 0; padding-left: 1.1em; }
.infobox p { font-size: .95rem; color: var(--ink-soft); }
.infobox p:last-child { margin-bottom: 0; }
.infobox--plain { border-left-color: var(--clay); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; margin: 0; }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-mute); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: .95rem; color: var(--ink); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stone); border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 24px 22px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--pine-dark); }
.stat span { font-size: .84rem; color: var(--ink-mute); }

/* ---------- prose ---------- */
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose > p { color: var(--ink-soft); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside-stack { position: sticky; top: 96px; display: grid; gap: 18px; }

.quick-links { list-style: none; padding: 0; margin: 0; }
.quick-links li { margin: 0; border-bottom: 1px solid var(--stone); }
.quick-links li:last-child { border-bottom: 0; }
.quick-links a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; text-decoration: none; color: var(--ink); font-size: .94rem; }
.quick-links a:hover { color: var(--pine); }
.quick-links a::after { content: "\2192"; color: var(--ink-mute); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .82rem; color: var(--ink-mute); margin-top: 8px; }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-2 img { aspect-ratio: 8 / 4.4; }

/* ---------- timeline / itinerary ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li {
  position: relative; padding: 0 0 30px 58px; border-left: 1px solid var(--stone); margin: 0 0 0 18px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -18px; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--pine); color: var(--pine);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; font-weight: 600;
}
.steps h3 { margin-bottom: .3em; }
.steps .day-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 0 0 26px; }
caption { text-align: left; font-size: .8rem; color: var(--ink-mute); padding-bottom: 8px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--stone); vertical-align: top; }
th { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 650; }
tbody tr:hover { background: var(--sand); }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); font-size: .92rem; margin-top: 0; }
.site-footer a { color: #e9ede9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { padding: clamp(46px, 6vw, 72px) 0 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand p { color: #a6b0a8; font-size: .89rem; max-width: 34ch; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--sans); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase;
  color: #8e9a92; margin: 0 0 16px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: #cfd5cf; font-size: .9rem; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 26px 0 8px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
}
.cookie-note { display: flex; gap: 12px; max-width: 70ch; color: #9faaa2; font-size: .86rem; line-height: 1.6; }
.cookie-note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; opacity: .8; }
.cookie-note strong { color: #dfe5df; }
.footer-contact { font-size: .86rem; color: #9faaa2; text-align: right; }
.email-reveal {
  appearance: none; cursor: pointer; font: inherit; font-size: .88rem;
  background: rgba(255, 255, 255, .08); color: #eef2ee; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 8px 16px; margin-top: 6px;
}
.email-reveal:hover { background: rgba(255, 255, 255, .16); }
.email-slot { display: inline-block; min-width: 1px; }
.email-slot a { font-weight: 650; word-break: break-word; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 34px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: #8e9a92; font-size: .82rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.small { font-size: .88rem; }
.divider { height: 1px; background: var(--stone); border: 0; margin: 40px 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .aside-stack { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--stone);
    box-shadow: var(--shadow-m); display: none; padding: 10px 16px 18px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 13px 12px; font-size: 1rem; border-bottom: 1px solid var(--sand); }
  .brand-tag { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { padding-bottom: 32px; }
  .hero-actions .btn { padding: 11px 17px; }
  .footer-note { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .card-row { grid-template-columns: 1fr; }
  .card-row .card-media img { aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .span-2 { grid-column: auto; }
  .gallery .span-2 img { aspect-ratio: 4 / 3; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-media img { height: 420px; }
  .hero-copy p { font-size: 1rem; }
  .steps > li { padding-left: 46px; }
  th, td { padding: 9px 8px; }
}
