:root {
  --cream: #fff9dc;
  --cream-2: #f7efc3;
  --paper: #ffffff;
  --ink: #18232b;
  --muted: #5c6770;

  --blue: #2f87bf;
  --blue-dark: #195c88;
  --blue-panel: #55798e;
  --blue-soft: #dff3ff;

  --red: #c72f28;
  --red-dark: #8f1f1b;

  --border: #d8d4bb;

  --shadow:
    0 16px 42px rgba(85, 121, 142, .18);

  --shadow-small:
    0 8px 24px rgba(85, 121, 142, .10);

  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--blue-dark);
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(47, 135, 191, .28);
  outline-offset: 3px;
}

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

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}


/* Accessibility */

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

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
}


/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;

  background: rgba(255, 249, 220, .96);
  border-bottom: 1px solid rgba(24, 35, 43, .12);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand small {
  display: block;
  margin-top: 4px;

  color: var(--blue-dark);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;

  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;

  color: var(--ink);
  text-decoration: none;
  font-weight: 700;

  border-radius: 999px;

  transition:
    background-color .16s ease,
    color .16s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--blue-panel);
  color: #fff;
}

.header-cta {
  padding: 11px 15px;

  background: var(--red);
  color: #fff !important;

  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;

  border-radius: 999px;

  transition:
    background-color .16s ease,
    transform .16s ease;
}

.header-cta:hover {
  background: var(--red-dark);
}

.mobile-nav {
  display: none;
}


/* Homepage hero */

.hero {
  position: relative;
  min-height: 620px;

  display: grid;
  align-items: end;

  overflow: hidden;
  background: var(--ink);
}

.hero img.hero-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(12, 21, 26, .88) 0%,
      rgba(12, 21, 26, .58) 45%,
      rgba(12, 21, 26, .10) 82%
    ),
    linear-gradient(
      0deg,
      rgba(12, 21, 26, .68) 0%,
      transparent 40%
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 760px;
  padding: 90px 0 64px;

  color: #fff;
}

.kicker {
  margin: 0 0 12px;

  color: var(--cream-2);

  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: .95;
}

.hero p.lede {
  max-width: 680px;
  margin: 22px 0 0;

  color: #f4f6f7;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}


/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 28px;
}

.button {
  min-height: 48px;
  padding: 11px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  text-decoration: none;
  font-weight: 900;

  transition:
    background-color .16s ease,
    color .16s ease,
    transform .16s ease;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--blue-panel);
  color: #fff;
}


/* Quick information bar */

.quickbar {
  background: var(--blue-dark);
  color: #fff;
}

.quickbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quickbar a,
.quickbar div {
  padding: 18px 20px;

  color: #fff;
  text-decoration: none;

  border-right: 1px solid rgba(255, 255, 255, .20);
}

.quickbar a {
  transition: background-color .16s ease;
}

.quickbar a:hover {
  background: var(--blue-panel);
  color: #fff;
}

.quickbar strong {
  display: block;

  color: var(--cream-2);

  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.quickbar span {
  display: block;
  margin-top: 3px;

  font-weight: 800;
}


/* General sections */

.section {
  padding: 72px 0;
}

.section.white {
  background: #fff;
}

.section.blue-panel {
  background: var(--blue-panel);
  color: #fff;
}


.section.blue-panel .section-head p,
.section.blue-panel .feature p {
  color: #edf3f6;
}

.section.blue-panel .eyebrow {
  color: var(--cream-2);
}

.section.blue-panel a:not(.button) {
  color: #fff;
}

.section.blue-panel a:not(.button):hover {
  color: var(--cream-2);
}


/* Section headings */

.section-head {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 46px;

  margin-bottom: 34px;

  align-items: end;
}

.section-head h2 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.section-head p {
  margin: 0;

  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 8px;

  color: var(--red-dark);

  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  overflow: hidden;

  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-small);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card a.card-link {
  display: inline-block;
  margin-top: 14px;

  font-weight: 900;
  text-decoration: none;
}


/* Feature section */

.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;

  align-items: center;
}

.feature img {
  width: 100%;

  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature h2 {
  margin: 0 0 16px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.05;
}

.feature p {
  color: var(--muted);
  font-size: 1.08rem;
}


/* Notices */

.notice {
  padding: 20px 22px;

  background: #fff;
  border-left: 6px solid var(--red);
  border-radius: 12px;

  box-shadow: var(--shadow-small);
}


/* Interior page hero */

.page-hero {
  padding: 72px 0 60px;

  background:
    linear-gradient(
      135deg,
      var(--blue-dark),
      #103b58
    );

  color: #fff;
}

.page-hero .eyebrow {
  color: var(--cream-2);
}

.page-hero h1 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;

  color: #f1f4f5;
  font-size: 1.18rem;
}

/* Keep the transition from an interior hero into its first content block consistent. */
.page-hero + .section {
  padding-top: 60px;
}


/* Interior layouts */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;

  align-items: start;
}

.prose {
  min-width: 0;
  max-width: none;
}


.prose h2,
.prose h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.prose h2 {
  margin: 44px 0 16px;
  font-size: 2rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: 1.4rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p,
.prose li {
  color: #39464f;
}


/* Sidebar */

.sidebar {
  position: sticky;
  top: 104px;

  display: grid;
  gap: 18px;
}

.side-card {
  margin: 0;
  padding: 20px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-small);
}

.side-card h3 {
  margin-top: 0;
}

.stat-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.stat-list li {
  padding: 9px 0;
  border-bottom: 1px solid #ece8d5;
}

.stat-list li:last-child {
  border-bottom: 0;
}


/* Schedule */

.schedule {
  width: 100%;

  border-collapse: collapse;

  overflow: hidden;

  background: #fff;
  border-radius: 14px;

  box-shadow: var(--shadow-small);
}

.schedule th {
  padding: 12px 14px;

  background: var(--blue-dark);
  color: #fff;

  text-align: left;
}

.schedule td {
  padding: 12px 14px;

  border-bottom: 1px solid #e6e1c8;

  vertical-align: top;
}

.schedule tbody tr:nth-child(even) {
  background: rgba(223, 243, 255, .18);
}

.schedule tr:last-child td {
  border-bottom: 0;
}


/* Pricing / admission cards */


.admission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admission-card {
  min-width: 0;
  padding: 22px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-small);
}

.admission-card h3 {
  margin: 2px 0 18px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.card-kicker {
  margin: 0;

  color: var(--red-dark);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fare-list {
  margin: 0;
}

.fare-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;

  padding: 12px 0;
  border-bottom: 1px solid #ece8d5;
}

.fare-list > div:last-child {
  border-bottom: 0;
}

.fare-list dt {
  font-weight: 700;
}

.fare-list dd {
  margin: 0;

  color: var(--blue-dark);
  font-weight: 900;
  text-align: right;
}

.fare-list dd {
  font-size: 1.25rem;
}

.fare-list dd small {
  display: block;

  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}


.payment-note {
  margin-top: 20px;
  padding: 15px 18px;

  background: var(--cream-2);
  border-left: 5px solid var(--red);
  border-radius: 10px;

  color: var(--ink);
}

@media (max-width: 900px) {
  .admission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;

  overflow: hidden;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: var(--shadow-small);
}

.gallery figure > a {
  display: block;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 12px 14px;

  color: var(--muted);
  font-size: .93rem;
}


/* Railroad equipment roster */

.equipment-page {
  display: grid;
  gap: 58px;
}

.equipment-group {
  min-width: 0;
}

.equipment-group > h2 {
  margin: 0 0 20px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.15;
}

.equipment-featured,
.equipment-card {
  overflow: hidden;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: var(--shadow-small);
}

.equipment-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  margin-bottom: 20px;
}

.equipment-featured .info {
  padding: 26px 28px;
}

.equipment-card-grid {
  display: grid;
  gap: 20px;
}

.equipment-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.equipment-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.equipment-card-grid--one {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}

.equipment-card {
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;
}

.equipment-card .info {
  flex: 1;
  padding: 18px;
}

.equipment-featured h3,
.equipment-card h3 {
  margin: 0 0 12px;
}

.equipment-featured dl,
.equipment-card dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 4px 12px;

  margin: 0;
}

.equipment-featured dt,
.equipment-card dt {
  font-weight: 800;
}

.equipment-featured dd,
.equipment-card dd {
  margin: 0;
  color: var(--muted);
}

.equipment-featured p,
.equipment-card p {
  color: #39464f;
}

.equipment-featured p:last-child,
.equipment-card p:last-child {
  margin-bottom: 0;
}


/* Equipment gallery triggers */

.equipment-image-button {
  width: 100%;
  padding: 0;

  display: block;
  overflow: hidden;

  background: #eef1eb;
  border: 0;
  border-radius: 0;

  color: inherit;
  cursor: zoom-in;
}

.equipment-image-button img {
  width: 100%;
  display: block;

  transition: transform .18s ease;
}

.equipment-card .equipment-image-button {
  aspect-ratio: 16 / 10;
}

.equipment-card .equipment-image-button img {
  height: 100%;
  object-fit: cover;
}

.equipment-featured .equipment-image-button {
  height: 100%;
  min-height: 410px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #edf0e9;
}

.equipment-featured .equipment-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.equipment-image-button:hover img {
  transform: scale(1.015);
}

.equipment-image-button:focus-visible {
  position: relative;
  z-index: 2;

  outline: 4px solid rgba(47, 135, 191, .40);
  outline-offset: -4px;
}


/* Equipment lightbox */

.equipment-lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;

  overflow: hidden;

  background: #11191e;
  color: #fff;
  border: 0;
  border-radius: 16px;

  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.equipment-lightbox::backdrop {
  background: rgba(4, 9, 12, .86);
}

.equipment-lightbox-inner {
  position: relative;

  min-height: min(760px, calc(100vh - 32px));
  padding: 54px 68px 22px;

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.equipment-lightbox figure {
  margin: 0;
  min-width: 0;

  display: grid;
  gap: 14px;
}

.equipment-lightbox figure img {
  width: 100%;
  max-height: calc(100vh - 150px);

  object-fit: contain;
}

.equipment-lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: #edf3f6;
  font-weight: 800;
}

.gallery-counter {
  color: #aebac1;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}

.gallery-close,
.gallery-prev,
.gallery-next {
  position: absolute;
  z-index: 2;

  width: 44px;
  height: 44px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;

  font: inherit;
  cursor: pointer;

  transition:
    background-color .16s ease,
    border-color .16s ease;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(255, 255, 255, .20);
  border-color: rgba(255, 255, 255, .34);
}

.gallery-close:focus-visible,
.gallery-prev:focus-visible,
.gallery-next:focus-visible {
  outline: 3px solid rgba(255, 249, 220, .70);
  outline-offset: 3px;
}

.gallery-close {
  top: 12px;
  right: 12px;

  font-size: 1.5rem;
  line-height: 1;
}

.gallery-prev,
.gallery-next {
  top: 50%;
  transform: translateY(-50%);

  font-size: 1.45rem;
  line-height: 1;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

@media (max-width: 900px) {
  .equipment-featured {
    grid-template-columns: 1fr;
  }

  .equipment-featured .equipment-image-button {
    height: auto;
    min-height: 0;
  }

  .equipment-featured .equipment-image-button img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 700px) {
  .equipment-page {
    gap: 46px;
  }

  .equipment-card-grid--three,
  .equipment-card-grid--two,
  .equipment-card-grid--one {
    grid-template-columns: 1fr;
  }

  .equipment-card-grid--one {
    justify-content: stretch;
  }

  .equipment-featured dl,
  .equipment-card dl {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .equipment-lightbox {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
    border-radius: 12px;
  }

  .equipment-lightbox-inner {
    min-height: calc(100vh - 18px);
    padding: 54px 12px 16px;
  }

  .equipment-lightbox figure img {
    max-height: calc(100vh - 150px);
  }

  .equipment-lightbox figcaption {
    padding-inline: 4px;
    font-size: .92rem;
  }

  .gallery-prev,
  .gallery-next {
    top: auto;
    bottom: 62px;
    transform: none;
  }

  .gallery-prev {
    left: 16px;
  }

  .gallery-next {
    right: 16px;
  }
}

/* Verification / temporary editor notice */

.verify {
  padding: 16px 18px;

  background: #fff6d7;
  border: 1px solid #e7d58c;
  border-radius: 12px;

  font-size: .94rem;

  box-shadow:
    0 6px 18px rgba(85, 121, 142, .07);
}


/* Footer */

.site-footer {
  padding: 44px 0 28px;

  background: #111c22;
  color: #e9eef1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 36px;
}

.site-footer a {
  color: #e7f0f4;
}

.site-footer a:hover {
  color: var(--cream-2);
}

.site-footer h3 {
  margin-top: 0;
  color: #fff;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, .14);

  color: #aebac1;
  font-size: .9rem;
}


/* Tablet */

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .mobile-nav select {
    max-width: 220px;
    padding: 10px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--ink);
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .quickbar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head,
  .feature,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Mobile */

@media (max-width: 620px) {
  .wrap {
    width: min(calc(100% - 22px), var(--max));
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    font-size: .92rem;
  }

  .brand small {
    font-size: .62rem;
  }

  .mobile-nav select {
    width: 132px;
    font-size: .86rem;
  }

  .hero {
    min-height: 590px;
  }

  .hero::after {
    background:
      linear-gradient(
        0deg,
        rgba(12, 21, 26, .92) 0%,
        rgba(12, 21, 26, .60) 60%,
        rgba(12, 21, 26, .20) 100%
      );
  }

  .hero-content {
    padding: 180px 0 44px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
  }

  .quickbar-grid,
  .card-grid,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quickbar a,
  .quickbar div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }

  .section {
    padding: 56px 0;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .page-hero + .section {
    padding-top: 44px;
  }

  .sidebar,
  .admission-grid {
    grid-template-columns: 1fr;
  }

  .schedule {
    font-size: .9rem;
  }

  .schedule th,
  .schedule td {
    padding: 10px 8px;
  }

}