/* Okemo Valley Passenger Rail Alliance — site stylesheet
   Brand blue is sampled from the Alliance logo (#085A7F).
   Type: Ubuntu (the logo's face) for headings and UI; Source Serif 4 for reading. */

:root {
  --blue: #085A7F;
  --blue-deep: #063F5A;
  --blue-tint: #E4EEF4;
  --ink: #14232B;
  --muted: #56676F;
  --paper: #FFFFFF;
  --paper-2: #F2F6F8;
  --line: #D6E0E5;
  --line-strong: #AEC0CA;
  --brick: #8C3A2E;
  --brick-tint: #F7EBE7;
  --todo: #FFF1C7;
  --todo-ink: #6B4A00;
  --focus: #085A7F;
  --radius: 3px;
  --measure: 66ch;
  --font-head: "Ubuntu", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0; }
p + p, ul + p, p + ul { margin-top: 0.9em; }
ul, ol { margin: 0; padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
li::marker { color: var(--blue); }
strong { font-weight: 600; }
small { font-size: 0.9em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 0.5rem 0.8rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: 74rem; margin: 0 auto; padding-left: clamp(1rem, 4vw, 2.5rem); padding-right: clamp(1rem, 4vw, 2.5rem); }
.measure { max-width: var(--measure); }
.eyebrow { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.lede { font-size: 1.2rem; color: var(--muted); }
.stamp { font-family: var(--font-head); font-size: 0.82rem; color: var(--muted); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--blue); }
.brand img { width: 4.6rem; height: auto; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.005em; }
.brand-sub { font-family: var(--font-head); font-weight: 400; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; font-family: var(--font-head); font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 1rem; padding: 0.7rem 1.15rem; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--blue); line-height: 1.2; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
button.btn { cursor: pointer; }

/* Hero */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 8fr); gap: 3rem; } }
.hero-text { display: grid; gap: 1.1rem; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 55%; border-radius: var(--radius); }
.hero-photo figcaption, figcaption { font-family: var(--font-head); font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }

/* Page title band (inner pages) */
.title-band { border-bottom: 1px solid var(--line); }
.title-band .wrap { display: grid; gap: 0.8rem; padding-top: 2.25rem; padding-bottom: 2rem; }

/* Sections */
main .section { padding-top: 3rem; padding-bottom: 3rem; }
main .section.tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.split { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 66ch) minmax(16rem, 1fr); align-items: start; } }

/* Doors (home) */
.door { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.door .eyebrow { color: var(--muted); }
.door h3 a { text-decoration: none; color: var(--ink); }
.door h3 a:hover { color: var(--blue); text-decoration: underline; }
.door p { color: var(--muted); }
.door .more { font-family: var(--font-head); font-weight: 500; }

/* Strip (Holiday Express) */
.strip { background: var(--brick-tint); border-top: 1px solid #E8D2CB; border-bottom: 1px solid #E8D2CB; }
.strip .wrap { display: grid; gap: 1.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; align-items: center; }
@media (min-width: 56rem) { .strip .wrap { grid-template-columns: 9rem minmax(0, 1fr) auto; } }
.strip .eyebrow { color: var(--brick); }
.strip img { width: 9rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.strip h2 { font-size: 1.4rem; }

/* Figures */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure.portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.split .figure.portrait, .grid-2 .figure.portrait { max-width: 26rem; }
.figure.wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.photo-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* Counter + newsletter */
.counter { display: grid; gap: 0.3rem; }
.counter .big { font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.counter .what { font-family: var(--font-head); font-size: 1rem; }

form { display: grid; gap: 0.75rem; }
.field { display: grid; gap: 0.3rem; }
label { font-family: var(--font-head); font-size: 0.92rem; font-weight: 500; }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 1rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 6rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-family: var(--font-body); font-size: 0.98rem; font-weight: 400; }
.check input { margin-top: 0.35rem; }
.inline-form { display: grid; gap: 0.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.form-note { font-family: var(--font-head); font-size: 0.85rem; color: var(--muted); }
.form-msg { font-family: var(--font-head); font-size: 0.95rem; color: var(--brick); }

/* Quote */
.quote { border-left: 3px solid var(--blue); padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.quote p { font-size: 1.15rem; }
.quote cite { font-family: var(--font-head); font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* Rungs (plan) */
.rungs { display: grid; gap: 1rem; }
.rung { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.2rem 1.3rem; display: grid; gap: 0.6rem; }
.rung header { display: grid; gap: 0.4rem; justify-items: start; }
.rung header .n { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--blue); }
.rung header h2 { font-size: 1.5rem; }
.status { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 2px; border: 1px solid; line-height: 1.3; }
.status.running { color: #1E5E3A; border-color: #1E5E3A; background: #E7F3EC; }
.status.partial { color: var(--blue); border-color: var(--blue); background: var(--blue-tint); }
.status.exploring { color: #7A5A12; border-color: #A7841F; background: #FBF3DF; }
.status.longterm { color: var(--muted); border-color: var(--line-strong); background: var(--paper-2); }

/* Facts box */
.facts { background: var(--blue-tint); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: 0.6rem; }
.facts h3 { font-size: 1.05rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; font-size: 0.97rem; }
.facts dt { font-family: var(--font-head); font-weight: 500; color: var(--blue); }
.facts dd { margin: 0; }

/* Two-column what we are / are not */
.arenot { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.arenot > div { border-top: 3px solid var(--blue); padding-top: 0.8rem; }
.arenot > div.not { border-top-color: var(--brick); }

/* Ride page */
.answer { background: var(--blue-tint); border-radius: var(--radius); padding: 1.25rem 1.4rem; font-size: 1.12rem; }
.route { border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: 0.9rem; }
.route h3 .from { color: var(--muted); font-weight: 400; }
.legs { display: grid; gap: 0.75rem; }
.leg { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.leg .k { font-family: var(--font-head); font-size: 0.85rem; font-weight: 500; color: var(--blue); padding-top: 0.15rem; }
@media (max-width: 30rem) { .leg { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } }
.verified { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; font-family: var(--font-head); font-size: 0.88rem; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 0.6rem 0.8rem; }
.verified b { color: var(--ink); font-weight: 500; }
.days { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.day { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: 0.5rem; background: var(--paper); }
.day ol { padding-left: 1.2rem; font-size: 0.97rem; }
details { border-top: 1px solid var(--line); padding: 0.7rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-family: var(--font-head); font-weight: 500; cursor: pointer; }
details p { margin-top: 0.5rem; }

/* TODO markers — anything wrapped in .todo must be verified or replaced before launch */
.todo { background: var(--todo); color: var(--todo-ink); padding: 0 0.25rem; border-radius: 2px; font-family: var(--font-head); font-size: 0.92em; }
.todo::before { content: "verify: "; font-weight: 700; font-size: 0.8em; letter-spacing: 0.05em; }

/* Timeline (about) */
.timeline { display: grid; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.tl .when { font-family: var(--font-head); font-weight: 500; color: var(--blue); font-size: 0.95rem; }
@media (max-width: 30rem) { .tl { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }

/* People */
.people { display: grid; gap: 1.5rem; }
.person { display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.25rem; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: start; }
.person > div { display: grid; gap: 0.4rem; }
.person .role { font-family: var(--font-head); font-size: 0.9rem; color: var(--muted); }
.person .mug { width: 7.5rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.person .mug.placeholder { background: var(--paper-2); border: 1px dashed var(--line-strong); }
@media (max-width: 30rem) { .person { grid-template-columns: minmax(0, 1fr); } .person .mug { width: 6rem; } }

/* News */
.posts { display: grid; gap: 2.5rem; }
.post { display: grid; gap: 0.8rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post .date { font-family: var(--font-head); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.post .ask { font-family: var(--font-head); font-weight: 500; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.site-foot .wrap { display: grid; gap: 1.2rem; padding-top: 2rem; padding-bottom: 2.5rem; font-family: var(--font-head); font-size: 0.9rem; color: var(--muted); }
@media (min-width: 56rem) { .site-foot .wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; } }
.site-foot a { color: var(--ink); }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.site-foot li { margin: 0; }
.foot-brand { display: flex; gap: 0.6rem; align-items: center; color: var(--blue); font-family: var(--font-head); font-weight: 700; }
.foot-brand img { width: 3rem; }

/* Preview banner (single-file preview only) */
.preview-banner { background: var(--todo); color: var(--todo-ink); font-family: var(--font-head); font-size: 0.9rem; padding: 0.6rem 1rem; text-align: center; }
.preview-divider { border: 0; border-top: 6px solid var(--blue); margin: 0; }

/* Article (Telegraph reprint) */
.byline { font-family: var(--font-head); font-size: 0.95rem; color: var(--muted); }
.article { display: grid; gap: 1rem; }
.article h2 { font-size: 1.35rem; margin-top: 0.75rem; }
.reprint-note { margin-bottom: 0.75rem; }
.reprint-note p { font-size: 0.95rem; }

/* Figures inside news posts */
.post .post-fig { max-width: 24rem; }

/* Print: a clean copy of any page, article included */
@media print {
  .site-head, .site-foot, .skip, .btn, form, .preview-banner, .reprint-note, .article ~ div .facts { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .wrap { max-width: 100%; padding: 0; }
  .split { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: none; }
  .article a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
  .article a[href^="assets"]::after, .article a[href^="news"]::after { content: ""; }
  .todo { background: none; color: #444; }
  .figure img { max-width: 3.2in; }
  .title-band .wrap { padding-top: 0; }
}

/* Excursion trains (home) — the seasonal brick accent */
.excursions { background: var(--brick-tint); border-top: 1px solid #E8D2CB; border-bottom: 1px solid #E8D2CB; }
.excursions .wrap { display: grid; gap: 1.4rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.excursions .eyebrow { color: var(--brick); }
.excursions .section-head { margin-bottom: 0; }
.trains { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.train { background: var(--paper); border: 1px solid #E8D2CB; border-radius: var(--radius); padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: 0.5rem; align-content: start; }
.train .when { font-family: var(--font-head); font-weight: 700; color: var(--brick); font-size: 1rem; letter-spacing: 0.02em; }
.train h3 { font-size: 1.2rem; }
.train p { color: var(--muted); font-size: 0.98rem; }
.train .more { font-family: var(--font-head); font-weight: 500; margin-top: 0.2rem; }
.excursions .thanks { font-size: 0.98rem; max-width: var(--measure); }

/* Operator lists (ride page) */
.ops { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.55rem; }
.ops li { border-left: 2px solid var(--line-strong); padding-left: 0.75rem; font-size: 0.98rem; display: grid; gap: 0.1rem; }
.ops li::marker { content: none; }
.ops .op { font-family: var(--font-head); font-weight: 500; }
.ops .op a { text-decoration: none; }
.ops .op a:hover { text-decoration: underline; }
.ops .tel { font-variant-numeric: tabular-nums; }
.ops .tel a { color: var(--ink); text-decoration: none; }
.ops .tel a:hover { color: var(--blue); text-decoration: underline; }
.ops .note { color: var(--muted); font-size: 0.93rem; }
.leg .sub { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 1rem; }
.leg p + .sub { margin-top: 1.1rem; }
.leg .sub + p, .leg .sub + .ops { margin-top: 0.35rem; }
.leg .aside { margin-top: 1rem; background: var(--paper-2); border-radius: var(--radius); padding: 0.8rem 0.9rem; font-size: 0.97rem; }
.leg .aside + .ops { margin-top: 0.6rem; }
.time { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Honeypot field for the forms: invisible to people, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
