/* aviator-7k.net - the single stylesheet of this host.
   Written for this domain alone. Nothing below is shared with another site in the
   network: the token names, the scale, the spacing rhythm and the selector shapes
   belong to this domain only.

   The palette is the loudest-contrast one in the set: ink on paper, one orange
   accent, body text at roughly 15:1. Everything carrying a figure is set in a
   tabular face so digits line up when they stack.

   Every class here starts with frq-, which tools/verify_profile.py checks against
   the profile in site.config.ts. */

:root {
  --frq-paper: #fffdf8;
  --frq-card: #ffffff;
  --frq-ink: #15120c;
  --frq-ink-soft: #413a2c;
  --frq-rule: #d8cfb8;
  --frq-rule-hard: #15120c;
  --frq-flag: #c23a00;
  --frq-flag-ink: #ffffff;
  --frq-mark: #fff2cc;
  --frq-shade: #f4efe1;
  --frq-step: 1.6rem;
  --frq-wide: 62rem;
  --frq-face: "Segoe UI", "Noto Sans", system-ui, -apple-system, Arial, sans-serif;
  --frq-digits: "SFMono-Regular", "Consolas", "DejaVu Sans Mono", monospace;
}

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

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

body.frq-page {
  margin: 0;
  background: var(--frq-paper);
  color: var(--frq-ink);
  font: 400 1.0625rem/1.65 var(--frq-face);
  overflow-wrap: break-word;
}

.frq-page a { color: #8f2a00; text-underline-offset: 0.18em; }
.frq-page a:hover { color: #15120c; }
.frq-page a:focus-visible,
.frq-page button:focus-visible { outline: 3px solid var(--frq-flag); outline-offset: 2px; }

.frq-top {
  border-bottom: 4px solid var(--frq-rule-hard);
  background: var(--frq-card);
  padding: var(--frq-step) 1.25rem 1.1rem;
}

.frq-top-in {
  max-width: var(--frq-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.frq-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.frq-mark span:first-child { font-size: 1.25rem; color: var(--frq-ink); }
.frq-mark span:last-child {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--frq-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* The operator control: first link in the document, above <main>. That position
   is a conversion decision and the build checks it. */
.frq-act {
  display: block;
  text-decoration: none;
  background: var(--frq-flag);
  color: var(--frq-flag-ink);
  border: 3px solid var(--frq-rule-hard);
  box-shadow: 6px 6px 0 var(--frq-rule-hard);
  padding: 1rem 1.15rem;
}
.frq-act:hover, .frq-act:focus-visible { background: #a63000; color: #fff; }
.frq-act span { display: block; }
.frq-act-lead { font-size: 1.22rem; font-weight: 700; line-height: 1.25; }
.frq-act-why { font-size: 0.95rem; margin-top: 0.3rem; }
.frq-act-age {
  font-size: 0.78rem;
  margin-top: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.frq-ways {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  font-size: 0.93rem;
}
.frq-ways a, .frq-ways span {
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--frq-rule);
  text-decoration: none;
  color: var(--frq-ink-soft);
}
.frq-ways a:hover { border-color: var(--frq-rule-hard); color: var(--frq-ink); }
.frq-ways span {
  border-color: var(--frq-rule-hard);
  background: var(--frq-mark);
  color: var(--frq-ink);
  font-weight: 600;
}

.frq-trail { font-size: 0.82rem; color: var(--frq-ink-soft); }
.frq-trail a { color: inherit; }
.frq-trail span + span::before,
.frq-trail a + span::before { content: "/"; margin: 0 0.4rem; color: var(--frq-rule); }

.frq-body { max-width: var(--frq-wide); margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }

.frq-lede h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.6rem);
  line-height: 1.14;
  margin: 0 0 0.8rem;
  letter-spacing: -0.015em;
}
.frq-kick { font-size: 1.14rem; margin: 0 0 1.1rem; }

.frq-note {
  border-left: 8px solid var(--frq-flag);
  background: var(--frq-shade);
  padding: 0.9rem 1rem;
  margin: 0 0 1.4rem;
  font-size: 1rem;
}

.frq-block { margin: 2.4rem 0 0; }
.frq-block h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.68rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--frq-rule);
}
.frq-block h3 { font-size: 1.08rem; margin: 1.5rem 0 0.4rem; }
.frq-block p { margin: 0 0 0.9rem; }

.frq-pull {
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--frq-mark);
  border: 2px solid var(--frq-rule-hard);
  padding: 0.85rem 1rem;
  margin: 1.2rem 0;
}

.frq-num { font-family: var(--frq-digits); font-variant-numeric: tabular-nums; }

/* Repeating fact items. The profile sets listContainer to article on this domain,
   and with no ul or ol available an item with a name and a sentence is closer to a
   very small article than to anything else. */
.frq-fact {
  border-top: 1px solid var(--frq-rule);
  padding-top: 0.5rem;
  margin-top: 0.9rem;
}
.frq-fact h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.frq-fact p { margin: 0; }

.frq-sheet { margin: 1.3rem 0 1.5rem; overflow-x: auto; }
.frq-sheet table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.frq-sheet caption {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--frq-ink-soft);
  padding-bottom: 0.45rem;
}
.frq-sheet th, .frq-sheet td {
  border: 1px solid var(--frq-rule);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.frq-sheet thead th { background: var(--frq-shade); }
.frq-sheet th[scope="row"] { background: var(--frq-card); font-weight: 600; width: 34%; }

.frq-ask { margin-top: 2.6rem; }
.frq-ask h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.68rem);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--frq-rule);
}
.frq-ask h3 { font-size: 1.04rem; margin: 1.25rem 0 0.35rem; }
.frq-ask p { margin: 0; }

.frq-onward { margin-top: 2.6rem; border-top: 4px solid var(--frq-rule-hard); padding-top: 1rem; }
.frq-onward h2 { font-size: 1.16rem; margin: 0 0 0.5rem; }
.frq-onward p { margin: 0; }

.frq-foot {
  border-top: 4px solid var(--frq-rule-hard);
  background: var(--frq-shade);
  padding: 2rem 1.25rem 2.4rem;
  font-size: 0.93rem;
}
.frq-foot-in { max-width: var(--frq-wide); margin: 0 auto; }
.frq-foot p { margin: 0 0 0.8rem; }
.frq-age-line { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.frq-feet { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; margin: 1rem 0 0.9rem; }
.frq-feet a { color: var(--frq-ink-soft); }
.frq-feet span { font-weight: 600; }
.frq-sign { font-weight: 700; }

/* Without the open attribute a dialog is display:none, so the markup costs
   nothing before the first click and shifts nothing on the page. */
.frq-gate {
  max-width: 34rem;
  border: 3px solid var(--frq-rule-hard);
  box-shadow: 10px 10px 0 var(--frq-flag);
  background: var(--frq-card);
  color: var(--frq-ink);
  padding: 1.4rem;
}
.frq-gate::backdrop { background: rgba(21, 18, 12, 0.72); }
.frq-gate h2 { font-size: 1.22rem; margin: 0 0 0.7rem; line-height: 1.25; }
.frq-gate p { margin: 0 0 0.9rem; font-size: 0.98rem; }
.frq-gate-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.frq-gate-row button {
  font: inherit;
  cursor: pointer;
  padding: 0.65rem 1rem;
  border: 3px solid var(--frq-rule-hard);
  background: var(--frq-card);
  color: var(--frq-ink);
}
.frq-gate-yes { background: var(--frq-flag); color: var(--frq-flag-ink); font-weight: 700; }

/* The second panel. No does not close the window: it swaps the question for a
   line about where help is, and the whole state is one attribute and two rules. */
.frq-gate-held { display: none; }
.frq-gate[data-frq-held] .frq-gate-ask { display: none; }
.frq-gate[data-frq-held] .frq-gate-held { display: block; }

@media (min-width: 46rem) {
  .frq-top-in { display: grid; grid-template-columns: 1fr minmax(18rem, 24rem); align-items: start; }
  .frq-mark { grid-column: 1; }
  .frq-act { grid-column: 2; grid-row: 1 / span 2; }
  .frq-ways { grid-column: 1; }
  .frq-trail { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .frq-act { transition: background-color 120ms linear; }
}

@media print {
  .frq-act, .frq-ways, .frq-gate { display: none; }
}
