/* ==========================================================================
   Maine.in — Travel guide design system
   Palette: paper white + warm neutrals, deep pine accents.
   No external font or CSS dependencies.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #faf8f4;
  --paper-3: #f3f0e9;
  --paper-4: #ece7dd;

  --ink: #17211e;
  --ink-2: #37443f;
  --muted: #6d7873;

  --line: #e6e1d7;
  --line-2: #d5cec1;

  --pine: #1b3a30;
  --pine-2: #2b5747;
  --moss: #49795f;
  --sand: #b9a184;
  --sand-2: #efe6d8;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 33, 30, .05);
  --shadow: 0 2px 4px rgba(23, 33, 30, .04), 0 18px 40px -28px rgba(23, 33, 30, .35);
  --shadow-lg: 0 30px 70px -40px rgba(23, 33, 30, .55);

  --max: 1160px;
  --gutter: 22px;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------- reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.62rem, 3.1vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.42rem); }
h4 { font-size: 1.06rem; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

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

strong { color: var(--ink); font-weight: 650; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

::selection { background: #dfeae2; color: var(--pine); }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: .9rem;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----------------------------------------------------------- structure ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 800px; }

.section { padding: clamp(3.2rem, 7vw, 5.6rem) 0; }
.section--tight { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--paper3 { background: var(--paper-3); }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 720px; margin-bottom: clamp(1.7rem, 3.5vw, 2.6rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .8rem;
}
.section__head--center .kicker { margin-inline: auto; }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.68;
  color: var(--ink-2);
}

/* -------------------------------------------------------------- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(23, 33, 30, .6);
}

.header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pine);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.brand__text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__dot { color: var(--sand); }
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 5px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  display: block;
  padding: 9px 12px;
  font-size: .895rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--paper-3); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--pine); background: var(--sand-2); }

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

/* --------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 76vh, 740px);
  overflow: hidden;
  background: var(--pine);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 28, 25, .55) 0%, rgba(18, 28, 25, .12) 32%, rgba(16, 26, 23, .78) 100%);
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.6rem, 6vw, 4.4rem);
}
.hero__content { max-width: 660px; color: #fff; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 1.1rem;
}
.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--sand);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6.2vw, 4.15rem);
  margin-bottom: .5em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .28);
}
.hero h1 em { font-style: italic; color: #f4ecdd; }
.hero__sub {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, .9);
  max-width: 54ch;
  margin-bottom: 1.7rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* page hero for inner pages */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 46vh, 460px);
  background: var(--pine);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 28, 25, .45) 0%, rgba(16, 26, 23, .78) 100%);
}
.page-hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(1.9rem, 4vw, 2.8rem);
}
.page-hero h1 { color: #fff; margin-bottom: .4em; max-width: 20ch; }
.page-hero__sub {
  color: rgba(255, 255, 255, .9);
  max-width: 62ch;
  margin: 0;
  font-size: 1.02rem;
}

/* ---------------------------------------------------------- breadcrumbs ---- */
.breadcrumbs {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: .815rem;
  color: var(--muted);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
}
.breadcrumbs__list li { margin: 0; display: flex; align-items: center; gap: 7px; }
.breadcrumbs__list li + li::before {
  content: "/";
  color: var(--line-2);
  font-size: .8rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pine); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* -------------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--pine); color: #fff; box-shadow: 0 14px 26px -18px rgba(27, 58, 48, .9); }
.btn--primary:hover { background: var(--pine-2); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--outline { background: transparent; color: var(--pine); border-color: var(--line-2); }
.btn--outline:hover { background: var(--paper-3); border-color: var(--pine); color: var(--pine); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--pine-2);
  text-decoration: none;
}
.text-link::after { content: "\2192"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- grid ---- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4.5vw, 56px); }

/* --------------------------------------------------------------- cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }

a.card { text-decoration: none; color: inherit; }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-4);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
a.card:hover .card__media img { transform: scale(1.045); }

.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.2rem; margin-bottom: .45em; }
.card__text { color: var(--muted); font-size: .93rem; line-height: 1.62; margin-bottom: 1rem; }
.card__meta {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.card__meta strong { color: var(--ink-2); font-weight: 600; }

.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--sand-2);
  color: #7a6547;
  line-height: 1.3;
}
.tag--pine { background: #e3ece6; color: var(--pine-2); }
.tag--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }

.card--flat { border: 0; background: transparent; }
.card--flat .card__body { padding-inline: 0; }

/* featured dark card (used for the one region without a photo) */
.card--feature {
  background: var(--pine);
  border-color: var(--pine);
  color: rgba(255, 255, 255, .86);
  position: relative;
}
.card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    radial-gradient(circle at 18% 22%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 68% 62%, #fff 0 1px, transparent 1px);
  background-size: 46px 46px, 72px 72px;
  pointer-events: none;
}
.card--feature .card__body { position: relative; padding: 28px 26px; }
.card--feature h3 { color: #fff; }
.card--feature .card__text { color: rgba(255, 255, 255, .78); }
.card--feature .card__meta { border-top-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .7); }
.card--feature .card__meta strong { color: #fff; }
.card--feature .text-link { color: #f0dfc4; margin-top: auto; }

/* -------------------------------------------------------- region tiles ---- */
.region-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  height: 100%;
  overflow: hidden;
}
.region-tile::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.region-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.region-tile:hover::after { transform: scaleY(1); }
.region-tile__num {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--sand);
  display: block;
  margin-bottom: .7rem;
}
.region-tile h3 { font-size: 1.22rem; margin-bottom: .3em; }
.region-tile p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.1rem; }
.region-tile__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.region-tile__foot strong { color: var(--ink-2); font-weight: 600; }
.region-tile__arrow { color: var(--moss); font-weight: 700; transition: transform .2s ease; }
.region-tile:hover .region-tile__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------- stats ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--paper);
  padding: 22px 20px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.1;
  color: var(--pine);
  margin-bottom: .2em;
  display: block;
}
.stat__label { font-size: .8rem; color: var(--muted); line-height: 1.45; display: block; }

/* -------------------------------------------------------------- tables ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .905rem;
  min-width: 560px;
}
thead th {
  text-align: left;
  background: var(--paper-3);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.55;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fdfcfa; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
td .yes { color: var(--moss); font-weight: 700; }
td .no { color: #a8a29a; }

.table-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* ------------------------------------------------------------ callouts ---- */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  background: var(--paper-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 1.6rem 0;
  font-size: .94rem;
  color: var(--ink-2);
}
.callout h4 { margin-bottom: .35em; font-size: .95rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: #b5744a; background: #fbf6f0; }
.callout--warn h4 { color: #8a5227; }

/* -------------------------------------------------------------- lists ----- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .6em;
  font-size: .95rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--moss);
}

/* ------------------------------------------------------------ timeline ---- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item {
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 1px solid var(--line-2);
  margin: 0;
}
.timeline__item:first-child { padding-top: 4px; }
.timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--moss);
}
.timeline__day {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .3em;
  display: block;
}
.timeline__item h3 { font-size: 1.14rem; margin-bottom: .35em; }
.timeline__item p { font-size: .94rem; color: var(--ink-2); margin-bottom: .4em; }
.timeline__item ul { font-size: .92rem; color: var(--ink-2); margin-bottom: 0; }

/* ------------------------------------------------------------ accordion ---- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--moss);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .faq__answer { padding: 0 40px 20px 0; color: var(--ink-2); font-size: .95rem; }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- media block ---- */
.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-4);
  box-shadow: var(--shadow);
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  font-size: .79rem;
  color: var(--muted);
  padding: 11px 16px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.figure-stack { display: grid; gap: 14px; }

.media-wide {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-wide img { width: 100%; height: auto; }

/* small image strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper-4);
}

/* --------------------------------------------------------------- pager ---- */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pager__link {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  transition: border-color .2s ease, background .2s ease;
}
.pager__link:hover { border-color: var(--line-2); background: var(--paper-2); }
.pager__dir { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .3em; }
.pager__title { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); font-weight: 600; }
.pager__link--next { text-align: right; }

/* --------------------------------------------------------------- CTA ------ */
.cta {
  background: var(--pine);
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 56ch; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .55); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }

/* -------------------------------------------------------------- footer ---- */
.site-footer {
  background: #14211d;
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  margin-top: 0;
  padding-top: clamp(2.8rem, 6vw, 4.2rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 2.4rem;
}
.footer__brand .brand { color: #fff; margin-bottom: 1rem; }
.footer__brand .brand__mark { background: #24463a; }
.footer__brand .brand__text { color: #fff; }
.footer__brand .brand__text small { color: rgba(255, 255, 255, .5); }
.footer__brand p { color: rgba(255, 255, 255, .62); font-size: .89rem; max-width: 34ch; }

.footer__col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .55em; }
.footer__col a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  font-size: .89rem;
}
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__cookie {
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  font-size: .82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .58);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer__cookie-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  display: grid;
  place-items: center;
  font-size: .72rem;
  color: #f0dfc4;
  margin-top: 1px;
}
.footer__cookie strong { color: rgba(255, 255, 255, .85); font-weight: 650; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 30px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: rgba(255, 255, 255, .62); text-decoration: none; }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }
.footer__note { font-size: .78rem; }

/* email reveal */
.email-reveal { margin-top: 1.1rem; }
.email-reveal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.email-reveal__btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: #fff; }
.email-reveal__out { margin-top: .7rem; font-size: .88rem; }
.email-reveal__out a { color: #f0dfc4; font-weight: 600; word-break: break-word; }
.email-reveal__hint { display: block; font-size: .75rem; color: rgba(255, 255, 255, .42); margin-top: .4rem; }

/* ---------------------------------------------------------- cookie bar ---- */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  width: min(660px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 120;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1), opacity .3s ease;
  opacity: 0;
  visibility: hidden;
}
.cookie-bar.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie-bar p { margin: 0; font-size: .82rem; line-height: 1.55; color: var(--ink-2); }
.cookie-bar a { color: var(--pine-2); }
.cookie-bar__actions { display: flex; gap: 8px; flex-shrink: 0; }

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

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

/* ------------------------------------------------------------ utilities --- */
.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: .6rem; }
.u-mt-2 { margin-top: 1.2rem; }
.u-mt-3 { margin-top: 2rem; }
.u-center { text-align: center; }
.u-muted { color: var(--muted); }
.u-small { font-size: .86rem; }
.u-nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.detail-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}
.detail-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.detail-list dt { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.detail-list dd { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------- responsive - */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(23, 33, 30, .5);
    padding: 10px var(--gutter) 18px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 13px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager__link--next { text-align: left; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 560px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; }
  .cookie-bar__actions .btn { flex: 1; }
  .detail-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer__cookie { flex-direction: column; gap: 10px; }
  table { font-size: .86rem; min-width: 520px; }
  thead th, tbody td { padding: 11px 13px; }
}
