
/* ========================================
   GLOBETROTTING
   Vintage Aviation Reading Website
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
  --navy: #101F32;
  --navy-light: #192C43;
  --navy-deep: #0B1726;
  --parchment: #E8DCC2;
  --gold: #C7A46A;
  --slate: #788B9D;
  --muted: #B9B7AF;
  --line: rgba(199, 164, 106, .32);
  --font: "Noto Serif TC", Georgia, serif;
  --content-width: 1120px;
  --reading-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--parchment);
  font-family: var(--font);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* Header */

.site-header {
  width: 100%;
  min-height: 76px;
  padding: 18px max(24px, calc((100% - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--navy-deep);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.logo-symbol {
  font-size: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: .8rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

/* Hero */

.hero {
  position: relative;
  min-height: 690px;
  padding: 110px 24px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at center,
      rgba(120,139,157,.14),
      transparent 65%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(199,164,106,.035) 60px
    ),
    var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(199,164,106,.2);
  pointer-events: none;
}

.hero-decoration {
  color: var(--gold);
  margin-bottom: 25px;
}

.compass-symbol {
  display: block;
  font-size: 2rem;
  line-height: 1.5;
}

.hero-route {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  opacity: .65;
}

.eyebrow {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
}

.hero-english {
  margin: 0;
  color: var(--gold);
  font-size: clamp(.85rem, 2vw, 1.25rem);
  letter-spacing: .35em;
}

.hero-divider {
  margin: 28px 0;
  color: var(--gold);
  font-size: .7rem;
  opacity: .75;
}

.hero-description {
  max-width: 500px;
  margin: 0 0 35px;
  color: var(--parchment);
  font-size: 1rem;
  line-height: 2.4;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 50px;
  padding: 10px 28px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
}

.primary-button:hover {
  background: transparent;
  color: var(--gold);
}

/* Flight Atlas */

.flight-map {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 70px 24px;
}

.map-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-size: .65rem;
  letter-spacing: .15em;
}

.map-display {
  position: relative;
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(199,164,106,.12),
      transparent 40%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(199,164,106,.06) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 79px,
      rgba(199,164,106,.06) 80px
    ),
    var(--navy-light);
}

.map-display::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.map-display::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.map-compass {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .2em;
}

.map-flight-path {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 3.5rem;
  transform: rotate(-25deg);
}

.map-caption {
  position: absolute;
  bottom: 22px;
  color: var(--gold);
  font-size: .65rem;
  letter-spacing: .25em;
}

.map-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

/* Section Headings */

.section-heading {
  margin-bottom: 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 10px 0;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: .1em;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: .9rem;
}

/* Destinations */

.destinations-section {
  padding: 90px 24px;
  background: var(--navy-deep);
}

.destination-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.destination-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      rgba(199,164,106,.06),
      transparent 65%
    ),
    var(--navy-light);
  transition: transform .2s, border-color .2s;
}

.destination-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.destination-number {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .16em;
}

.destination-card h3 {
  margin: 20px 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
}

.destination-english {
  margin: 0;
  color: var(--slate);
  font-size: .8rem;
  letter-spacing: .08em;
}

.destination-link {
  margin-top: 25px;
  color: var(--gold);
  font-size: .8rem;
}

.loading-message,
.empty-message,
.error-message {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

/* Timelines */

.timeline-section {
  padding: 90px 24px;
}

.timeline-grid {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.timeline-card {
  padding: 40px 28px;
  border: 1px solid var(--line);
  background: var(--navy-light);
  text-align: center;
}

.timeline-label {
  color: var(--gold);
  font-size: .7rem;
  letter-spacing: .18em;
}

.timeline-card h3 {
  margin: 10px 0;
  color: var(--gold);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.4;
}

.timeline-couple {
  margin: 12px 0;
  font-size: .95rem;
}

.timeline-tag {
  color: var(--slate);
  font-size: .8rem;
}

/* About */

.about-section {
  max-width: 850px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}

.about-section > p {
  margin: 20px auto;
  max-width: 680px;
  line-height: 2.3;
}

.work-status {
  margin-top: 35px !important;
  color: var(--gold);
  font-size: .85rem;
}

/* Footer */

.site-footer {
  padding: 55px 24px;
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  text-align: center;
}

.footer-logo {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .2em;
}

.site-footer > p {
  margin: 12px auto;
}

.fanwork-disclaimer {
  max-width: 650px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 2;
}

.footer-bottom {
  color: var(--slate);
  font-size: .7rem;
}

/* Destination Detail Page */

.destination-page main {
  min-height: 70vh;
}

.destination-hero {
  padding: 90px 24px 50px;
  text-align: center;
}

.destination-hero h1 {
  margin: 15px 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.era-selection {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.era-card {
  display: block;
  padding: 42px 24px;
  border: 1px solid var(--line);
  background: var(--navy-light);
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.era-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.era-card h2 {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 3rem;
}

.era-card p {
  margin: 8px 0;
}

.era-card .read-link {
  display: block;
  margin-top: 25px;
  color: var(--gold);
  font-size: .85rem;
}

/* Reading Page */

.chapter-page {
  background: var(--navy);
  color: var(--parchment);
}

.reading-layout {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 65px 24px 100px;
}

.chapter-heading {
  margin-bottom: 55px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.chapter-heading h1 {
  margin: 15px 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.6;
}

.chapter-meta {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .12em;
}

.chapter-content {
  font-size: 1.08rem;
  line-height: 2.35;
  overflow-wrap: anywhere;
}

.chapter-content p {
  margin: 0 0 1.8em;
}

.chapter-content h2,
.chapter-content h3 {
  margin: 2.5em 0 1em;
  color: var(--gold);
  line-height: 1.7;
}

.chapter-content blockquote {
  margin: 2em 0;
  padding: 12px 22px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
}

.chapter-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chapter-navigation {
  margin-top: 70px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.chapter-navigation a {
  color: var(--gold);
  font-size: .85rem;
}

.chapter-navigation a:hover {
  text-decoration: underline;
}

/* Flight Route Drawer */

.route-toggle {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 30;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .8rem;
  font-weight: 700;
}

.route-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(360px, 90vw);
  padding: 35px 25px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--navy-deep);
  box-shadow: -15px 0 45px rgba(0,0,0,.3);
  transform: translateX(105%);
  transition: transform .25s ease;
}

.route-drawer.is-open {
  transform: translateX(0);
}

.route-drawer h2 {
  color: var(--gold);
  font-size: 1.25rem;
}

.route-drawer a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}

.route-drawer a:hover {
  color: var(--gold);
}

.route-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 1.5rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0,0,0,.55);
}

[hidden] {
  display: none !important;
}

/* Tablet */

@media (max-width: 900px) {
  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 620px;
  }
}

/* iPhone / Mobile */

@media (max-width: 600px) {
  .site-header {
    min-height: 65px;
    padding: 15px 18px;
    gap: 10px;
  }

  .site-logo {
    gap: 7px;
    font-size: .68rem;
    letter-spacing: .08em;
  }

  .logo-symbol {
    font-size: 1.2rem;
  }

  .site-nav {
    gap: 12px;
    font-size: .7rem;
  }

  .hero {
    min-height: 580px;
    padding: 85px 20px;
  }

  .hero::before {
    inset: 12px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
    letter-spacing: .05em;
  }

  .hero-english {
    letter-spacing: .2em;
  }

  .hero-route {
    font-size: .55rem;
  }

  .hero-description {
    font-size: .9rem;
  }

  .flight-map {
    padding: 50px 16px;
  }

  .map-heading {
    flex-wrap: wrap;
    font-size: .55rem;
  }

  .map-display {
    min-height: 260px;
  }

  .destinations-section,
  .timeline-section,
  .about-section {
    padding: 65px 18px;
  }

  .destination-grid {
    gap: 12px;
  }

  .destination-card {
    min-height: 195px;
    padding: 18px 14px;
  }

  .destination-card h3 {
    font-size: 1.1rem;
  }

  .destination-english {
    font-size: .7rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .timeline-card {
    padding: 30px 20px;
  }

  .era-selection {
    grid-template-columns: 1fr;
    padding: 20px 18px 70px;
    gap: 15px;
  }

  .era-card {
    padding: 32px 20px;
  }

  .reading-layout {
    padding: 45px 20px 90px;
  }

  .chapter-content {
    font-size: 1rem;
    line-height: 2.25;
  }

  .chapter-navigation {
    flex-direction: column;
    gap: 18px;
  }

  .site-footer {
    padding: 45px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

