/* ==================================================================
   Swansboro Aviation — design tokens + site styles
   ================================================================== */

:root {
  /* Surfaces */
  --bg: #f6f8fa;
  --surface: #ffffff;
  --navy: #0d1b2a;
  --navy-deep: #0a1420;

  /* Brand blue */
  --blue: #2e6fb7;
  --blue-hover: #275f9e;
  --blue-link-hover: #1f5490;
  --link-on-dark: #9fc1e4;

  /* Ink (text on light) */
  --ink: #16232f;
  --ink-strong: #0d1b2a;
  --ink-body: #3d4e5e;
  --ink-nav: #46586a;

  /* Paper (text on dark) */
  --paper: #f2f6f9;
  --paper-2: #e6ecf1;
  --paper-dim: rgba(226, 234, 240, 0.75);
  --paper-dim-2: rgba(226, 234, 240, 0.6);
  --paper-faint: rgba(226, 234, 240, 0.4);
  --mono-dim: rgba(158, 178, 195, 0.85);
  --mono-dim-2: rgba(158, 178, 195, 0.65);
  --mono-dim-3: rgba(158, 178, 195, 0.5);

  /* Hairlines & ticks */
  --line-1: rgba(13, 27, 42, 0.08);
  --line-2: rgba(13, 27, 42, 0.1);
  --line-3: rgba(13, 27, 42, 0.12);
  --line-dark-1: rgba(168, 186, 201, 0.12);
  --line-dark-2: rgba(168, 186, 201, 0.14);
  --line-dark-4: rgba(168, 186, 201, 0.25);
  --tick-light: rgba(188, 203, 216, 0.9);

  /* Typography */
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-logo: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ls-label: 3px;
  --ls-nav: 2px;
  --fs-h1-hero: clamp(28px, 5vw, 42px);
  --fs-h2: clamp(26px, 4vw, 36px);

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --nav-h: 78px;
  --section-pad: 92px;
  --section-pad-sm: 72px;

  /* Motion */
  --ease-hero: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s;
  --t-med: 0.3s;
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-pad: 64px;
    --section-pad-sm: 52px;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(46, 111, 183, 0.22);
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-link-hover);
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

/* ----- Logo -------------------------------------------------------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  color: var(--ink-strong);
  line-height: 1;
  user-select: none;
}

.logo-word {
  display: flex;
  justify-content: space-between;
  width: 11.25em;
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-rule {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.85;
}

/* ----- Corner ticks ------------------------------------------------ */
.ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
  --tick-color: var(--tick-light);
}

.tick {
  position: absolute;
  width: 11px;
  height: 11px;
}
.tick::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  width: 1px;
  height: 11px;
  background: var(--tick-color);
}
.tick::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
  background: var(--tick-color);
}

.tick-tl { top: -7px; left: -7px; }
.tick-tr { top: -7px; right: -7px; }
.tick-bl { bottom: -7px; left: -7px; }
.tick-br { bottom: -7px; right: -7px; }

/* ----- Section label ----------------------------------------------- */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-label);
  margin-bottom: 18px;
  color: var(--blue);
}

.section-label--dim {
  color: var(--mono-dim);
  margin-bottom: 16px;
}

/* ----- Nav --------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-nav);
  color: var(--ink-nav);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--ink-strong);
}

.burger {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-3);
  cursor: pointer;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-strong);
  transition:
    transform var(--t-med) ease,
    opacity var(--t-fast) ease;
}

.burger.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 var(--gutter);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-hero), padding 0.35s var(--ease-hero);
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav-panel {
    display: flex;
  }
  .nav-panel.is-open {
    max-height: 320px;
    padding: 12px var(--gutter) 20px;
    border-top: 1px solid var(--line-2);
  }
  .nav-panel .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-1);
    font-size: 13px;
  }
}

/* ----- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  height: 620px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.12) 35%,
    rgba(13, 27, 42, 0.45) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

.hero-container {
  padding-bottom: 48px;
}

.hero-card {
  pointer-events: auto;
  position: relative;
  display: inline-block;
  max-width: 620px;
  padding: 36px 40px;
  background: linear-gradient(
    160deg,
    rgba(210, 224, 234, 0.14) 0%,
    rgba(15, 20, 26, 0.55) 40%,
    rgba(15, 20, 26, 0.65) 100%
  );
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line-dark-4);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-label);
  color: var(--mono-dim);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: var(--fs-h1-hero);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: var(--paper);
}

.hero-body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(226, 234, 240, 0.85);
}

/* ----- Shared section layout --------------------------------------- */
.section-inner {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-inner--sm {
  padding-top: var(--section-pad-sm);
  padding-bottom: var(--section-pad-sm);
}

/* Centered reading column — balanced space on both sides */
.measure {
  max-width: 40rem;
  margin-inline: auto;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prose p,
p.prose {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-body);
}

.h2 {
  margin: 0 0 28px;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--ink-strong);
}

/* ----- About ------------------------------------------------------- */
.about {
  background: var(--surface);
}

/* ----- Rent payment ------------------------------------------------ */
.rent {
  background: var(--bg);
  border-top: 1px solid var(--line-1);
}

/* ----- Contact ----------------------------------------------------- */
.contact {
  background: var(--navy);
  scroll-margin-top: var(--nav-h);
}

.contact-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--paper);
}

.contact-body {
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--paper-dim);
}

.email-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.8vw, 22px);
  letter-spacing: 0.5px;
  color: var(--paper);
  border-bottom: 1px solid rgba(159, 193, 228, 0.45);
  padding-bottom: 4px;
  transition:
    color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.email-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* ----- Footer ------------------------------------------------------ */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line-dark-2);
}

.footer-inner {
  padding-top: 64px;
  padding-bottom: 28px;
}

.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 40px;
  align-items: start;
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--paper-2);
  margin-bottom: 8px;
}

.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  color: var(--mono-dim-2);
  margin-bottom: 18px;
}

.footer-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper-dim-2);
  max-width: 28ch;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  color: var(--mono-dim-2);
  margin-bottom: 16px;
}

.footer-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.footer-link {
  color: var(--link-on-dark);
}
.footer-link:hover {
  color: #ffffff;
}

.footer-mail {
  color: var(--paper-dim-2);
}

.footer-legal {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark-1);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal-text {
  font-size: 12px;
  color: var(--paper-faint);
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-nav);
  color: var(--mono-dim-3);
}

@media (max-width: 799px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ----- 404 page ---------------------------------------------------- */
.not-found {
  min-height: calc(100vh - var(--nav-h) - 280px);
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
}

.not-found-inner {
  max-width: 520px;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: var(--ls-label);
  color: var(--blue);
  margin-bottom: 16px;
}

.not-found-title {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink-strong);
}

.not-found-body {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-body);
}

.not-found-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--ls-nav);
  color: var(--blue);
  border-bottom: 1px solid rgba(46, 111, 183, 0.35);
  padding-bottom: 2px;
}
.not-found-link:hover {
  color: var(--blue-link-hover);
}

/* ----- Responsive hero --------------------------------------------- */
@media (max-width: 899px) {
  .hero {
    height: 520px;
  }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: 480px;
  }

  .hero-container {
    padding-top: 200px;
    padding-bottom: 28px;
  }

  .hero-card {
    display: block;
    max-width: none;
    padding: 26px 22px;
  }
}
