/* Cardinal Mountain Campground — stylesheet
   Palette: mountain fog, spruce, lichen, cardinal red.
   Type: Bitter (slab, park-signage lineage) / Karla (body) / Space Mono (field data). */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,800;1,400&family=Karla:ital,wght@0,400;0,500;0,700;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --fog:      #DCE3DF;
  --fog-deep: #C8D2CD;
  --paper:    #F2F5F2;
  --spruce:   #16241F;
  --ridge:    #2C463B;
  --lichen:   #6F856F;
  --cardinal: #B22B29;
  --rule:     rgba(22, 36, 31, 0.15);

  --display: 'Bitter', 'Bookman Old Style', Georgia, serif;
  --body:    'Karla', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'Space Mono', 'Courier New', monospace;

  --measure: 34rem;
  --gap:     clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fog);
  color: var(--spruce);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--cardinal);
  outline-offset: 3px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; max-width: var(--measure); }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  max-width: 38rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lichen);
  display: block;
  margin-bottom: 1rem;
}

.datum {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------- layout ---------- */

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.section { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

/* page intros are just a heading and a line of text - they don't need
   the same breathing room underneath as a full content section */
main > section.section:first-child {
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
main > section.section:first-child .lede { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: var(--gap);
  align-items: start;
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--fog);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--spruce);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark svg { flex: none; }

.nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9rem;
}

.nav a {
  color: var(--ridge);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover { border-bottom-color: var(--cardinal); color: var(--spruce); }

.nav a[aria-current="page"] {
  color: var(--spruce);
  font-weight: 700;
  border-bottom-color: var(--cardinal);
  border-bottom-width: 2px;
  padding-bottom: 0.1rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.4rem;
  background: var(--cardinal);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--cardinal);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--spruce); border-color: var(--spruce); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--ridge);
  border-color: var(--rule);
}

.btn-quiet:hover { background: var(--ridge); border-color: var(--ridge); color: #fff; }

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

.hero {
  padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(2rem, 4.5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.hero h1 { max-width: 15ch; }

.hero-facts {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.hero-facts div { max-width: 12rem; }

.hero-facts b {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.hero-facts span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lichen);
}

/* ---------- the ascent (signature element) ---------- */

.ascent {
  list-style: none;
  margin: 0;
  padding: 0 0 0 3.5rem;
  position: relative;
}

.ascent::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: linear-gradient(to top, var(--fog-deep), var(--lichen));
}

.ascent li {
  position: relative;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.ascent li::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 1.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fog);
  border: 2px solid var(--lichen);
}

.ascent li:hover::before,
.ascent li.is-here::before { background: var(--cardinal); border-color: var(--cardinal); }

.ascent a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--spruce);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
}

.ascent a:hover { color: var(--cardinal); }

.ascent .num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lichen);
  min-width: 2.2rem;
}

.ascent .meta {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ridge);
  margin-left: auto;
  font-weight: 400;
}

.ascent-cap {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lichen);
  padding-left: 3.5rem;
  margin: 0.6rem 0;
}

/* the road splits above site 6 */

.fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 0.5rem;
}

.fork-arm { min-width: 0; }

.branch-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lichen);
  margin: 0 0 0.4rem;
  padding-left: 2.4rem;
  max-width: none;
}

.ascent-narrow { padding-left: 2.4rem; }
.ascent-narrow::before { left: 0.7rem; }
.ascent-narrow li::before { left: -2.1rem; }
.ascent-narrow a { font-size: 1.05rem; flex-wrap: wrap; gap: 0.5rem; }
.ascent-narrow .meta { margin-left: 0; flex-basis: 100%; font-size: 0.78rem; }

.fork-node {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ridge);
  text-align: center;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: none;
}

@media (max-width: 560px) {
  .fork { grid-template-columns: 1fr; gap: 2rem; }
}

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

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.5rem;
}

.panel h3 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.photo-slot {
  background: var(--fog-deep);
  border: 1px dashed var(--lichen);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ridge);
  text-align: center;
  padding: 1rem;
}

/* ---------- spec table ---------- */

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.specs th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lichen);
  font-weight: 400;
  width: 9rem;
}

/* ---------- lists ---------- */

.stack { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: var(--measure); }

.stack li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.stack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 7px;
  height: 1px;
  background: var(--cardinal);
}

.stack.no-rule li { border-bottom: 0; padding-block: 0.3rem; }

/* ---------- notices ---------- */

.notice {
  border-left: 3px solid var(--cardinal);
  background: var(--paper);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.notice p:last-child { margin-bottom: 0; }
.notice strong { font-family: var(--display); }

/* ---------- steps (directions) ---------- */

.steps { list-style: none; counter-reset: step; margin: 0 0 2rem; padding: 0; max-width: 42rem; }

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  border-bottom: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cardinal);
}

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

.footer {
  border-top: 1px solid var(--rule);
  background: var(--spruce);
  color: var(--fog);
  padding-block: 3rem 2rem;
  margin-top: 4rem;
}

.footer a { color: var(--fog); }
.footer a:hover { color: #fff; }

.footer .grid { gap: 2rem; }

.footer h3 {
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lichen);
}

.footer ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.footer li { padding-block: 0.25rem; }

.colophon {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(220, 227, 223, 0.2);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--lichen);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- misc ---------- */

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--cardinal);
  color: #fff;
  padding: 0.6rem 1rem;
}

.crumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lichen);
  margin-bottom: 1.5rem;
}

.crumb a { color: var(--lichen); text-decoration: none; }
.crumb a:hover { color: var(--cardinal); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.pager a { text-decoration: none; }
.pager span { color: var(--lichen); }

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

/* not-bookable site (on-site manager's residence) */

.ascent li.is-closed { opacity: 0.5; }
.ascent li.is-closed::before { background: var(--fog); border-color: var(--fog-deep); }
.ascent li.is-closed:hover::before { background: var(--fog); border-color: var(--fog-deep); }

.ascent .row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ridge);
}

.ascent-narrow .row { font-size: 1.05rem; flex-wrap: wrap; gap: 0.5rem; }

.ascent .row .meta {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--lichen);
  margin-left: auto;
  font-weight: 400;
  font-style: italic;
}

.ascent-narrow .row .meta { margin-left: 0; flex-basis: 100%; font-size: 0.78rem; }

/* ---------- photos ---------- */

.shot { margin: 0 0 1.5rem; }

.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--fog-deep);
}

.shot figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--lichen);
  padding-top: 0.55rem;
}

.grid .shot { margin-bottom: 0; }

.bleed {
  width: min(100% - 2.5rem, 82rem);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.bleed .shot { margin-bottom: 0; }

.shot-wide img { aspect-ratio: 21 / 9; object-fit: cover; object-position: center 60%; }

@media (max-width: 700px) {
  .shot-wide img { aspect-ratio: 3 / 2; }
}

/* slogan */

.footer .slogan {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fog);
  margin: 0 0 0.9rem;
  max-width: 12ch;
}

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

.propmap {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.propmap .road {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.propmap .pin circle {
  fill: var(--paper);
  stroke: var(--ridge);
  stroke-width: 2.5;
  transition: fill 0.15s ease;
}

.propmap .pin text {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  fill: var(--spruce);
  text-anchor: middle;
}

.propmap a:hover .pin circle,
.propmap a:focus .pin circle { fill: var(--cardinal); stroke: var(--cardinal); }
.propmap a:hover .pin text,
.propmap a:focus .pin text { fill: #fff; }

.propmap .pin-closed circle {
  fill: var(--fog-deep);
  stroke: var(--lichen);
  stroke-dasharray: 3 3;
}
.propmap .pin-closed text { fill: var(--lichen); }

.propmap .pin-view { fill: var(--cardinal); stroke: var(--paper); stroke-width: 1.5; }

.propmap .gate rect { fill: var(--cardinal); }
.propmap .gate text {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}

.propmap .label {
  font-family: var(--body);
  font-size: 15px;
  fill: var(--ridge);
}

.propmap .road-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  fill: var(--ridge);
  opacity: 0.75;
  text-anchor: middle;
}

.propmap .band {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  fill: var(--ridge);
  opacity: 0.5;
}

.propmap .cardinal-n {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  fill: var(--ridge);
  text-anchor: middle;
}

.propmap .needle { fill: var(--cardinal); }
.propmap .fork-dot { fill: var(--cardinal); }

/* ---------- elevation profile ---------- */

.elevprofile {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0 0.5rem;
}

.elevprofile .hill-fill { fill: url(#hillside); }

.elevprofile .hill-line {
  fill: none;
  stroke: var(--ridge);
  stroke-width: 3;
  stroke-linecap: round;
}

.elevprofile .tick { stroke: var(--rule); stroke-width: 1; }

.elevprofile .node { fill: var(--paper); stroke: var(--ridge); stroke-width: 3; }
.elevprofile .node-fork { fill: var(--cardinal); stroke: var(--cardinal); }

.elevprofile .pt {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  fill: var(--spruce);
  text-anchor: middle;
}

.elevprofile .ft,
.elevprofile .sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  fill: var(--lichen);
  text-anchor: middle;
}

.elevprofile .climb {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ridge);
  text-anchor: middle;
}

/* ---------- contact form ---------- */

#cm-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lichen);
  margin-bottom: 0.35rem;
}

#cm-form input,
#cm-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--spruce);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.6rem 0.7rem;
  margin-bottom: 1.1rem;
  border-radius: 0;
}

#cm-form input:focus,
#cm-form textarea:focus {
  outline: 2px solid var(--cardinal);
  outline-offset: 1px;
  border-color: var(--cardinal);
}

#cm-form textarea { resize: vertical; min-height: 8rem; }

#cm-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  #cm-form .field-row { grid-template-columns: 1fr; gap: 0; }
}

#cm-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#cm-form button[disabled] { opacity: 0.55; cursor: not-allowed; }

#cf-status { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ridge); }
#cf-status.err { color: var(--cardinal); font-weight: 700; }

#cm-form .sent {
  background: var(--paper);
  border-left: 3px solid var(--cardinal);
  padding: 1.1rem 1.25rem;
  margin: 0;
}

.cf-turnstile { margin: 0 0 1.1rem; }

/* ---------- illustrated site map ---------- */

.sitemapwrap {
  position: relative;
  display: block;
  border: 1px solid var(--rule);
  background: #fff;
}

.sitemapwrap img { width: 100%; height: auto; display: block; }

.sitemapwrap .mp {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 32px;
  height: 32px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  border: 2.5px solid var(--cardinal);
  color: var(--cardinal);
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(22, 36, 31, 0.3);
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.sitemapwrap a.mp:hover,
.sitemapwrap a.mp:focus {
  background: var(--cardinal);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.12);
}

.sitemapwrap .mp-view::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cardinal);
  border: 1.5px solid #fff;
}

.sitemapwrap .mp-closed {
  background: #eceee9;
  border-color: var(--lichen);
  border-style: dashed;
  color: var(--lichen);
}

@media (max-width: 700px) {
  .sitemapwrap .mp {
    min-width: 27px;
    height: 27px;
    line-height: 23px;
    font-size: 0.76rem;
    border-width: 2px;
  }
}

/* ---------- mobile navigation ---------- */

.bar-actions { display: none; align-items: center; gap: 0.6rem; }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.navtoggle {
  display: block;
  width: 42px;
  height: 38px;
  padding: 9px 8px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.navtoggle span {
  display: block;
  height: 2px;
  background: var(--spruce);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.navtoggle span + span { margin-top: 5px; }

.navtoggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle.is-open span:nth-child(2) { opacity: 0; }
.navtoggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-book { display: none; }

@media (max-width: 900px) {
  .masthead .wrap { flex-wrap: wrap; }

  .bar-actions { display: flex; }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule);
    margin-top: 0.9rem;
    padding-bottom: 0.6rem;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1.02rem;
  }

  .nav a:hover { border-bottom-color: var(--rule); color: var(--cardinal); }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--rule);
    color: var(--cardinal);
    font-weight: 700;
  }

  .nav .btn { display: none; }
}

@media (min-width: 901px) {
  .navtoggle { display: none; }
}

/* ---------- logo ---------- */

.wordmark .mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: block;
}

.footer-mark {
  width: 84px;
  height: 84px;
  display: block;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .wordmark .mark { width: 40px; height: 40px; }
}

/* ---------- quick-look sheet ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.sheet[hidden] { display: none; }

.sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(22, 36, 31, 0.55);
}

.sheet-card {
  position: relative;
  background: var(--fog);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 50px rgba(22, 36, 31, 0.35);
  width: min(100%, 36rem);
  min-height: min(560px, 78vh);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem 1.75rem 2rem;
}

.sheet-card h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.6rem; }
.sheet-card .eyebrow { margin-bottom: 0.6rem; }
.sheet-blurb { max-width: none; }
.sheet-card .specs { margin-bottom: 1.5rem; }
.sheet-card .specs th { width: 7.5rem; }

.sheet-x {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ridge);
  cursor: pointer;
}

.sheet-x:hover { color: var(--cardinal); }

@media (max-width: 560px) {
  .sheet { padding: 0; align-items: flex-end; }
  .sheet-card { max-height: 88vh; padding: 1.5rem 1.25rem 1.75rem; }
}


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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-shot .shot { margin-bottom: 0; }

.hero-shot img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 55%;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot img { aspect-ratio: 3 / 2; }
}

/* ---------- captions ---------- */

.bleed .datum,
.bleed figcaption { text-align: center; }

.shot figcaption {
  font-style: italic;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--ridge);
  opacity: 0.75;
}

/* the map is tall and narrow - don't let it run the full bleed width */
.sitemapwrap { max-width: 42rem; margin-inline: auto; }

.figcap {
  color: var(--lichen);
  text-align: center;
  max-width: 42rem;
  margin: 0.7rem auto 0;
  padding-inline: 1rem;
}


/* split sections: the heading column shouldn't stretch the row taller than it needs */
.split > div > h2:first-child,
.split > div > .eyebrow:first-child + h2 { margin-bottom: 0.35rem; }
.split > div > p:last-child { margin-bottom: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

/* ---------- availability calendar ---------- */

.cal { min-height: 6rem; }

.cal-msg {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--lichen);
  padding: 1.25rem 0;
}

.cal-m { margin-bottom: 1.5rem; }

.cal-h {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cal-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  max-width: 22rem;
}

.cal-d {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--lichen);
  text-align: center;
  padding-bottom: 0.25rem;
}

.cal-c {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 2px;
}

.cal-c.is-free { background: var(--paper); color: var(--spruce); }
.cal-c.is-busy { background: var(--fog-deep); color: var(--lichen); text-decoration: line-through; }
.cal-c.is-past { color: rgba(22, 36, 31, 0.22); }

.cal-key {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--lichen);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-key .k {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  margin-left: 0.6rem;
}

.cal-key .k:first-child { margin-left: 0; }
.cal-key .k-free { background: var(--paper); border: 1px solid var(--rule); }
.cal-key .k-busy { background: var(--fog-deep); }


.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.sheet-foot p { margin: 0; }

.sheet-close {
  background: none;
  border: 0;
  padding: 0.3rem 0;
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--ridge);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sheet-close:hover { color: var(--cardinal); }

.sheet-card { display: flex; flex-direction: column; }

@media (max-width: 560px) {
  .sheet-card { min-height: 0; }
}
