/* My Empower's holding page (site/index.html) and its 404 page. System fonts, nothing loaded from elsewhere. */
:root {
  --bg: #f7f5f0;
  --ink: #16181d;
  --muted: #5b616b;
  --line: rgba(22, 24, 29, 0.07);
  --accent: #c8440f;
  --on-accent: #fff;
  --gutter: clamp(24px, 6vw, 72px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --ink: #eeebe5;
    --muted: #9aa0a9;
    --line: rgba(238, 235, 229, 0.06);
    --accent: #f07a3e;
    --on-accent: #101216;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* A faint dot grid, the only decoration */
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.mark {
  width: clamp(48px, 9vw, 64px);
  height: auto;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.mark rect {
  fill: var(--accent);
}

.mark path {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 6rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
}

.lede {
  margin: clamp(16px, 2.5vw, 24px) 0 0;
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

footer {
  padding-top: 24px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}
