/* Fonts: Bricolage Grotesque and Instrument Sans, SIL Open Font License 1.1 (/assets/fonts/*-OFL.txt). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque_800ExtraBold.1b388794a6.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque_700Bold.a737b146fe.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans_400Regular.a22cb26e48.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans_400Regular_Italic.78e85858e3.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans_600SemiBold.cb2231708f.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*
 * mighttraining.com. The @font-face rules above this line are written by
 * build.mjs (the font URLs carry a content hash). Colors are the app's own
 * tokens from src/design/tokens.ts (violet theme). Contrast on --base:
 * text 17.7:1, mute 5.9:1, select 10.7:1. `dim` (3.7:1) and `deep` (4.1:1)
 * fail AA for text, so neither is used for words.
 */

:root {
  --base: #0b0a11;
  --card: #16151f;
  --card-raised: #1c1a28;
  --text: #f4f2f8;
  --mute: #8e8aa6;
  --hairline: rgba(244, 242, 248, 0.09);
  --select: #c4b5fd;
  --light: #a78bfa;
  --mid: #9c82fa;
  --deep: #6c5ce7;
  --glow: #7c64f0;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* About 68 characters a line of body text. Not `68ch`: Instrument Sans has a
     wide zero, so its ch is 0.67em and 68ch ran to about 90 characters. */
  --measure: 32em;
  --gutter: 20px;
}

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

html {
  color-scheme: dark;
  background: var(--base);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--base);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--select);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── header (every page but home) ─────────────────────────────────────── */

.site-header {
  padding-top: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--select);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 22%;
}

/* ── long text: privacy, terms, support, 404 ──────────────────────────── */

.prose {
  padding-top: 40px;
}

.prose h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.prose h2 {
  margin: 2.2em 0 0.45em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose p {
  margin: 0 0 1em;
}

.prose .meta {
  margin-bottom: 8px;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.55;
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--card-raised);
  font-family: var(--mono);
  font-size: 0.85em;
  font-style: normal;
}

.contact {
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
}

.contact .label {
  margin: 0 0 4px;
  color: var(--mute);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact a {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.125rem, 0.9rem + 1.2vw, 1.375rem);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 72px;
  padding-bottom: 36px;
  color: var(--mute);
  font-size: 0.9375rem;
}

.site-footer nav {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--select);
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .copyright {
  margin: 6px 0 0;
}

/* ── home ─────────────────────────────────────────────────────────────── */

.page-home {
  background:
    radial-gradient(56% 42% at 50% 34%, rgba(124, 100, 240, 0.16), rgba(124, 100, 240, 0) 72%),
    var(--base);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px var(--gutter) 24px;
  text-align: center;
}

.app-icon {
  width: 148px;
  height: 148px;
  border-radius: 22%;
  box-shadow:
    0 0 0 1px rgba(244, 242, 248, 0.07),
    0 28px 64px -18px rgba(108, 92, 231, 0.55);
}

.wordmark {
  margin: 30px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.25rem, 2.6rem + 3vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tagline {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Two sentences that may each wrap onto their own line at phone width, the
   lock staying with the first. */
.promise {
  margin: 16px 0 0;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.5;
}

.promise span {
  white-space: nowrap;
}

.promise svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -0.1em;
}

.page-home .site-footer {
  margin-top: 40px;
  text-align: center;
}

.page-home .site-footer nav {
  border-top: 0;
}

.page-home .site-footer ul {
  justify-content: center;
}
