/* =========================================================
   CARPENTER FALLS — design system
   Adirondack riverside town. Navy + gold on warm cream.
   ========================================================= */

:root {
  --navy:        #18304f;
  --navy-deep:   #0f213a;
  --navy-soft:   #2c4669;
  --gold:        #b48a4a;
  --gold-light:  #d4b07e;
  --cream:       #f4efe2;
  --cream-2:     #efe9da;
  --paper:       #ffffff;
  --paper-warm:  #faf6ec;
  --ink:         #1a2436;
  --ink-2:       #3d4a60;
  --ink-3:       #6c7585;
  --rule:        #d8d2c2;
  --rule-2:      #e6dfce;
  --shadow-card: 0 1px 2px rgba(20, 35, 60, 0.05), 0 4px 14px rgba(20, 35, 60, 0.05);
  --shadow-lift: 0 4px 16px rgba(20, 35, 60, 0.08), 0 12px 32px rgba(20, 35, 60, 0.06);

  --serif: 'Cinzel', 'Trajan Pro', 'Cormorant Garamond', Georgia, serif;
  --serif-text: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --container: 1400px;
  --gutter: 44px;
  --gutter-sm: 22px;

  --eyebrow-track: 0.22em;
  --nav-track: 0.16em;
}

/* reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* layout primitives --------------------------------------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 720px) { .wrap { padding: 0 var(--gutter-sm); } }
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-paper-warm { background: var(--paper-warm); }
.bg-navy { background: var(--navy); color: var(--cream); }

/* type primitives ----------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-track);
  color: var(--navy);
}
.h-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0;
  text-transform: uppercase;
}
.h-display--stack { display: block; }
.h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42ch;
}
.prose { font-size: 16px; line-height: 1.7; max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--navy); border-bottom: 1px solid var(--gold); }

/* gold rule with center ornament -------------------------- */
.gold-rule {
  display: flex; align-items: center; gap: 18px;
  margin: 28px 0;
  max-width: 280px;
}
.gold-rule::before, .gold-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--gold);
}
.gold-rule__ornament {
  width: 14px; height: 14px; color: var(--gold);
}

/* buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 34px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  transition: gap .2s ease, color .2s ease;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { gap: 14px; }
.link-arrow:hover::after { transform: translateX(2px); }

/* header --------------------------------------------------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 22px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--navy);
  flex-shrink: 0;
}
.brand__mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--navy);
}
.brand__est {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand__rule {
  width: 28px; height: 1px; background: var(--gold);
}
.nav {
  display: flex; justify-content: center; gap: 36px;
}
.nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav a:hover, .nav a.active {
  border-bottom-color: var(--gold);
}
.utility {
  display: flex; align-items: center; gap: 16px;
}
.utility a, .utility button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; color: var(--navy);
  transition: color .2s ease;
}
.utility a:hover { color: var(--gold); }
.utility svg { width: 16px; height: 16px; }
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav a { font-size: 10px; letter-spacing: 0.16em; }
}
@media (max-width: 900px) {
  .nav, .utility { display: none; }
  .nav-toggle {
    display: inline-flex; padding: 8px 14px; border: 1px solid var(--navy);
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--navy);
  }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 28px var(--gutter-sm);
    border-bottom: 1px solid var(--rule); z-index: 60;
  }
  .nav.is-open a { padding: 4px 0; }
}

/* hero ----------------------------------------------------- */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244,239,226,0.95) 0%, rgba(244,239,226,0.7) 30%, rgba(244,239,226,0.0) 55%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px var(--gutter) 90px;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  min-height: 540px;
}
.hero__title { margin-bottom: 28px; }
.hero__title .h-display--stack { display: block; }
.hero__lead { margin: 28px 0 44px; max-width: 36ch; }
.hero__cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.welcome-sign {
  position: absolute; bottom: 36px; right: 36px;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 32px;
  background: var(--navy);
  color: var(--cream);
  border: 6px double var(--gold);
  border-radius: 4px;
  font-family: var(--serif);
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.welcome-sign__top {
  font-size: 10px; letter-spacing: 0.32em; font-family: var(--sans);
  font-weight: 600; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 6px;
}
.welcome-sign__name {
  font-size: 26px; letter-spacing: 0.04em; line-height: 1;
}
.welcome-sign__est {
  font-size: 9px; font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 6px;
}
@media (max-width: 980px) { .welcome-sign { display: none; } }

/* image-based welcome sign (overrides CSS card) */
.welcome-sign-img {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  width: 360px;
  max-width: 34vw;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(20, 35, 60, 0.28));
}
@media (max-width: 980px) { .welcome-sign-img { display: none; } }

/* weather widget ------------------------------------------ */
.weather-widget {
  position: absolute; top: 36px; right: 36px;
  z-index: 4;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px;
  width: 320px;
  box-shadow: var(--shadow-lift);
  font-family: var(--sans);
}
.weather-widget__label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 16px; text-align: center;
}
.weather-widget__now {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.weather-widget__icon { width: 42px; height: 42px; color: var(--ink-3); }
.weather-widget__temp { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--navy); font-weight: 600; }
.weather-widget__condition { font-size: 10px; color: var(--ink-2); letter-spacing: 0.04em; margin-top: 4px; }
.weather-widget__hilo { text-align: right; font-size: 11px; color: var(--ink-2); }
.weather-widget__hilo b { color: var(--navy); font-weight: 600; }
.weather-widget__forecast {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.weather-day { text-align: center; }
.weather-day__name { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.weather-day__icon { width: 22px; height: 22px; margin: 6px auto; color: var(--gold); }
.weather-day__temp { font-size: 10px; color: var(--ink-2); }
.weather-widget__more {
  display: block; text-align: center;
  padding-top: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--navy);
}
.weather-widget__more::after { content: " →"; }
@media (max-width: 720px) {
  .weather-widget { position: static; width: 100%; margin: 24px auto; }
}

/* tile grid (Visit / Parks / Events / Dining / Town) ------ */
.tiles-section {
  background: var(--cream);
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1200px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 16px;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 160px;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.tile__body { display: flex; flex-direction: column; }
.tile__icon { color: var(--gold); width: 22px; height: 22px; margin-bottom: 14px; }
.tile__title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}
.tile__desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
  flex: 1;
}
.tile__cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.tile__cta::after { content: " →"; }
.tile__media {
  background-size: cover; background-position: center;
  background-color: var(--cream-2);
  border-radius: 2px;
  min-height: 110px;
}

/* three-column footer-row (News + Events + Map) ----------- */
.fold {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 48px;
  padding: 56px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  background: var(--cream);
}
@media (max-width: 1100px) { .fold { grid-template-columns: 1fr; gap: 40px; } }
.fold__col h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

/* latest news -------------------------------------------- */
.news-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.news-item:last-child { border-bottom: 0; }
.news-item__media {
  width: 88px; height: 64px;
  background-size: cover; background-position: center;
  background-color: var(--cream-2);
  border-radius: 2px;
}
.news-item__title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.3;
}
.news-item__date {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.news-item__excerpt { font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.4; }
.fold__cta { margin-top: 22px; }

/* upcoming events ---------------------------------------- */
.event {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.event:last-child { border-bottom: 0; }
.event__date {
  text-align: center;
  background: var(--cream-2);
  padding: 8px 4px;
  border-radius: 2px;
}
.event__month {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
.event__day {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin: 2px 0 0;
}
.event__title {
  font-size: 13px; font-weight: 700; color: var(--navy); margin: 0 0 4px;
}
.event__meta {
  font-size: 11px; color: var(--ink-2); margin: 0;
}
.event__meta b { color: var(--ink); font-weight: 600; }

/* town map ----------------------------------------------- */
.map {
  background: var(--cream-2);
  border-radius: 4px;
  aspect-ratio: 16 / 11;
  background-size: cover; background-position: center;
  position: relative;
  margin-bottom: 18px;
}
.map__pin {
  position: absolute;
  left: 48%; top: 56%;
  width: 14px; height: 14px;
  background: var(--navy);
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* footer ------------------------------------------------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  padding: 28px var(--gutter);
}
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ink-3);
  max-width: var(--container);
  margin: 0 auto;
}
.site-footer__links { display: flex; gap: 28px; }
.site-footer__links a:hover { color: var(--navy); }
@media (max-width: 720px) {
  .site-footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* page hero (sub-pages) ---------------------------------- */
.page-hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: 72px 0 64px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero__title { max-width: 22ch; margin: 0 auto; }
.page-hero__lead { margin: 24px auto 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.page-hero .gold-rule { margin: 24px auto; }

/* generic cards on sub-pages ----------------------------- */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.card__media {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  background-color: var(--cream-2);
}
.card__body { padding: 24px; }
.card__eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.card__title { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.card__desc { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.6; }

/* directory ---------------------------------------------- */
.dir {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { .dir { grid-template-columns: 1fr; } }
.dir__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
}
.dir__name { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy); }
.dir__meta { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.dir__tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--gold); padding: 4px 10px; border-radius: 2px;
}

/* contact form ------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-block h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); margin: 0 0 10px; }
.contact-block p, .contact-block a { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 6px; }
.contact-block a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.form-field {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px;
}
.form-field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.form-field input, .form-field textarea, .form-field select {
  font: inherit; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 12px 14px; color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 0; border-color: var(--gold); }

/* article (news post) ------------------------------------ */
.article {
  max-width: 760px; margin: 0 auto; padding: 80px var(--gutter);
}
.article h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.1; margin: 0 0 20px; letter-spacing: 0.01em; color: var(--navy); text-transform: uppercase; }
.article__meta { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 40px; }
.article__media { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: var(--cream-2); margin: 0 0 40px; border-radius: 4px; }
.article p { font-size: 17px; line-height: 1.75; margin: 0 0 1.2em; color: var(--ink); }
.article a { border-bottom: 1px solid var(--gold); }

/* 404 ---------------------------------------------------- */
.notfound { display: grid; place-items: center; min-height: 70vh; text-align: center; padding: 80px var(--gutter); }
.notfound h1 { font-family: var(--serif); font-size: clamp(80px, 14vw, 200px); line-height: 1; margin: 0 0 12px; color: var(--navy); }
.notfound p { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 40px; }

/* utilities --------------------------------------------- */
.divider-rule { height: 1px; background: var(--rule); margin: 32px 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 16px; } .mb-2 { margin-bottom: 32px; } .mb-3 { margin-bottom: 48px; }
