/* Mirrors the Tailwind tokens used by the FlySimRoutes app (zinc/gray/blue palette, brand orange). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --header-bg: #ffffff;
  --border: #f4f4f5;
  --text: #18181b;
  --text-strong: #18181b;
  --text-muted: #52525b;
  --link: #2563eb;
  --link-hover: #60a5fa;
  --icon-bg: #dbeafe;
  --icon-fg: #2563eb;
  --brand: #fd4f00;
  --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181b;
    --surface: #27272a;
    --header-bg: #1f2937;
    --border: #374151;
    --text: #e4e4e7;
    --text-strong: #f4f4f5;
    --text-muted: #a1a1aa;
    --link: #60a5fa;
    --link-hover: #ffffff;
    --icon-bg: #1e3a8a;
    --icon-fg: #60a5fa;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  }
}

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

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
}

.brand:hover {
  color: var(--text);
}

/* Hero, styled after the home page carousel slides */
.hero {
  position: relative;
  height: 20rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: #ffffff;
  background-color: #0f172a;
  background-image: radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 639px) {
  /* Keep the plane clear of the title on narrow screens */
  .hero-route {
    height: 60%;
  }
}

.route-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
}

.route-waypoint {
  fill: #0f172a;
  stroke: var(--brand);
  stroke-width: 2;
}

.route-plane {
  fill: #ffffff;
}

.hero-title,
.hero-subtitle {
  position: relative;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-subtitle {
  margin: 0;
  max-width: 48rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 2.5rem 5rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Content */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.prose {
  max-width: 56rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.prose h1 {
  margin: 0 0 1.5rem;
  color: var(--text-strong);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.prose p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.prose p.lead {
  font-size: 1.25rem;
}

.signature {
  color: var(--text-strong) !important;
  font-weight: 600;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .prose h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Feature cards, same look as the home page feature_card component */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--icon-bg);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--icon-fg);
}

.card h3 {
  margin: 0 0 0.75rem;
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.625;
}

/* Imprint */
.legal {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.legal h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1.25rem 0;
}

.legal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.25rem 0;
}

.legal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0;
}

.legal p {
  margin: 0 0 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 66.666%;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.footer p {
  margin: 0 0 0.75rem;
}

@media (max-width: 639px) {
  .footer-inner {
    width: auto;
    padding: 2.5rem 1rem;
  }
}
