/* Shared styling for the MyFlightHelper site.
 *
 * Same palette and type as the app, so the Terms link in Settings does not
 * feel like it left the product. Dark-first for the same reason the app is:
 * this gets opened in a cockpit as often as at a desk.
 */

:root {
  --ground: #0b1014;
  --surface: #121a20;
  --surface-2: #19242c;
  --line: #25353f;
  --line-soft: #1b282f;
  --text: #dfe9ee;
  --text-2: #a7bac4;
  --muted: #778c98;
  --accent: #4fb3c9;
  --warn: #e8a33d;
  --vfr: #3fb950;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --ground: #eff3f4;
    --surface: #ffffff;
    --surface-2: #f2f6f7;
    --line: #cbd8dc;
    --line-soft: #dee7ea;
    --text: #0d1519;
    --text-2: #33474f;
    --muted: #5d717b;
    --accent: #12707f;
    --warn: #9a5b00;
    --vfr: #1a7f37;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text-2);
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

header {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand span { color: var(--accent); }

.eyebrow {
  display: block;
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}

h1 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0.35rem 0 0.5rem;
  text-wrap: balance;
}

h2 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.25rem 0 0.6rem;
}

h3 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
}

p, li { margin: 0 0 0.85rem; }
ul { padding-left: 1.15rem; }
li { margin-bottom: 0.5rem; }

strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); }

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

/* The one thing on the site that is meant to be pressed.
 *
 * Sized for a thumb rather than a cursor: the page gets opened on a phone at
 * least as often as at a desk, and a text link among paragraphs of text is
 * not something anyone finds in a hurry.
 */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ground);
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
}
.btn:hover, .btn:focus { filter: brightness(1.12); }

.notice {
  border-left: 3px solid var(--warn);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}
.notice.critical { border-left-color: #e5484d; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--warn); }
.notice.critical strong { color: #e5484d; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
th {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { margin-right: 1rem; }

.updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
