@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f7f6f2;
  --paper: #fff;
  --ink: #141413;
  --body: #4a4843;
  --muted: #6e6a63;
  --line: #dcd9d0;
  --green: #1b4332;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font: 1rem/1.65 Inter, system-ui, sans-serif;
}
a { color: var(--green); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.home-container { width: min(100%, 1140px); margin-inline: auto; padding-inline: clamp(20px, 4vw, 28px); }

.home-header { border-bottom: 1px solid var(--line); }
.home-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 6px 18px;
  padding-block: 10px;
}
.home-brand { color: var(--ink); font-size: .95rem; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.home-company { color: var(--muted); font: .72rem/1.4 var(--mono); }
.homepage { flex: 1; display: flex; flex-direction: column; }
.home-hero { padding-block: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
}
.home-hero h1, .pilot-directory h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.home-hero h1 { max-width: 22ch; font-size: clamp(2.8rem, 5.5vw, 4.6rem); line-height: 1.04; text-wrap: balance; }
.home-hero p { max-width: 52ch; margin: 16px 0 0; color: var(--body); font-size: 1.06rem; }
.home-hero-image { margin: 0; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.home-hero-image img { display: block; width: 100%; height: auto; }
.pilot-directory { flex: 1; padding-block: clamp(30px, 5vw, 62px); background: var(--paper); }
.pilot-directory h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.08; }
.pilot-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pilot-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.pilot-item:hover { background: var(--background); }
.pilot-item:hover .pilot-name { text-decoration: underline; }
.pilot-name { display: block; font-size: 1.12rem; font-weight: 650; }
.pilot-description { display: block; margin-top: 4px; color: var(--body); font-size: .94rem; line-height: 1.55; }
.pilot-arrow { color: var(--green); font: 1.25rem var(--mono); }

.home-footer { background: var(--ink); color: #d6d3cb; font-size: .9rem; }
.home-footer .footer, .home-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.home-footer .footer { justify-content: space-between; padding-block: 38px; }
.home-footer a { color: #a7f3d0; }
.home-footer :focus-visible { outline-color: #a7f3d0; }

@media (max-width: 760px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero-image { max-width: 420px; }
}

@media (max-width: 540px) {
  .home-header-inner { min-height: 61px; }
  .home-hero-image { padding: 5px; }
  .pilot-item { padding-inline: 4px; }
  .home-footer .footer { padding-block: 26px; }
}
