:root {
  --pine: #1c3a30;
  --copper: #c56a32;
  --wash: #e6eeea;
  --rail: #6e7c76;
  --ink: #1c2a26;
  --ticket: #f4f8f6;
  --line: #c5d2cc;
  --font-serif: "Lora", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pine);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--pine);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  margin: 0 0 0.8rem;
}

h2 {
  font-size: 1.55rem;
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 0.9rem;
}

.skip {
  position: absolute;
  left: 0.6rem;
  top: -4rem;
  background: var(--copper);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  z-index: 3;
}

.skip:focus {
  top: 0.6rem;
}

@scope (.rail) {
  :scope {
    background: var(--pine);
    color: var(--wash);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    padding: 1.1rem 0.4rem;
  }

  a {
    display: block;
  }

  img {
    width: 3rem;
    height: 3rem;
    animation: notch-settle 0.55s ease both;
  }

  .rail__word {
    margin: 0;
    writing-mode: vertical-rl;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #d5e4dc;
  }

  @media (max-width: 760px) {
    :scope {
      flex-direction: row;
      justify-content: flex-start;
      gap: 0.8rem;
      padding: 0.7rem 0.9rem;
    }

    .rail__word {
      writing-mode: horizontal-tb;
      letter-spacing: 0.14em;
    }
  }
}

@keyframes notch-settle {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.reading {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@scope (.notch-bar) {
  :scope {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.4rem;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--line);
    background: var(--wash);
  }

  .notch-bar__brand {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--pine);
    text-decoration: none;
    letter-spacing: 0.02em;
  }

  .notch-bar__nav {
    margin-left: auto;
  }

  .notch-bar__toggle {
    margin-left: auto;
    display: none;
    border: 0;
    background: var(--copper);
    color: #fff;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font: 600 0.85rem var(--font-sans);
    cursor: pointer;
  }

  ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
  }

  a:hover {
    border-bottom-color: var(--rail);
  }

  a[aria-current="page"] {
    color: var(--pine);
    border-bottom-color: var(--copper);
    font-weight: 600;
  }

  @media (max-width: 760px) {
    .nav-ready :scope .notch-bar__toggle {
      display: inline-block;
    }

    .nav-ready :scope .notch-bar__nav {
      display: none;
      flex-basis: 100%;
    }

    .nav-ready :scope .notch-bar__nav.is-open {
      display: block;
    }

    ul {
      flex-direction: column;
      gap: 0.45rem;
      padding-top: 0.3rem;
    }
  }
}

main {
  padding: 1.6rem 1.4rem 2.4rem;
  width: min(72rem, 100%);
}

@scope (.hero) {
  :scope {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.2fr);
    gap: 1.6rem 2rem;
    align-items: start;
    margin-bottom: 2.4rem;
  }

  .eyebrow {
    margin: 0 0 0.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--copper);
    font-weight: 600;
  }

  .hero__copy p {
    max-width: 40rem;
  }

  @media (max-width: 860px) {
    :scope {
      grid-template-columns: 1fr;
    }
  }
}

@scope (.ticket) {
  :scope {
    position: relative;
    margin: 0;
    padding: 0.95rem 1rem 0.85rem;
    background: var(--ticket);
    border: 1px solid var(--pine);
    border-radius: 0;
    list-style: none;
  }

  :scope::after {
    content: "";
    position: absolute;
    top: -1px;
    right: 0.85rem;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--copper);
  }

  .ticket__kicker {
    margin: 0 0 0.55rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rail);
  }

  dl {
    margin: 0;
  }

  dl div + div {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }

  dt {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rail);
  }

  dd {
    margin: 0.1rem 0 0;
    overflow-wrap: anywhere;
  }

  a {
    font-weight: 600;
    text-decoration-thickness: 1px;
  }

  p {
    margin: 0.25rem 0 0;
    color: var(--ink);
  }
}

@scope (.facts) {
  :scope {
    margin-bottom: 2.4rem;
  }

  .facts__rows {
    margin: 0;
    border-top: 1px solid var(--pine);
  }

  .facts__rows div {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  dt {
    margin: 0;
    color: var(--rail);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  dd {
    margin: 0;
    overflow-wrap: anywhere;
  }

  @media (max-width: 860px) {
    .facts__rows div {
      grid-template-columns: 1fr;
      gap: 0.15rem;
    }
  }
}

@scope (.tracks) {
  :scope {
    margin-bottom: 2.4rem;
  }

  .tracks__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 2rem;
  }

  .tickets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
  }

  @media (max-width: 860px) {
    .tracks__grid {
      grid-template-columns: 1fr;
    }
  }
}

@scope (.desk) {
  :scope {
    margin-bottom: 2.4rem;
  }
}

.desk__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.desk__steps li {
  border-top: 3px solid var(--pine);
  padding-top: 0.55rem;
  border-radius: 0;
}

.desk__steps span {
  display: block;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

@scope (.inquiry) {
  :scope {
    background: var(--pine);
    color: var(--wash);
    padding: 1.3rem 1.2rem 1.4rem;
    border-radius: 0;
  }

  h2,
  a:not(.cta) {
    color: var(--wash);
  }

  p {
    max-width: 40rem;
  }
}

@scope (.cta) {
  :scope {
    display: inline-block;
    background: var(--copper);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.62rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
  }

  :scope:hover {
    background: #a85624;
  }
}

.text-link {
  margin-left: 1rem;
  font-weight: 600;
}

.cta-row {
  margin-top: 1.2rem;
}

@scope (.article) {
  :scope {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.2rem 1.6rem;
    align-items: start;
  }

  .article__notch {
    margin: 0.35rem 0 0;
    padding-top: 0.35rem;
    border-top: 8px solid var(--copper);
    color: var(--pine);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
  }

  @media (max-width: 860px) {
    :scope {
      grid-template-columns: 1fr;
    }
  }

  .lead {
    font-size: 1.08rem;
    max-width: 42rem;
  }

  ul,
  .link-list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
  }

  li + li {
    margin-top: 0.35rem;
  }
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

th {
  width: 34%;
  color: var(--rail);
  font-weight: 600;
  font-size: 0.88rem;
}

.note {
  color: var(--rail);
  border-left: 3px solid var(--copper);
  padding-left: 0.75rem;
}

@scope (.faq) {
  :scope {
    margin: 0;
  }

  dt {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--pine);
    margin-top: 1rem;
  }

  dd {
    margin: 0.3rem 0 0;
  }
}

@scope (.plates) {
  :scope {
    margin-top: auto;
    background: var(--pine);
    color: #d7e4de;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 1rem 1.5rem;
    padding: 1.4rem 1.4rem 1rem;
  }

  a {
    color: #fff;
  }

  .plates__name {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .plates__policy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .plates__copy {
    grid-column: 1 / -1;
    margin: 0.3rem 0 0;
    border-top: 1px solid #34584c;
    padding-top: 0.7rem;
    font-size: 0.85rem;
  }

  @media (max-width: 860px) {
    :scope {
      grid-template-columns: 1fr;
    }
  }
}

@media (max-width: 860px) {
  .desk__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    grid-template-columns: 1fr;
  }

  .text-link {
    display: inline-block;
    margin: 0.7rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail img {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
