/* fmode.dev
 *
 * One stylesheet, no build step, no external requests. Everything here loads
 * from this origin — no Google Fonts, no CDN, no analytics — for the same
 * reason the app makes no network calls: the privacy policy says nothing is
 * collected, and a third-party font request is a third party learning who
 * visited the page. The claim has to be true of the website too.
 */

:root {
  --bg: #0a0b0e;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.10);
  --ink: #f2f4f7;
  --dim: rgba(242, 244, 247, 0.62);
  --faint: rgba(242, 244, 247, 0.42);
  --mint: #4fd8a8;
  --cyan: #5ec8f0;
  --amber: #f0b45e;
  --radius: 14px;
  --wide: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  padding: 0 22px 90px;
}

.wrap { max-width: var(--wide); margin: 0 auto; }

/* Header ------------------------------------------------------------------ */

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 0 34px;
  flex-wrap: wrap;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #06070a;
  font-weight: 800;
  font-size: 19px;
  display: grid;
  place-items: center;
  flex: none;
}

.wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  text-decoration: none;
  color: var(--ink);
}

nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Type -------------------------------------------------------------------- */

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.9px;
  margin: 0 0 14px;
  font-weight: 800;
}

h2 {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mint);
  margin: 42px 0 12px;
  font-weight: 800;
}

h3 {
  font-size: 17px;
  margin: 26px 0 6px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

p { margin: 0 0 15px; color: var(--dim); }

.lede { font-size: 18px; color: var(--ink); }

a { color: var(--cyan); }

strong { color: var(--ink); font-weight: 650; }

ul { color: var(--dim); padding-left: 20px; margin: 0 0 15px; }

li { margin-bottom: 7px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--panel);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--ink);
}

/* Blocks ------------------------------------------------------------------ */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 14px;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(79, 216, 168, 0.35);
  background: rgba(79, 216, 168, 0.08);
  border-radius: 100px;
  padding: 4px 11px;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 14px;
}

.updated {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 26px;
}

/* Footer ------------------------------------------------------------------ */

footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--ink); }

footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* Light mode. Somebody will open this on a phone in the sun. */

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --panel: rgba(10, 11, 14, 0.035);
    --line: rgba(10, 11, 14, 0.12);
    --ink: #0d0f13;
    --dim: rgba(13, 15, 19, 0.68);
    --faint: rgba(13, 15, 19, 0.48);
    --mint: #0d8f63;
    --cyan: #0d6f96;
  }
  .mark { color: #ffffff; }
}
