/* flying-franz0r — sunny roadtrip
 * Light:  late-morning amber + cream
 * Dark:   golden hour just after sunset — deep indigo sky, warm amber glow
 */

:root,
:root[data-theme="light"] {
  --bg: #fdf6e9;
  --bg-soft: #fffaf1;
  --bg-tinted: #f6ead0;
  --ink: #2f4858;
  --ink-soft: #547084;
  --accent: #c66a4a;   /* terracotta */
  --accent-2: #e08a3c; /* sun-deep */
  --sun: #f5b14b;
  --sky: #cfe4f2;
  --sky-deep: #7fb1d1;
  --leaf: #6b8e4e;
  --line: #ead9b8;
  --paper: #fffaf1;
  --hero-grad-a: #ffe9b8;
  --hero-grad-b: #ffd591;
  --hero-grad-c: #f5b14b;
  --hero-grad-d: #e08a3c;
  --hero-mountain-far: #547084;
  --hero-mountain-near: #2f4858;
  --hero-meadow: rgba(107,142,78,0.28);
  --sun-glow-1: rgba(255,236,176,0.95);
  --sun-glow-2: rgba(198,106,74,0.18);
  --sun-orb-a: #fff6d8;
  --sun-orb-b: #ffd591;
  --sun-orb-halo: rgba(255,236,176,0.6);
  --portrait-frame: #fffaf1;
  --portrait-shadow: 0 1px 2px rgba(47,72,88,0.1), 0 10px 24px rgba(47,72,88,0.15);
  --shadow: 0 1px 2px rgba(47, 72, 88, 0.06), 0 8px 24px rgba(47, 72, 88, 0.08);
  --shadow-card: 0 1px 2px rgba(47,72,88,0.05), 0 6px 16px rgba(47,72,88,0.06);
  --shadow-soft: 0 2px 12px rgba(224, 138, 60, 0.12);
  --btn-primary-bg: #2f4858;
  --btn-primary-fg: #fdf6e9;
  --pill-current-bg: rgba(245,177,75,0.22);
  --pill-current-fg: #8a5a1f;
  --pill-past-bg: rgba(84,112,132,0.13);
  --pill-past-fg: #547084;
  --bg-radial-1: rgba(245,177,75,0.18);
  --bg-radial-2: rgba(127,177,209,0.18);

  --max-w: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

/* ─── Dark mode: warm dusk, NOT a corporate slate dashboard ─────── */
:root[data-theme="dark"] {
  --bg: #1a1622;
  --bg-soft: #221c2e;
  --bg-tinted: #2b2336;
  --ink: #f5e6c8;
  --ink-soft: #c7b59a;
  --accent: #f0a06b;     /* warmer terracotta */
  --accent-2: #f5b14b;
  --sun: #ffc56b;
  --sky: #3d3550;
  --sky-deep: #4a3f5e;
  --leaf: #8aa56a;
  --line: rgba(245,230,200,0.12);
  --paper: #2a2236;
  /* hero: deep dusk sky bleeding into amber afterglow */
  --hero-grad-a: #5a3a48;
  --hero-grad-b: #784238;
  --hero-grad-c: #c97345;
  --hero-grad-d: #e89858;
  --hero-mountain-far: #2a2236;
  --hero-mountain-near: #18121e;
  --hero-meadow: rgba(35,28,46,0.55);
  --sun-glow-1: rgba(255,200,120,0.85);
  --sun-glow-2: rgba(120,66,56,0.35);
  --sun-orb-a: #ffe1a8;
  --sun-orb-b: #ffb55c;
  --sun-orb-halo: rgba(255,180,90,0.45);
  --portrait-frame: #2a2236;
  --portrait-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 28px rgba(0,0,0,0.5);
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 10px 28px rgba(0,0,0,0.4);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.35);
  --shadow-soft: 0 4px 16px rgba(245,177,75,0.18);
  --btn-primary-bg: #f0a06b;
  --btn-primary-fg: #1a1622;
  --pill-current-bg: rgba(255,197,107,0.18);
  --pill-current-fg: #ffc56b;
  --pill-past-bg: rgba(199,181,154,0.12);
  --pill-past-fg: #c7b59a;
  --bg-radial-1: rgba(245,177,75,0.10);
  --bg-radial-2: rgba(90,58,72,0.45);
}

/* Respect system preference if user hasn't toggled */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 20% -10%, var(--bg-radial-1), transparent 50%),
    radial-gradient(ellipse at 110% 10%, var(--bg-radial-2), transparent 50%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent-2); border-bottom-color: var(--sun); border-bottom-style: solid; }

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

/* ───── Layout ───── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ───── Header ───── */
.site-header {
  background: transparent;
  padding: 1.25rem 0 0.5rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
@media (max-width: 520px) {
  .site-header .container { gap: 0.5rem 0.75rem; }
  .brand { font-size: 1.15rem; }
  .brand .callsign { display: none; }
  .nav a { margin-left: 0; margin-right: 0.9rem; font-size: 0.9rem; }
  .nav a:last-of-type { margin-right: 0.5rem; }
  .theme-toggle { margin-left: 0.25rem; width: 32px; height: 32px; }
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { border-bottom: none; color: var(--ink); }
.brand .plane {
  display: inline-block;
  transform: rotate(-12deg);
  color: var(--accent-2);
  font-size: 1.2rem;
}
.brand .callsign {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-left: 0.25rem;
  text-transform: lowercase;
}
.nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.nav a {
  color: var(--ink-soft);
  margin-left: 1.5rem;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.15rem;
}
.nav a:hover, .nav a.active {
  color: var(--ink);
  border-bottom-color: var(--sun);
  border-bottom-style: solid;
}

.theme-toggle {
  margin-left: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .t-sun, .theme-toggle .t-moon { display: none; }
:root[data-theme="light"] .theme-toggle .t-moon { display: inline; }
:root[data-theme="dark"]  .theme-toggle .t-sun  { display: inline; }

/* ───── Hero ───── */
.hero {
  position: relative;
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

/* Photo-hero variant: replaces the synthetic gradient with a real image */
.hero--photo .hero-photo {
  position: absolute;
  inset: 1rem 1.5rem 0;
  border-radius: 18px;
  background-image: url("../img/hero-canyon.jpg");
  background-size: cover;
  background-position: center 55%;
  box-shadow: var(--shadow);
  z-index: 0;
}
.hero--photo .hero-tint {
  position: absolute;
  inset: 1rem 1.5rem 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(26,22,34,0.7) 0%, rgba(26,22,34,0.4) 45%, rgba(26,22,34,0.15) 75%);
  z-index: 1;
}
.hero--photo h1, .hero--photo .tagline { text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 2px 12px rgba(0,0,0,0.25); }
.hero--photo .container { z-index: 2; }
.hero--photo h1, .hero--photo .tagline, .hero--photo .meta { color: #fffaf1; }
.hero--photo h1 em { color: #ffd591; }
.hero--photo .tagline { color: rgba(255, 250, 241, 0.9); }
.hero--photo .meta {
  background: rgba(26,22,34,0.55);
  color: #fbe9c4;
  border: 1px solid rgba(255,213,145,0.3);
  backdrop-filter: blur(2px);
}
.hero--photo .btn-primary { background: #f0a06b; color: #1a1622; }
.hero--photo .btn-primary:hover { background: #ffd591; color: #1a1622; }
.hero--photo .btn-ghost {
  color: #fffaf1;
  border-color: rgba(255,250,241,0.7);
  background: rgba(26,22,34,0.35);
  backdrop-filter: blur(2px);
}
.hero--photo .btn-ghost:hover { background: #fffaf1; color: #1a1622; border-color: #fffaf1; }
/* When photo hero is in use, hide the synthetic decorations */
.hero--photo::before, .hero--photo::after,
.hero--photo .sun, .hero--photo .plane-ico, .hero--photo .mountains { display: none; }
@media (max-width: 520px) {
  .hero--photo .hero-photo, .hero--photo .hero-tint { left: 0.75rem; right: 0.75rem; border-radius: 14px; }
  .hero--photo .hero-photo { inset: 0.75rem 0.75rem 0; border-radius: 14px; }
  .hero--photo .hero-tint { inset: 0.75rem 0.75rem 0; border-radius: 14px; }
}
@media (max-width: 520px) {
  .hero { padding: 2rem 0 3rem; }
  .hero::before, .hero::after, .hero .mountains { left: 0.75rem; right: 0.75rem; border-radius: 14px; }
  .hero::before { inset: 0.75rem 0.75rem 0; border-radius: 14px; }
  .hero .container > * { max-width: 100%; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 1rem 1.5rem 0;
  border-radius: 18px;
  /* fall-back margin on tiny screens handled below */
  background:
    radial-gradient(circle at 82% 20%, var(--sun-glow-1), transparent 40%),
    radial-gradient(circle at 15% 80%, var(--sun-glow-2), transparent 45%),
    linear-gradient(160deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 40%, var(--hero-grad-c) 85%, var(--hero-grad-d) 100%);
  box-shadow: var(--shadow);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 0;
  height: 42%;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, var(--hero-meadow) 100%);
  z-index: 0;
  pointer-events: none;
}
/* Alpine silhouettes — separate element so we can swap fill per theme */
.hero .mountains {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 0;
  height: 42%;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, transparent 60%, transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0,140 L80,90 L160,120 L260,60 L360,110 L450,80 L560,130 L660,70 L770,120 L880,90 L990,130 L1100,80 L1200,120 L1200,200 L0,200 Z' fill='%23000000' opacity='0.001'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom;
}
.hero .mountains::before,
.hero .mountains::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 100%;
}
.hero .mountains::before {
  /* far range */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0,140 L80,90 L160,120 L260,60 L360,110 L450,80 L560,130 L660,70 L770,120 L880,90 L990,130 L1100,80 L1200,120 L1200,200 L0,200 Z' fill='currentColor' opacity='0.35'/></svg>");
  color: var(--hero-mountain-far);
}
.hero .mountains::after {
  /* near range */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0,160 L100,120 L210,150 L320,110 L430,140 L540,115 L660,150 L780,120 L900,150 L1020,130 L1140,155 L1200,140 L1200,200 L0,200 Z' fill='currentColor' opacity='0.6'/></svg>");
  color: var(--hero-mountain-near);
}

.hero .sun {
  position: absolute;
  right: 8%;
  top: 14%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-orb-a) 0%, var(--sun-orb-b) 55%, rgba(0,0,0,0) 72%);
  box-shadow: 0 0 80px 24px var(--sun-orb-halo);
  z-index: 0;
  pointer-events: none;
}
.hero .plane-ico {
  position: absolute;
  right: 22%;
  top: 36%;
  font-size: 1.8rem;
  transform: rotate(-16deg);
  opacity: 0.75;
  z-index: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
@media (max-width: 720px) {
  .hero .sun { right: 5%; top: 8%; width: 70px; height: 70px; }
  .hero .plane-ico { display: none; }
}

.hero .container { position: relative; z-index: 1; padding-top: 2rem; padding-bottom: 1rem; }
.hero .container > * { max-width: 640px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}
:root[data-theme="dark"] .hero .tagline { color: #e8d3a8; }
:root[data-theme="dark"] .hero h1 { color: #fbe9c4; }

.hero .meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.7);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}
:root[data-theme="dark"] .hero .meta {
  background: rgba(26,22,34,0.55);
  color: #fbe9c4;
  border: 1px solid rgba(245,177,75,0.25);
}
.hero .meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 25%, transparent);
}

.hero .ctas {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-bottom: none;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--btn-primary-fg);
  border-bottom: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-bottom-color: var(--ink); }
:root[data-theme="dark"] .btn-ghost {
  color: #fbe9c4;
  border-color: rgba(251,233,196,0.7);
  background: rgba(26,22,34,0.35);
  backdrop-filter: blur(2px);
}
:root[data-theme="dark"] .btn-ghost:hover { background: #fbe9c4; color: var(--bg); border-color: #fbe9c4; }

/* ───── Sections ───── */
section.block { padding: 3rem 0 2.5rem; }
section.block + section.block { border-top: 1px dashed var(--line); }
section.block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
section.block h2 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* ───── About / lead ───── */
.about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

.about .portrait {
  width: 100%;
  margin: 0;
  background: var(--portrait-frame);
  border-radius: 4px;
  box-shadow: var(--portrait-shadow);
  padding: 10px 10px 14px;
  transform: rotate(-2deg);
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  position: relative;
  min-height: 240px;
}
.about .portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  display: block;
}
/* Fallback when image fails to load: synthesize a sketch */
.about .portrait--fallback {
  aspect-ratio: 4 / 5;
  padding: 10px 10px 44px;
  min-height: 0;
}
.about .portrait--fallback::before {
  content: "";
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 44px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,246,216,0.95) 0%, rgba(255,219,140,0.6) 8%, transparent 18%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250' preserveAspectRatio='xMidYMid slice'><rect width='200' height='250' fill='%23cfe4f2'/><path d='M0,180 L40,150 L80,170 L120,140 L160,165 L200,145 L200,250 L0,250 Z' fill='%237fb1d1' opacity='0.7'/><path d='M0,210 L50,185 L100,205 L150,180 L200,200 L200,250 L0,250 Z' fill='%236b8e4e' opacity='0.8'/><g transform='translate(110,90) rotate(-12)' fill='%232f4858'><path d='M0 0 L36 -2 L42 0 L36 2 Z'/><path d='M14 0 L18 -10 L22 -10 L24 0 Z'/><path d='M14 0 L18 8 L22 8 L24 0 Z'/><path d='M34 0 L40 -5 L42 -5 L41 0 Z'/></g></svg>") center/cover no-repeat;
  border-radius: 2px;
}
.about .portrait figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.about p { margin: 0 0 1rem; font-size: 1.05rem; }
.about .highlight {
  display: inline-block;
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--sun) 45%, transparent) 60%);
  padding: 0 0.15rem;
}
:root[data-theme="dark"] .about .highlight {
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--sun) 35%, transparent) 60%);
  color: var(--ink);
}

/* ───── Credentials grid ───── */
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 820px) { .creds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .creds { grid-template-columns: 1fr; } }

.cred {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
}
.cred:nth-child(3) { transform: rotate(-0.7deg); }
.cred:nth-child(8) { transform: rotate(0.5deg); }
.cred:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow: var(--shadow-soft), 0 12px 24px rgba(47,72,88,0.1);
}
.cred .label {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.cred .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cred .note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ───── Stats (by the numbers) ───── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.2rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -16px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 35%, transparent), transparent 70%);
  pointer-events: none;
}
.stat .big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .big .unit {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.15rem;
}
.stat .lbl {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ───── Aircraft grid ───── */
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 820px) { .aircraft-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .aircraft-grid { grid-template-columns: 1fr; } }

.ac {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  box-shadow: var(--shadow-card);
  position: relative;
  padding-left: 1.6rem;
}
.ac::before {
  content: "✈";
  position: absolute;
  left: 0.7rem;
  top: 0.85rem;
  color: var(--accent);
  font-size: 0.85rem;
  transform: rotate(-20deg);
}
.ac .ac-type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ac .ac-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ───── Timeline (experience) ───── */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.75rem;
  border-left: 2px dashed var(--line);
  margin-left: 0.5rem;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent-2);
}
.timeline .role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.timeline .role .at { color: var(--accent); font-weight: 500; }
.timeline .when {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
.timeline .desc { margin: 0.5rem 0 0; color: var(--ink); }

/* ───── Blog post list ───── */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  align-items: baseline;
}
.post-list li:last-child { border-bottom: none; }
.post-list .date {
  font-size: 0.88rem;
  color: var(--accent);
  font-style: italic;
}
.post-list .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.35rem;
  border-bottom: none;
  letter-spacing: -0.01em;
}
.post-list .title:hover { color: var(--accent); }
.post-list .excerpt { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
@media (max-width: 560px) {
  .post-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ───── Article ───── */
.article {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 3rem auto;
}
.article header { margin-bottom: 2rem; }
.article h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.article .meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
}
.article p { font-size: 1.05rem; }
.article figure { margin: 2rem 0; }
.article figure img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.article figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ───── Contact list ───── */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.02rem;
}
.contact-list .contact-ico {
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
  flex: 0 0 1.4rem;
}
.contact-list .contact-note {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.92rem;
}

/* ───── Footer ───── */
.site-footer {
  background: transparent;
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}
.site-footer .ai-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* AI-disclosure block at end of blog posts */
.post-divider {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 2.5rem 0 1.25rem;
}
.post-disclosure {
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--sun) 8%, transparent);
  border-left: 3px solid var(--sun);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-disclosure em { color: var(--accent); font-style: italic; }
.site-footer a { color: var(--accent); }
.site-footer .small {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
