:root {
  --amber: oklch(0.79 0.17 70);
  --amber-deep: oklch(0.70 0.16 62);
  --paper: oklch(0.975 0.018 85);
  --paper-2: oklch(0.95 0.028 82);
  --ink: oklch(0.26 0.03 70);
  --ink-soft: oklch(0.48 0.03 70);
  --line: oklch(0.90 0.025 80);
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --measure: 66ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.legal {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.lamp {
  background: var(--amber);
  color: var(--ink);
}

.lamp-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.05rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--paper);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--amber);
  font-size: 1.05rem;
}

.lamp-links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lamp-links a {
  text-decoration: none;
  opacity: 0.72;
}

.lamp-links a[aria-current="page"],
.lamp-links a:hover {
  opacity: 1;
}

.pinstripe {
  height: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 7px / 100% 3px no-repeat,
    var(--amber);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  animation: rise 0.7s var(--ease) both;
}

.hero-lede {
  animation: rise 0.7s var(--ease) 0.08s both;
}

.hero-lede {
  max-width: 42ch;
  margin: 1.4rem 0 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-lamp {
  position: absolute;
  right: clamp(-1rem, 4vw, 2rem);
  top: 18%;
  width: min(220px, 32vw);
  opacity: 0.18;
  pointer-events: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  align-items: start;
}

.layout-solo {
  grid-template-columns: 1fr;
}

.fare {
  position: sticky;
  top: 1.25rem;
  padding: 1rem 0 0;
}

.fare-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fare ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fare a {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.35rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
}

.fare a:hover {
  color: var(--amber-deep);
}

.fare-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--amber-deep);
}

.toc-mobile {
  display: none;
  margin: 0 1.5rem 1.5rem;
  background: var(--paper-2);
  border-radius: 14px;
}

.toc-mobile summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile .fare {
  position: static;
  padding: 0 1.1rem 1rem;
}

.policy {
  min-width: 0;
  max-width: var(--measure);
}

.legal-prose {
  counter-reset: lito-section;
}

.legal-prose > p:first-child {
  margin-top: 0;
  font-size: 1.15rem;
}

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

.legal-prose a {
  text-decoration-color: var(--amber);
  text-underline-offset: 0.18em;
}

.legal-prose hr {
  border: 0;
  height: 10px;
  margin: 2rem 0;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 7px / 100% 3px no-repeat;
}

.legal-prose h2,
.legal-prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.legal-prose ol > li {
  scroll-margin-top: 1.25rem;
}

.legal-prose h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  scroll-margin-top: 1.25rem;
}

.legal-prose ol + ul {
  margin: -0.35rem 0 1.1rem 4.4rem;
}

.legal-prose ol + ul + p {
  margin-left: 4.4rem;
  margin-bottom: 1.6rem;
}

.legal-prose h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.15rem;
}

.legal-prose ul {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.2rem;
}

.legal-prose ul li {
  margin: 0.35rem 0;
}

.legal-prose ul li::marker {
  color: var(--amber-deep);
}

.legal-prose ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-prose ol > li {
  counter-increment: lito-section;
  position: relative;
  padding: 1.7rem 0 1.5rem 4.4rem;
  border-top: 1px solid var(--line);
}

.legal-prose ol > li::before {
  content: counter(lito-section, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--amber-deep);
}

.legal-prose ol > li > p:first-child {
  font-size: 1.05rem;
}

.legal-prose ol > li > p:first-child::first-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.colophon {
  background: var(--ink);
  color: var(--paper);
}

.colophon-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
}

.colophon a {
  color: var(--amber);
  text-decoration: none;
}

.colophon a:hover {
  text-decoration: underline;
}

.colophon p {
  margin: 0;
  color: color-mix(in oklch, var(--paper) 78%, var(--amber));
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .lamp-inner {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .brand img,
  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand {
    font-size: 1rem;
  }

  .lamp-links {
    flex-shrink: 0;
    gap: 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
  }

  .fare-desktop {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .legal-prose ol > li {
    padding-left: 3.4rem;
  }

  .legal-prose ol + ul,
  .legal-prose ol + ul + p {
    margin-left: 3.4rem;
  }

  .hero-lamp {
    top: 8%;
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1,
  .hero-lede {
    animation: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .lamp,
  .pinstripe,
  .fare,
  .toc-mobile,
  .colophon,
  .hero-lamp,
  .skip-link {
    display: none !important;
  }

  body.legal {
    background: #fbf6ec;
    color: #2c2416;
  }

  .hero,
  .layout,
  .policy {
    max-width: none;
    padding: 0;
    display: block;
  }
}
