/* Brand tokens and type from the aeroadvantage.com site (dev/site/assets/css/main.css). */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ground:      #15181C;
  --ground-lift: #1a1d22;
  --surface:     #1f2228;
  --line:        #262A30;
  --text:        #c6c4bd;
  --muted:       #8A8E95;
  --text-hi:     #ECE9E2;
  --accent:      #6FB3CE;
  --accent-hot:  #8ac2d9;
  --danger:      #e08a7c;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-label:   "Sora", system-ui, sans-serif;

  --wrap: 1000px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; padding-block: clamp(2rem, 6vw, 4rem) 6rem; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

h1, h2 { font-family: var(--font-display); color: var(--text-hi); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 600; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.eyebrow, .section-label {
  font-family: var(--font-label); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.section-label { color: var(--muted); margin-bottom: 0.75rem; }
.eyebrow { margin-bottom: 0.5rem; display: block; }
.lede { margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.site-header .eyebrow { margin: 0; color: var(--muted); }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: -0.02em; color: var(--text-hi); text-decoration: none;
}
.wordmark--footer { font-size: 1.1rem; display: inline-block; margin-bottom: 0.4rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; background: var(--ground-lift); font-size: 0.9rem; }

/* cards and forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.card--narrow { max-width: 460px; margin-inline: auto; }
label { display: block; font-family: var(--font-label); font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
input[type=email], input[type=text], input[type=search] {
  width: 100%; padding: 0.8rem 0.9rem; margin-bottom: 1rem;
  background: var(--ground); color: var(--text-hi);
  border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.code-input { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; }
.aside { margin-top: 1.25rem; font-size: 0.9rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { color: var(--muted); text-decoration: none; cursor: default; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-label); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 0.85rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: transparent; color: var(--text-hi); white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn:hover { border-color: var(--accent); }
.btn--accent { background: var(--accent); color: var(--ground); border-color: transparent; }
.btn--accent:hover { background: var(--accent-hot); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--small { padding: 0.45rem 0.8rem; font-size: 0.72rem; }
.btn--ghost { border-color: transparent; color: var(--muted); }
.btn--big { padding: 1.1rem 2rem; font-size: 0.95rem; }

/* project */
.project-head { margin-bottom: 2rem; }
.everything {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 2.5rem;
}
.everything h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); margin-bottom: 0.35rem; }
.everything__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.everything__file { overflow-wrap: anywhere; }
.everything .bundle-list { margin-top: 1.25rem; }
.folders { margin-bottom: 2.5rem; }
.bundle-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.bundle {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.bundle__name { overflow-wrap: anywhere; color: var(--text-hi); }

.files-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.files-head .section-label { margin: 0; }
.filter { max-width: 280px; margin: 0 !important; padding: 0.55rem 0.8rem !important; }

.group { margin-top: 1.5rem; }
.group__head {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--line); font-family: var(--font-label); font-size: 0.85rem; color: var(--text-hi);
}
.group__head .muted { font-family: var(--font-body); }
.file-list { list-style: none; padding: 0; }
.file {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.9rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.file__name { min-width: 0; display: flex; flex-direction: column; }
.file__base { color: var(--text-hi); overflow-wrap: anywhere; }
.file__dir { font-size: 0.82rem; overflow-wrap: anywhere; }
.file__size { font-variant-numeric: tabular-nums; font-size: 0.9rem; }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
@media (max-width: 520px) {
  .file { grid-template-columns: auto 1fr auto; }
  .file__size { grid-column: 2; grid-row: 2; margin-top: -0.6rem; }
  .bundle { flex-direction: column; align-items: flex-start; }
  .everything .btn--big { width: 100%; }
}

.selbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.selbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.selbar__actions { display: flex; gap: 0.5rem; }

.status { margin-top: 1.5rem; text-align: center; min-height: 1.5em; }
.status--error { color: var(--danger); }

/* collapsible file groups */
.group__head label { display: contents; }
.group__toggle {
  flex: 1; display: flex; align-items: center; gap: 0.75rem; text-align: left;
  background: none; border: 0; padding: 0.25rem 0; font: inherit; color: inherit;
}
.group__toggle:hover .group__chevron { border-color: var(--accent); }
.group__chevron {
  width: 0.5rem; height: 0.5rem; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.18s var(--ease);
}
.group__toggle[aria-expanded="false"] .group__chevron { transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .group__chevron { transition: none; } }
