:root {
  --color-ivory: #F9F6F0;
  --color-charcoal: #2E2E2E;
  --color-desaturated-blue: #5B7B8A;
  --color-sage-green: #8A9A7B;
  --color-muted-brick-red: #B85C4A;
  --color-soft-gray: #D9D2C5;
  --color-deep-blue: #3A4A5A;

  --font-heading: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --text-display: 3rem;
  --text-h1: 2.25rem;
  --text-h2: 1.75rem;
  --text-h3: 1.375rem;
  --text-body-large: 1.125rem;
  --text-body: 1rem;
  --text-caption: 0.875rem;
  --text-micro: 0.75rem;

  --leading-display: 1.2;
  --leading-h1: 1.3;
  --leading-h2: 1.4;
  --leading-h3: 1.4;
  --leading-body-large: 1.6;
  --leading-body: 1.6;
  --leading-caption: 1.5;
  --leading-micro: 1.4;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  --container-max: 75rem;
  --container-padding: 1.5rem;

  --border-width: 1px;
  --border-width-interactive: 2px;
  --border-color: var(--color-soft-gray);
  --border-color-interactive: var(--color-desaturated-blue);

  --shadow-elevated: 0 2px 8px rgba(0, 0, 0, 0.05);

  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-round: 50%;

  --transition-base: 200ms ease-in-out;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--color-desaturated-blue);
  text-decoration: none;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-desaturated-blue);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--border-width-interactive) solid var(--color-desaturated-blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  line-height: var(--leading-h2);
  font-weight: 700;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-block-end: var(--space-4);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-block-end: var(--space-3);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-block-end: var(--space-3);
}

h4,
h5,
h6 {
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  margin-block-end: var(--space-2);
}

p {
  margin-block-end: var(--space-3);
  line-height: var(--leading-body);
}

p:last-child {
  margin-block-end: 0;
}

ul,
ol {
  margin-block-end: var(--space-3);
  padding-inline-start: var(--space-4);
}

ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-3);
  padding-inline-start: var(--space-4);
  border-inline-start: var(--border-width-interactive) solid var(--color-desaturated-blue);
  font-family: var(--font-heading);
  font-size: var(--text-body-large);
  line-height: var(--leading-body-large);
  color: var(--color-deep-blue);
}

blockquote:last-child {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-3);
}

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-deep-blue);
  margin-block-start: var(--space-2);
}

hr {
  border: none;
  border-block-start: var(--border-width) solid var(--border-color);
  margin-block: var(--space-5);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-3);
}

table:last-child {
  margin-block-end: 0;
}

th,
td {
  padding: var(--space-2) var(--space-3);
  border-block-end: var(--border-width) solid var(--border-color);
  text-align: start;
  vertical-align: top;
}

th {
  font-weight: 700;
  font-family: var(--font-heading);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.surface {
  background-color: var(--color-ivory);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-medium);
}

.surface--soft {
  background-color: var(--color-soft-gray);
}

.surface--dark {
  background-color: var(--color-deep-blue);
  color: var(--color-ivory);
}

.surface--dark h1,
.surface--dark h2,
.surface--dark h3,
.surface--dark h4,
.surface--dark h5,
.surface--dark h6 {
  color: var(--color-ivory);
}

.surface--dark a {
  color: var(--color-ivory);
  text-decoration-color: var(--color-ivory);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-small);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.btn--primary {
  background-color: var(--color-muted-brick-red);
  color: var(--color-ivory);
  border: var(--border-width) solid var(--color-muted-brick-red);
}

.btn--primary:hover {
  background-color: #a34d3d;
  border-color: #a34d3d;
  text-decoration: none;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-desaturated-blue);
  border: var(--border-width-interactive) solid var(--color-desaturated-blue);
}

.btn--secondary:hover {
  background-color: var(--color-desaturated-blue);
  color: var(--color-ivory);
  text-decoration: none;
}

.google-play-button {
  display: inline-flex;
  align-items: center;
}

.google-play-button__image {
  display: block;
  height: 44px;
  width: auto;
}

.station-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-round);
  background-color: var(--color-sage-green);
  border: 2px solid var(--color-ivory);
  flex-shrink: 0;
}

.railway-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  border: none;
  margin-block: var(--space-6);
}

.railway-divider::before,
.railway-divider::after {
  content: "";
  flex: 1;
  border-block-start: 2px dashed var(--color-desaturated-blue);
}

.railway-divider .station-marker {
  width: 14px;
  height: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 48rem) {
  :root {
    --container-padding: 3rem;
    --text-display: 3rem;
    --text-h1: 2.25rem;
  }
}

@media (max-width: 47.9375rem) {
  :root {
    --text-display: 2rem;
    --text-h1: 1.75rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
  }
}