/* ==========================================================================
   Stark View Lodge — sitewide styles
   Palette pulled from the place itself: spruce + Vermont road-sign green,
   barn red and quilt blue (the quilts on nearly every bed), on frost white.
   ========================================================================== */

@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-var.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("../fonts/alegreya-var-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("../fonts/alegreya-sans-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --spruce: #1d3b2f;
  --green: #2c6447;       /* Vermont road-sign green */
  --frost: #f3f5f1;
  --paper: #ffffff;
  --barn: #8e2b24;        /* barn / quilt red */
  --barn-dark: #6f1f19;
  --quilt-blue: #34557a;
  --ink: #1f2522;
  --muted: #4c5a53;
  --rule: #cfd8d1;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;          /* 19px — generous for older readers */
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--quilt-blue); text-underline-offset: .18em; }
a:hover { color: var(--barn); }
:focus-visible { outline: 3px solid var(--barn); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--spruce);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.prose { max-width: 38em; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--paper); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .7em 1.3em;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--barn); color: #fff; }
.btn-primary:hover { background: var(--barn-dark); color: #fff; }
.btn-plain { border-color: var(--spruce); color: var(--spruce); background: rgba(255,255,255,.6); }
.btn-plain:hover { background: var(--spruce); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: rgba(0,0,0,.15); }
.btn-light:hover { background: #fff; color: var(--spruce); }

/* ---------- header ---------- */
.site-header { background: var(--spruce); color: #fff; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 2rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.brand { color: #fff; text-decoration: none; display: block; line-height: 1; }
.brand:hover { color: #fff; }
.brand small {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: #c9dccf; margin-bottom: .15rem;
}
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; letter-spacing: .01em; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.4rem;
}
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: #c9dccf; color: #fff; }
.site-nav a[aria-current="page"] { border-bottom-color: #e8b4ac; }
.header-call { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-call:hover { color: #e8b4ac; }

/* ---------- quilt band (the one decorative device) ---------- */
.quilt {
  height: 22px;
  background:
    conic-gradient(from 45deg, var(--barn) 25%, var(--frost) 0 50%, var(--quilt-blue) 0 75%, var(--frost) 0)
    0 0 / 22px 22px;
  border-top: 3px solid var(--spruce);
  border-bottom: 3px solid var(--spruce);
}

/* ---------- home hero: illustrated Camel's Hump ridgeline ---------- */
.hero {
  position: relative;
  background: linear-gradient(#cfdde3 0%, #e7ece6 55%, #f1ead6 100%);
  overflow: hidden;
}
.hero-art {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 62%; min-height: 200px;
}
.hero-text {
  position: relative;
  min-height: clamp(26rem, 62vh, 36rem);   /* grows with a long headline */
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: 13rem;
}
.hero-text h1 { max-width: 15em; }
.hero-text .lede { font-size: 1.3rem; max-width: 30em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* home hero photo: Camel's Hump in fall. Text sits bottom-left on a dark fade
   over the trees, keeping the mountain clear at top centre. */
.hero-photo { background: #2b3a2c; display: flex; align-items: flex-end; min-height: clamp(30rem, 82vh, 46rem); }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,28,20,.85) 0%, rgba(14,28,20,.45) 34%, rgba(14,28,20,0) 56%),
    linear-gradient(to right, rgba(14,28,20,.3) 0%, rgba(14,28,20,0) 50%);
}
.hero-photo .hero-text {
  position: relative; z-index: 1; width: 100%;
  min-height: 0; padding-top: 14rem; padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-photo h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-photo .lede { color: #f1f4ef; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* inner-page title band: Green Mountain ridgeline photo (decorative, alt="").
   Text sits bottom-left on a fade; the band grows if a title wraps. */
.page-head {
  position: relative; overflow: hidden; background: #24384a;
  display: flex; align-items: flex-end;
  min-height: clamp(13rem, 24vw, 20rem);
}
.page-head-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,28,20,.8) 0%, rgba(14,28,20,.35) 55%, rgba(14,28,20,.1) 100%),
    linear-gradient(to right, rgba(14,28,20,.35) 0%, rgba(14,28,20,0) 60%);
}
.page-head .wrap { position: relative; z-index: 1; width: 100%; padding-top: 3rem; padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.page-head h1 { margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.page-head p { margin: .4rem 0 0; font-size: 1.2rem; max-width: 34em; color: #f1f4ef; text-shadow: 0 1px 8px rgba(0,0,0,.45); }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-white { background: var(--paper); }

.split {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split.flip > :first-child { order: 2; }
}

figure { margin: 0; }
figure img { border-radius: 3px; box-shadow: 0 1px 0 var(--rule); }
figcaption { font-size: .95rem; color: var(--muted); margin-top: .45rem; font-style: italic; }

/* seasons — four plain columns with a coloured rule, not cards */
.seasons {
  display: grid; gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 1.5rem;
}
.season { border-top: 4px solid var(--green); padding-top: .9rem; }
.season:nth-child(2) { border-top-color: var(--quilt-blue); }
.season:nth-child(3) { border-top-color: var(--barn); }
.season:nth-child(4) { border-top-color: #9a7b2f; }
.season h3 { margin-bottom: .35rem; }
.season ul { margin: 0; padding-left: 1.1rem; }
.season li { margin: .15rem 0; }

/* stay options (home) and room rows (rooms page) */
.stay-options { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .stay-options { grid-template-columns: 1fr 1fr; } }
.stay-options img { margin-bottom: 1rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--barn); font-weight: 700; margin-bottom: .4rem; }

.room {
  display: grid; gap: 1.25rem 2.5rem; grid-template-columns: 1fr;
  padding: 2rem 0; border-top: 1px solid var(--rule);
}
.room:first-of-type { border-top: 0; }
@media (min-width: 46rem) {
  .room { grid-template-columns: 20rem 1fr; }
  .room.no-photo { grid-template-columns: 1fr; }
}
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.room h3 { margin-bottom: .3rem; }
.room .sleeps { color: var(--muted); font-style: italic; margin-bottom: .6rem; }

/* call-out strip */
.callout {
  background: var(--spruce); color: #fff;
  padding: 2rem 0;
}
.callout .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.callout p { margin: 0; font-family: var(--serif); font-size: 1.45rem; }
.callout a.phone { color: #fff; font-weight: 700; font-size: 1.45rem; text-decoration: none; white-space: nowrap; }
.callout a.phone:hover { color: #e8b4ac; }

/* rates */
.rate-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0 2rem; }
.rate {
  background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--green);
  padding: 1.3rem 1.5rem;
}
.rate:nth-child(2) { border-left-color: var(--quilt-blue); }
.rate h3 { margin-bottom: .2rem; }
.rate .amount { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--barn); line-height: 1.1; }
.rate .amount span { font-size: 1.1rem; color: var(--muted); font-weight: 400; }

.policy { background: var(--paper); border: 1px solid var(--rule); padding: 1.5rem 1.75rem; max-width: 46rem; }
.policy h2 { font-size: 1.6rem; }

/* directions */
.directions details {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  margin-bottom: .8rem;
}
.directions summary {
  cursor: pointer; padding: 1rem 1.25rem;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--spruce);
  list-style-position: outside;
}
.directions summary:hover { color: var(--barn); }
.directions details[open] summary { border-bottom: 1px solid var(--rule); }
.directions ol { margin: 0; padding: 1rem 1.25rem 1.25rem 3rem; max-width: 46rem; }
.directions li { margin: .35rem 0; }
.directions .note { padding: 0 1.25rem 1.25rem; margin: 0; font-style: italic; color: var(--muted); }

.route-note {
  border-left: 6px solid var(--green); background: var(--paper);
  padding: 1rem 1.25rem; font-family: var(--serif); font-size: 1.3rem; margin: 1.5rem 0;
}

/* contact page */
.contact-split { align-items: stretch; }
.contact-sub { margin-top: 1.5rem; }
.map-embed { display: flex; flex-direction: column; }
.map-embed iframe {
  width: 100%; flex: 1; min-height: 22rem; border: 1px solid var(--rule); border-radius: 3px; background: #e6eae5;
}
.map-embed p { margin: .6rem 0 0; }

.contact-card { background: var(--paper); border: 1px solid var(--rule); padding: 1.5rem 1.75rem; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--spruce); color: #dfe9e2; padding: 2.75rem 0 1.5rem; font-size: 1.05rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e8b4ac; }
.footer-grid { display: grid; gap: 1.75rem 3rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-grid h2 { color: #fff; font-size: 1.35rem; margin-bottom: .5rem; }
.footer-grid p { margin: 0 0 .4rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: .2rem 0; }
.footer-base {
  margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .95rem; color: #b8c9bd;
}
.footer-base a { color: #b8c9bd; }

/* ad banners page */
.banner-list { display: grid; gap: 2rem; }
.banner-list textarea { width: 100%; max-width: 40rem; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; padding: .5rem; }

@media (max-width: 40rem) {
  .brand span { font-size: 1.5rem; }
  .site-nav ul { gap: .1rem 1.1rem; }
  .hero-text { padding-bottom: 9rem; min-height: 0; }
  .hero-art { height: 9.5rem; }
}

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

@media print {
  .site-header, .site-footer, .hero-art, .quilt, .callout { display: none; }
  body { background: #fff; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
