/*
 * faish.app. The app's own look: its dark palette, Archivo in the app's faces (OFL 1.1, served
 * from here so no visitor is sent to a font host), the wordmark lockup, and a chart's graduated
 * rule under each heading. Paths are relative so the pages work from any host and from a folder.
 */

@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo Black'; src: url('fonts/Archivo-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Archivo Expanded'; src: url('fonts/ArchivoExpanded-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Archivo SemiCondensed'; src: url('fonts/ArchivoSemiCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --abyss: #0A0614;
  --hull: #120B22;
  --card: #18102E;
  --rule: #2E2150;
  --rule-soft: #221844;
  --buff: #E9E1DA;
  --dim: #9A8FB0;
  --faint: #8A7EA3;
  --cyan: #2BE3CE;
  --magenta: #FF3D9A;
  --caution: #FFA51F;
  --body: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Archivo Expanded', 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --figure: 'Archivo SemiCondensed', 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--buff);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 28px; } }

a { color: var(--cyan); text-underline-offset: .18em; }
a:hover { color: var(--buff); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

/* ---------- masthead ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0 18px; border-bottom: 1px solid var(--rule-soft);
}
.top nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--buff); }

/* The lockup, exact: cyan "ai" over a flat magenta rule .06em below the baseline. */
.wm {
  font-family: 'Archivo Black', var(--body); font-weight: 900; font-size: 30px; line-height: 1;
  letter-spacing: -.035em; color: var(--buff); text-decoration: none;
}
.wm .ai {
  color: #2BE3CE; display: inline-block; padding-bottom: .08em;
  text-decoration: underline; text-decoration-color: #FF3D9A;
  text-decoration-thickness: .1em; text-underline-offset: .03em; text-decoration-skip-ink: none;
}
a.wm:hover { color: var(--buff); }

/* ---------- type ---------- */
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 7vw, 50px);
  line-height: 1.06; letter-spacing: -.02em;
}
h2 { font-size: 22px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-top: 26px; }
p { margin: 0; }
.prose { display: flex; flex-direction: column; gap: 14px; color: var(--dim); max-width: 65ch; }
.prose strong { color: var(--buff); font-weight: 600; }
.prose h2, .prose h3 { color: var(--buff); }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--faint); }

/* The chart's graduated border under a heading: a neatline and divisions of 10 px, cut at the edge. */
.scale {
  height: 6px; margin: 10px 0 20px;
  border-top: 1px solid var(--rule);
  background: repeating-linear-gradient(90deg, var(--rule) 0 10px, transparent 10px 20px) top / 100% 3px no-repeat;
}

section { padding: 40px 0; border-bottom: 1px solid var(--rule-soft); }
section:last-of-type { border-bottom: none; }

/* ---------- home ---------- */
.hero { padding: 48px 0 40px; }
.arc { width: 96px; height: auto; display: block; margin-bottom: 18px; }
.lede {
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 4.4vw, 28px);
  line-height: 1.2; color: var(--cyan); margin: 10px 0 22px;
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); color: var(--dim); }
.facts li:first-child { padding-top: 0; }
.facts li:last-child { border-bottom: none; }
.facts li strong { color: var(--buff); font-weight: 600; display: block; }
.figure { font-family: var(--figure); font-weight: 700; color: var(--buff); font-variant-numeric: tabular-nums; }

.button {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--cyan); color: var(--abyss); font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--buff); color: var(--abyss); }

.emergency {
  border-left: 3px solid var(--caution); padding: 4px 0 4px 16px; color: var(--buff);
}

/* ---------- documents ---------- */
.doc { padding: 40px 0 8px; }
.updated { color: var(--faint); font-size: 15px; margin-top: 10px; }
.doc h2 { margin-top: 36px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--rule-soft); margin-top: 24px; padding: 26px 0 48px;
  color: var(--faint); font-size: 14px; line-height: 1.6;
}
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; font-weight: 600; }
footer nav a { color: var(--dim); }
