/* Aroostook.ME — stylesheet
   All shared styles live in this directory. */

:root {
  --pine-900: #0c241a;
  --pine-800: #123628;
  --pine-700: #1c4a37;
  --pine-600: #2a6147;
  --moss: #6d8f74;
  --cream: #f8f4ea;
  --pearl: #ffffff;
  --sand: #efe7d3;
  --gold: #e7a83d;
  --gold-soft: #f3c877;
  --sky: #bfd9de;
  --ink: #1d2824;
  --muted: #5c6a62;
  --line: #e0d8c2;
  --shadow: 0 10px 30px rgba(12, 36, 26, 0.14);
  --shadow-sm: 0 3px 12px rgba(12, 36, 26, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--pine-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--pine-700); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1em; }
small { color: var(--muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine-900);
  color: var(--pearl);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand .me { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  color: #e6efe9;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-links a.active { background: var(--gold); color: var(--pine-900); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--pine-900);
    padding: 10px 20px 18px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 24, 17, 0.35) 0%,
    rgba(8, 24, 17, 0.45) 45%,
    rgba(8, 24, 17, 0.78) 100%
  );
}

.hero .hero-body {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 70px 20px;
}

.hero .kicker {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.5rem); max-width: 18ch; }

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 52ch;
  color: #eef4f0;
}

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

.hero--small { min-height: 46vh; }

.hero-cr {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
}

.hero-cr a { color: rgba(255,255,255,0.9); }

/* ---------------------------------------------------------- things to do */

.todo-hero {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--pine-900) url('/photos/hero-sunset-aroostook-nwr.jpg') center 48% / cover;
}

.todo-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 27, 19, .94) 0%, rgba(7, 27, 19, .75) 52%, rgba(7, 27, 19, .25) 100%);
}

.todo-hero__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-top: 76px;
  padding-bottom: 76px;
}

.todo-hero h1 { color: #fff; max-width: 13ch; font-size: clamp(2.8rem, 6vw, 5rem); }
.todo-eyebrow, .todo-section-head .kicker { color: var(--gold-soft); letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.todo-hero__lede { max-width: 51ch; font-size: clamp(1.05rem, 2vw, 1.25rem); color: #e4eee8; }
.todo-hero .btn { margin-top: 12px; }
.todo-hero__note { flex: 0 0 auto; margin: 0 0 8px; border-left: 1px solid rgba(255,255,255,.5); padding: 4px 0 4px 18px; color: #e8f1ea; font-size: .9rem; }
.todo-hero__note span { color: var(--gold-soft); font: 700 1.5rem "Fraunces", Georgia, serif; }
.todo-section-head { max-width: 760px; }
.todo-section-head .kicker { color: var(--pine-600); }

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

.todo-card {
  position: relative;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.todo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cdbd95; }
.todo-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.todo-card--feature { grid-row: span 2; min-height: 528px; justify-content: flex-end; padding: 32px; color: #fff; background: linear-gradient(180deg, rgba(12,36,26,.12), rgba(12,36,26,.94)), url('/photos/bike-autumn.jpg') center / cover; border: 0; }
.todo-card--feature h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.25rem); max-width: 12ch; }
.todo-card--feature p { color: #e5eee8; max-width: 36ch; }
.todo-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 13px; background: var(--sand); color: var(--pine-700); font: 700 1.45rem "Fraunces", Georgia, serif; }
.todo-card--feature .todo-card__icon { background: var(--gold); color: var(--pine-900); }
.todo-card__label { margin-bottom: 7px; color: var(--pine-600); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.todo-card--feature .todo-card__label { color: var(--gold-soft); }
.todo-card h3 { margin-bottom: 8px; }
.todo-card p { margin-bottom: 20px; color: var(--muted); font-size: .95rem; }
.todo-card__link { display: flex; gap: 9px; align-items: center; margin-top: auto; color: var(--pine-700); font-size: .9rem; font-weight: 700; }
.todo-card__link span { font-size: 1.1rem; transition: transform .18s ease; }
.todo-card:hover .todo-card__link span { transform: translate(3px, -2px); }
.todo-card--feature .todo-card__link { color: var(--gold-soft); }

.todo-bottom { padding: 54px 0; color: #fff; background: var(--pine-800); }
.todo-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.todo-bottom .kicker { margin-bottom: 9px; color: var(--gold-soft); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.todo-bottom h2 { margin-bottom: 8px; color: #fff; }
.todo-bottom p:not(.kicker) { margin: 0; color: #d2e1d8; }
.todo-bottom .btn { flex: 0 0 auto; }

@media (max-width: 850px) {
  .todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-card--feature { grid-row: span 1; min-height: 330px; }
}

@media (max-width: 560px) {
  .todo-hero { min-height: 500px; }
  .todo-hero__inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 28px; padding-top: 54px; padding-bottom: 64px; }
  .todo-hero__note { margin-left: 2px; }
  .todo-grid { grid-template-columns: 1fr; }
  .todo-card, .todo-card--feature { min-height: 0; }
  .todo-card--feature { min-height: 350px; }
  .todo-bottom__inner { align-items: flex-start; flex-direction: column; }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--pine-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-outline { border: 1.5px solid var(--pine-600); color: var(--pine-700); }
.btn-outline:hover { background: var(--sand); }

/* ----------------------------------------------------------------- strips */

.stat-strip {
  background: var(--pine-800);
  color: #fff;
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px;
  text-align: center;
}

.stat { padding: 26px 12px; }

.stat .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.stat .lbl { font-size: 0.85rem; color: #cfe3d8; letter-spacing: 0.04em; text-transform: uppercase; }

.section { padding: 72px 0; }
.section--alt { background: var(--sand); }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head .kicker { color: var(--pine-600); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; }

/* ----------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}

.card {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sand);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card .glyph.let {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--pine-700);
}

.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1em; }
.card .more { margin-top: auto; color: var(--pine-700); font-weight: 600; font-size: 0.92rem; }

/* region groups ----------------------------------------------------------- */

.region-block { margin-bottom: 44px; }

.region-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.region-block h3 .cnt {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  background: var(--pine-700);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
}

.town-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.town-links a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--pine-800);
  transition: all 0.12s;
}

.town-links a:hover { background: var(--pine-700); color: #fff; border-color: var(--pine-700); }

.town-chip.is-hidden, .region-block.is-hidden { display: none; }

/* search ------------------------------------------------------------------- */

.search-wrap { max-width: 620px; margin: 0 auto 44px; }

#town-search {
  width: 100%;
  font-size: 1.15rem;
  padding: 16px 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

#town-search:focus { border-color: var(--pine-600); box-shadow: 0 0 0 4px rgba(232,168,61,0.25); }

.search-hint { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* tables & info on town pages ---------------------------------------------- */

.town-hero {
  position: relative;
  background: var(--pine-900);
  color: #fff;
  padding: 60px 0 54px;
}

.town-hero .crumb { color: #b9cdc0; font-size: 0.85rem; margin-bottom: 12px; }
.town-hero .crumb a { color: var(--gold-soft); text-decoration: none; }
.town-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.35);
  color: #e8f1ea;
  padding: 4px 12px;
  border-radius: 999px;
}

.badge--city { background: var(--gold); border-color: var(--gold); color: var(--pine-900); }

.town-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 54px 0;
}

@media (max-width: 900px) {
  .town-layout { grid-template-columns: 1fr; }
}

.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .fact-card { position: static; }
}

.fact-card dl { margin: 0; }

.fact-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 14px;
}

.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { margin: 2px 0 0; font-weight: 600; color: var(--pine-800); }

.town-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 26px 0 54px;
  border-top: 1px solid var(--line);
}

.town-nav a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--pine-800);
}

.town-nav a:hover { background: var(--pine-700); color: #fff; }

/* generic content ----------------------------------------------------------- */

.content-body { max-width: 760px; }
.content-body ul li { margin-bottom: 6px; }

.legal { max-width: 820px; }
.legal h3 { margin-top: 34px; }
.legal p, .legal li { color: #31403a; }

/* listing cards (eats / recreation) ---------------------------------------- */

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.entry h3 { margin-bottom: 4px; }
.entry .town-tag { color: var(--pine-600); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.entry p { color: var(--muted); font-size: 0.95rem; margin: 10px 0 0; }
.entry .entry-link { margin-top: 14px; font-size: 0.85rem; }
.entry .entry-link a { font-weight: 600; white-space: nowrap; }

.anchor { scroll-margin-top: 90px; }

.tip {
  background: var(--sand);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-bottom: 28px;
  color: #4a4433;
}

/* map ------------------------------------------------------------------------ */

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.map-frame iframe { width: 100%; height: 460px; border: 0; display: block; }

.map-note {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

/* coming soon ----------------------------------------------------------------- */

.coming {
  text-align: center;
  padding: 36px 0 8px;
}

.coming .glyph-big {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 28px;
  background: var(--pine-700);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}

/* footer ---------------------------------------------------------------------- */

.site-footer {
  background: var(--pine-900);
  color: #cfdfd4;
  padding: 56px 0 30px;
}

.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
}

.contact-links svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.95rem; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: #9db3a6;
}

.footer-legal .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

.footer-legal a { color: #cfe3d8; }

.photo-credit {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #b9cdc0;
  margin-top: 18px;
}

.photo-credit strong { color: #fff; font-weight: 600; }

/* ad banner + galleries (In the County) -------------------------------------- */

.ad-banner {
  background: var(--gold);
  color: var(--pine-900);
}

.ad-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}

.ad-banner h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.ad-banner p { margin: 0; max-width: 58ch; font-size: 0.98rem; }
.ad-banner a { color: var(--pine-900); font-weight: 700; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.photo-grid figure {
  margin: 0;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.photo-grid img { width: 100%; height: 220px; object-fit: cover; }

.photo-grid figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.img-credit {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}
