:root {
  --paper: #f4f0e8;
  --ink: #183b4e;
  --terracotta: #b94f3d;
  --sand: #d9c8ae;
  --sage: #627468;
  --sea: #f4f0e8;
  --moon: #d9c8ae;
  --star: #d9c8ae;
  --side-space: 1.5rem;
}

html[data-theme="night"] {
  --paper: #102b3b;
  --ink: #f4f0e8;
  --terracotta: #c7634d;
  --sand: #3f5661;
  --sage: #a1ada2;
  --sea: #163646;
  --moon: #d9c8ae;
  --star: #d9c8ae;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
}

.watermark circle,
.watermark path,
.watermark text {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.watermark text {
  fill: currentColor;
  stroke: none;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 1.5rem var(--side-space) 1.75rem;
  overflow: hidden;
}

.site-header,
.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.footer-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.75rem;
}

.wordmark,
.section-label,
.eyebrow,
.status {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wordmark {
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.23em;
  text-decoration: none;
}

.status {
  margin: 0;
  color: var(--sage);
  text-align: right;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sage);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.language-selector a {
  color: var(--sage);
  text-decoration: none;
  transition: opacity 160ms ease;
}

.language-selector a[aria-current="true"] {
  color: var(--ink);
}

.language-selector a:hover {
  opacity: 0.62;
}

.language-selector a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.intro {
  width: min(100%, 42rem);
  margin-top: clamp(5.75rem, 15vh, 9rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--terracotta);
}

h1 {
  max-width: 38rem;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.85rem, 10vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 0.94;
}

.intro-copy {
  max-width: 34rem;
  margin-top: 1.9rem;
  color: var(--sage);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 1rem;
  font-weight: 500;
}

.journey-illustration {
  width: min(100%, 48rem);
  margin: clamp(3.75rem, 9vh, 6rem) 0 0 auto;
}

.journey-illustration svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.journey-illustration figcaption {
  margin-top: 0.75rem;
  color: var(--sage);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  text-align: right;
}

.sun {
  fill: var(--terracotta);
  opacity: 0;
  transition: opacity 800ms ease;
}
.moon {
  fill: var(--moon);
  opacity: 0;
  transition: opacity 800ms ease;
}
.stars {
  fill: var(--star);
  opacity: 0;
  transition: opacity 600ms ease;
}
.mountain--far { fill: var(--sand); }
.mountain--near { fill: var(--sage); }
.sea { fill: var(--sea); }
.sea-line {
  fill: none;
  stroke: var(--sand);
  stroke-linecap: round;
  stroke-width: 1.5;
}
.route {
  fill: none;
  stroke: var(--ink);
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  stroke-width: 1.8;
  stroke-dashoffset: 100;
}
.airplane {
  fill: var(--ink);
}
.case-body {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-width: 2;
}
.case-handle,
.case-detail {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.case-lock {
  fill: var(--terracotta);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.suitcase--small .case-body {
  fill: var(--sand);
}

.site-footer {
  margin-top: auto;
  padding-top: 4.5rem;
}

.signature {
  margin: 0;
  color: var(--terracotta);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  color: var(--sage);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 220ms ease, opacity 220ms ease;
}

.theme-toggle:hover { opacity: 0.62; }

.theme-toggle:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.theme-icon {
  grid-area: 1 / 1;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1;
  transition: opacity 260ms ease, transform 260ms ease;
}

.theme-icon--moon {
  opacity: 0;
  transform: scale(0.72);
}

html[data-theme="night"] .theme-icon--sun {
  opacity: 0;
  transform: scale(0.72);
}

html[data-theme="night"] .theme-icon--moon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="night"] .sun { opacity: 0; }
html[data-theme="night"] .moon,
html[data-theme="night"] .stars { opacity: 1; }

body.is-ready .intro,
body.is-ready .journey-illustration,
body.is-ready .site-footer {
  animation: content-enter 600ms ease-out both;
}

body.is-ready .journey-illustration {
  animation-delay: 110ms;
}

body.is-ready .site-footer {
  animation-delay: 180ms;
}

body.is-ready .sun {
  animation: sun-enter 800ms ease-out both;
}

html[data-theme="night"] body.is-ready .sun { animation: none; }
html[data-theme="night"] body.is-ready .moon,
html[data-theme="night"] body.is-ready .stars {
  animation: sun-enter 800ms ease-out both;
}

html[data-theme="night"] body.is-ready .stars { animation-duration: 600ms; }

body.is-ready .route {
  animation: route-draw 1.5s ease-out both;
}

@keyframes content-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sun-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes route-draw {
  0% { stroke-dasharray: 100; stroke-dashoffset: 100; }
  82% { stroke-dasharray: 100; stroke-dashoffset: 0; }
  100% { stroke-dasharray: 2 5; stroke-dashoffset: 0; }
}

@media (min-width: 48rem) {
  :root { --side-space: clamp(3rem, 8vw, 8rem); }

  .page-shell {
    padding-top: clamp(2.25rem, 4vw, 4rem);
    padding-bottom: clamp(2rem, 3vw, 3rem);
  }

  .intro { margin-top: clamp(7rem, 16vh, 12rem); }

  .intro-copy {
    margin-top: 2.25rem;
    font-size: 0.9375rem;
  }

  .journey-illustration { margin-top: clamp(2rem, 4vh, 4rem); }
}

@media (max-width: 27rem) {
  .site-header {
    align-items: flex-start;
  }

  .header-meta { gap: 0; }
}

@media (min-width: 72rem) {
  .intro { margin-left: 8vw; }
  .journey-illustration { margin-right: 4vw; }
}

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