/*
 * Avitail — public site. The app's "Flight Deck" dark palette, transcribed by hand from
 * src/theme/colors.ts (dark column) + tailwind.config.js. Deliberately a COPY, not an import: this
 * site has no build step and no dependencies, so it can never break the app's CI or need a security
 * update. If the palette is ever retuned, retune these six custom properties with it.
 *
 * No webfonts, no analytics, no third-party requests of any kind — a privacy policy served from a
 * page that phones out to a font CDN is not one. Everything here is first-party or a system font.
 */

:root {
  --ground: #0f141a;
  --surface: #161d26;
  --raised: #1e2832;
  --ink: #e6ecf2;
  --muted: #8a97a6;
  --hairline: #26303b;
  --brand: #9fbbd4;
  --accent: #46b4c8;

  --measure: 44rem;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- chrome ---------------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lockup svg {
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 4.5rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

/* ---- type ------------------------------------------------------------------------------------ */

h1,
h2,
h3 {
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
}

h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 2rem;
  color: var(--brand);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 34rem;
}

.muted {
  color: var(--muted);
}

ul {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--muted);
}

dt {
  color: var(--brand);
  font-weight: 600;
  margin-top: 1.25rem;
}

dd {
  margin: 0.25rem 0 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--brand);
}

/* ---- blocks ---------------------------------------------------------------------------------- */

.hero {
  padding: 4.5rem 0 1rem;
}

.pill {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.cards > div {
  background: var(--surface);
  padding: 1.25rem;
}

.cards h3 {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1rem;
}

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.doc {
  padding-top: 3rem;
}

.doc h2 {
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.contact {
  font-size: 1.15rem;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 30rem) {
  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .hero {
    padding-top: 3rem;
  }
}
