/* The Wayfinder Club — site styles
   Colours and fonts follow "The Wayfinder Club — brand record v2.0".
   Rules: yellow is the route and the one main button only; never yellow text on Chalk or white;
   flat colour, no gradients or shadows. */

/* ---------- Fonts (bundled, SIL Open Font License 1.1) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }

/* ---------- Brand tokens ---------- */
:root {
  --green: #134E3A;   /* Fell Green: brand anchor */
  --yellow: #FFC21A;  /* Waymark Yellow: the route and the single main action */
  --night: #0D1311;   /* Night: map ground, footer */
  --chalk: #F4F2EC;   /* Chalk: website ground, text on dark */
  --orange: #F26B3A;  /* Contour Orange: stops, north arrow */
  --blue: #4DA3FF;    /* Tarn Blue: water, secondary data */
  --slate: #5B6662;   /* Slate: secondary text on Chalk */
  --mist: #A3ADA9;    /* Mist: secondary text on Night */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--night);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.58;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.93;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 28px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--night); color: var(--chalk); padding: 8px 12px; z-index: 10; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 15px;
  color: var(--slate);
  margin: 0 0 14px;
}
.lede { font-size: clamp(18px, 2vw, 20px); max-width: 38em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 17px;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
button.btn { border: 0; cursor: pointer; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-main { background: var(--yellow); color: var(--night); }
.btn-main:hover { background: var(--night); color: var(--yellow); }

/* ---------- Header ---------- */
.site-header { background: var(--chalk); border-bottom: 1px solid #DEDBD2; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 180px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--night); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-actions { margin-top: 28px; }

.map-card { margin: 0; background: #111917; border-radius: 14px; overflow: hidden; }
.map-card figcaption {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px;
  padding: 14px 18px 16px; background: var(--night); color: var(--chalk);
}
.exp-no { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); font-size: 18px; }
.stats { display: flex; gap: 18px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--mist); }
.stats b { font-weight: 700; font-size: 22px; color: var(--chalk); letter-spacing: 0; margin-right: 4px; }

/* ---------- Rooms ---------- */
.rooms { padding: clamp(40px, 6vw, 72px) 0; }
.room-cards { list-style: none; margin: 24px 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.room-card { background: #fff; border-top: 5px solid var(--green); border-radius: 0 0 10px 10px; padding: 22px 20px 20px; display: flex; flex-direction: column; }
.room-card h3 a { color: var(--night); text-decoration: none; }
.room-card h3 a:hover { color: var(--green); }
.room-card p { margin: 0 0 16px; color: var(--slate); font-size: 16px; flex: 1; }
.status { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--green); }

.more-title { font-size: clamp(24px, 3vw, 30px); }
.more-rooms { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.more-rooms li { border-top: 1px solid #CFCBC0; padding-top: 12px; }
.more-rooms a { display: block; font-weight: 600; color: var(--night); text-decoration: none; margin-bottom: 4px; }
.more-rooms a:hover { color: var(--green); text-decoration: underline; }
.more-rooms span { color: var(--slate); font-size: 15px; line-height: 1.45; }

/* ---------- Feature band ---------- */
.band { background: var(--green); color: var(--chalk); padding: clamp(44px, 6vw, 72px) 0; }
.band h2 { color: var(--chalk); }
.band p { max-width: 36em; margin: 0; font-size: 18px; }

/* ---------- Room pages ---------- */
.room-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.room-hero .eyebrow { color: var(--green); }
.room-not { color: var(--slate); border-left: 4px solid var(--green); padding-left: 14px; max-width: 38em; }
.back { font-weight: 600; }

/* ---------- Porter's Lodge: sign-in and approvals ---------- */
[hidden] { display: none !important; }
.btn-quiet { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-quiet:hover { background: var(--green); color: var(--chalk); }
.header-lodge { margin-left: 0; }
.narrow { max-width: 680px; }
.lodge h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; }
.lodge h2:focus { outline: none; }
.form { display: grid; gap: 10px; margin: 24px 0 28px; max-width: 30em; }
.form label { font-weight: 600; }
.form input {
  font: inherit; font-size: 18px; padding: 13px 14px; min-height: 52px;
  border: 2px solid #CFCBC0; border-radius: 6px; background: #fff; color: var(--night);
}
.form input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(19, 78, 58, 0.18); }
.form .btn { justify-self: start; min-height: 48px; }
.form-msg { margin: 0; min-height: 1.5em; color: var(--green); font-weight: 600; }
.form-msg.is-error { color: #A23A12; }
.owner-link { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 600; color: var(--slate); }
.people { list-style: none; margin: 12px 0 36px; padding: 0; }
.person {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #fff; border-left: 5px solid var(--green); border-radius: 0 8px 8px 0;
  padding: 14px 16px; margin-bottom: 10px;
}
.person div { display: grid; gap: 2px; min-width: 0; }
.person-email { color: var(--night); overflow-wrap: anywhere; }
.person-when { color: var(--slate); font-size: 15px; }
.person .btn { min-height: 48px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--chalk); padding: 48px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer img { width: 200px; }
.footer-tag { color: var(--mist); margin: 14px 0 0; font-size: 15px; }
.footer-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; }
.footer-rooms a { color: var(--chalk); text-decoration: none; font-size: 15px; }
.footer-rooms a:hover { color: var(--yellow); }
.footer-small { color: var(--mist); font-size: 13px; margin-top: 36px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .room-cards { grid-template-columns: repeat(2, 1fr); }
  .more-rooms { grid-template-columns: repeat(3, 1fr); }
  .main-nav ul { gap: 18px; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 12px 16px; padding-top: 14px; padding-bottom: 10px; }
  .brand img { width: 150px; }
  .header-inner .btn-main { margin-left: auto; padding: 11px 14px; font-size: 15px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .main-nav ul { gap: 20px; }
  .main-nav a { display: block; padding: 6px 0; }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .room-cards { grid-template-columns: 1fr; }
  .more-rooms { grid-template-columns: 1fr 1fr; }
  .footer-rooms { grid-template-columns: repeat(2, auto); }
  .main-nav ul { justify-content: space-between; gap: 12px; }
  .main-nav a { font-size: 14px; }
}
