:root {
  --color-ocean-blue: #0B3C5D;
  --color-ocean-blue-dark: #062A40;
  --color-warm-sand: #F2E8D5;
  --color-signal-orange: #E67E22;
  --color-off-white: #FDFBF7;
  --color-ink: #1F2A36;
  --color-muted-text: #5A6B7A;
  --color-border: #D9CBB8;

  --font-heading: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;

  --text-display: clamp(2rem, 5vw, 3rem);
  --text-h1: clamp(1.75rem, 4vw, 2.5rem);
  --text-h2: clamp(1.5rem, 3vw, 2rem);
  --text-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-h4: clamp(1.125rem, 2vw, 1.25rem);
  --text-body-large: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  --leading-display: 1.1;
  --leading-h1: 1.2;
  --leading-h2: 1.25;
  --leading-h3: 1.3;
  --leading-h4: 1.35;
  --leading-body-large: 1.6;
  --leading-body: 1.6;
  --leading-small: 1.5;
  --leading-caption: 1.4;

  --weight-display: 700;
  --weight-h1: 700;
  --weight-h2: 600;
  --weight-h3: 600;
  --weight-h4: 600;
  --weight-body-large: 400;
  --weight-body: 400;
  --weight-small: 400;
  --weight-caption: 400;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --container-max: 1200px;
  --container-gutter: 16px;
  --section-padding: 32px;
  --card-padding: 16px;

  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.12);

  --transition-fast: 0.2s ease;
  --focus-ring: 2px solid var(--color-signal-orange);
  --focus-ring-offset: 2px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background-color: var(--color-off-white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-ocean-blue);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

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

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

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

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

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

h6 {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-weight: var(--weight-h4);
  margin-block-end: var(--space-2);
}

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

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

a {
  color: var(--color-ocean-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-signal-orange);
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 2px;
}

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

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

li {
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-block-end: 0;
  margin-block-start: var(--space-2);
}

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--color-signal-orange);
  color: var(--color-muted-text);
  font-style: italic;
}

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

blockquote p {
  margin-block-end: var(--space-2);
}

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

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

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

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

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

img {
  border-radius: var(--radius-small);
  border: 1px solid var(--color-border);
}

hr {
  border: none;
  border-block-start: 2px solid var(--color-ocean-blue);
  margin-block: var(--space-6);
}

code,
pre,
kbd,
samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: var(--space-4);
  overflow-x: auto;
  margin-block-end: var(--space-4);
}

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

code {
  background-color: var(--color-warm-sand);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-4);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

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

caption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-muted-text);
  text-align: start;
  margin-block-end: var(--space-2);
}

th,
td {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  border-block-end: 1px solid var(--color-border);
}

th {
  font-family: var(--font-heading);
  font-weight: var(--weight-h3);
  color: var(--color-ocean-blue);
  background-color: var(--color-warm-sand);
}

tbody tr:nth-child(even) {
  background-color: rgba(242, 232, 213, 0.4);
}

form {
  margin-block-end: var(--space-4);
}

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

fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: var(--space-4);
  margin-block-end: var(--space-4);
}

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

legend {
  font-family: var(--font-heading);
  font-weight: var(--weight-h3);
  color: var(--color-ocean-blue);
  padding-inline: var(--space-2);
}

label {
  display: block;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-weight: 500;
  color: var(--color-ink);
  margin-block-end: var(--space-1);
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-ocean-blue);
  box-shadow: 0 0 0 2px rgba(11, 60, 93, 0.15);
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="url"]:focus-visible,
input[type="password"]:focus-visible,
input[type="search"]:focus-visible,
input[type="number"]:focus-visible,
input[type="date"]:focus-visible,
input[type="time"]:focus-visible,
input[type="datetime-local"]:focus-visible,
input[type="month"]:focus-visible,
input[type="week"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6B7A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-inline-end: var(--space-6);
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-inline-end: var(--space-2);
  vertical-align: middle;
  accent-color: var(--color-ocean-blue);
  cursor: pointer;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  margin-block-end: 0;
  cursor: pointer;
}

input[type="range"] {
  width: 100%;
  min-height: 44px;
  cursor: pointer;
  accent-color: var(--color-ocean-blue);
}

input[type="file"] {
  display: block;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  padding-block: var(--space-2);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-off-white);
  background-color: var(--color-ocean-blue);
  border: none;
  border-radius: var(--radius-small);
  padding: var(--space-2) var(--space-4);
  margin-inline-end: var(--space-3);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--color-ocean-blue-dark);
}

input[type="file"]::file-selector-button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

input[type="search"] {
  border-radius: var(--radius-pill);
  padding-inline-start: var(--space-5);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted-text);
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input:read-only,
textarea:read-only {
  background-color: var(--color-warm-sand);
  cursor: default;
}

button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-off-white);
  background-color: var(--color-signal-orange);
  border: 2px solid var(--color-signal-orange);
  border-radius: var(--radius-small);
  padding: var(--space-3) var(--space-5);
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
  background-color: var(--color-ocean-blue-dark);
  border-color: var(--color-ocean-blue-dark);
  color: var(--color-off-white);
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

button:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active {
  transform: translateY(1px);
}

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

.section {
  padding-block: var(--section-padding);
}

.surface-card {
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.surface-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.surface-card > :last-child {
  margin-block-end: 0;
}

.surface-dark {
  background-color: var(--color-ocean-blue);
  color: var(--color-off-white);
}

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

.surface-dark a {
  color: var(--color-off-white);
}

.surface-dark a:hover {
  color: var(--color-signal-orange);
}

.surface-dark p,
.surface-dark li,
.surface-dark blockquote {
  color: var(--color-off-white);
}

.surface-dark blockquote {
  color: rgba(253, 251, 247, 0.85);
}

.surface-dark figcaption {
  color: rgba(253, 251, 247, 0.7);
}

.surface-dark th {
  color: var(--color-off-white);
  background-color: var(--color-ocean-blue-dark);
}

.surface-dark td {
  border-block-end-color: rgba(253, 251, 247, 0.2);
}

.surface-dark tbody tr:nth-child(even) {
  background-color: rgba(253, 251, 247, 0.05);
}

.surface-dark input[type="text"],
.surface-dark input[type="email"],
.surface-dark input[type="tel"],
.surface-dark input[type="url"],
.surface-dark input[type="password"],
.surface-dark input[type="search"],
.surface-dark input[type="number"],
.surface-dark input[type="date"],
.surface-dark input[type="time"],
.surface-dark input[type="datetime-local"],
.surface-dark input[type="month"],
.surface-dark input[type="week"],
.surface-dark select,
.surface-dark textarea {
  background-color: rgba(253, 251, 247, 0.1);
  border-color: rgba(253, 251, 247, 0.3);
  color: var(--color-off-white);
}

.surface-dark input::placeholder,
.surface-dark textarea::placeholder {
  color: rgba(253, 251, 247, 0.6);
}

.surface-dark input:read-only,
.surface-dark textarea:read-only {
  background-color: rgba(253, 251, 247, 0.15);
}

.surface-dark fieldset {
  border-color: rgba(253, 251, 247, 0.3);
}

.surface-dark legend {
  color: var(--color-off-white);
}

.surface-dark label {
  color: var(--color-off-white);
}

.surface-dark hr {
  border-block-start-color: rgba(253, 251, 247, 0.3);
}

.surface-dark code {
  background-color: rgba(253, 251, 247, 0.1);
  color: var(--color-off-white);
}

.surface-dark pre {
  background-color: rgba(253, 251, 247, 0.1);
  border-color: rgba(253, 251, 247, 0.3);
}

.surface-dark pre code {
  background-color: transparent;
}

.surface-dark input[type="checkbox"],
.surface-dark input[type="radio"] {
  accent-color: var(--color-signal-orange);
}

.surface-dark input[type="range"] {
  accent-color: var(--color-signal-orange);
}

.surface-dark input[type="file"]::file-selector-button {
  background-color: var(--color-signal-orange);
  color: var(--color-off-white);
}

.surface-dark input[type="file"]::file-selector-button:hover {
  background-color: var(--color-ocean-blue-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-ocean-blue);
  border-color: var(--color-ocean-blue);
}

.btn-secondary:hover {
  background-color: var(--color-ocean-blue);
  border-color: var(--color-ocean-blue);
  color: var(--color-off-white);
}

.btn-secondary:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-ocean-blue);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-warm-sand);
  border-color: var(--color-warm-sand);
  color: var(--color-ocean-blue);
}

.btn-ghost:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.btn-small {
  font-size: var(--text-small);
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
}

.btn-large {
  font-size: var(--text-body-large);
  padding: var(--space-4) var(--space-6);
  min-height: 52px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: var(--leading-caption);
  color: var(--color-ocean-blue);
  background-color: var(--color-warm-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

.tag-accent {
  color: var(--color-off-white);
  background-color: var(--color-signal-orange);
  border-color: var(--color-signal-orange);
}

.tag-outline {
  background-color: transparent;
  border-color: var(--color-ocean-blue);
}

.route-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-4);
}

.route-line::before {
  content: "";
  flex: 1;
  border-block-start: 2px solid var(--color-ocean-blue);
}

.route-line::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-signal-orange);
  flex-shrink: 0;
}

.route-line-full {
  display: block;
  border-block-start: 2px solid var(--color-ocean-blue);
  margin-block: var(--space-4);
}

.route-line-full::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-signal-orange);
  margin-block-start: -5px;
  margin-inline-start: 0;
}

.passenger-card {
  background-color: var(--color-off-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-medium);
  padding: var(--card-padding);
}

.passenger-card > :last-child {
  margin-block-end: 0;
}

.passenger-card-label {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: var(--leading-caption);
  color: var(--color-muted-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-block-end: var(--space-1);
}

.passenger-card-value {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  font-weight: 500;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  background-color: var(--color-ocean-blue);
  color: var(--color-off-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-small);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: var(--color-off-white);
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

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

.visually-hidden:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: var(--space-3) !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

@media (min-width: 768px) {
  :root {
    --container-gutter: 24px;
    --section-padding: 64px;
    --card-padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .surface-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }

  button:active,
  input[type="submit"]:active,
  input[type="reset"]:active,
  input[type="button"]:active {
    transform: none;
  }
}