/* Hackproof Habits — local stylesheet only. No remote fonts or stylesheets.
   Colours from the brand kit (ink, paper, marigold, mist, slate).
   Inter (400, 800) and Atkinson Hyperlegible (400, 700) are self-hosted
   Latin subsets in /fonts/. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/Inter-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2");
}


:root {
  --ink: #10202B;
  --slate: #22384A;
  --paper: #F7F2E8;
  --marigold: #F4B53F;
  --mist: #A9B8C4;
  --line: rgba(247, 242, 232, 0.16);
  --font-sans: Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-legible: "Atkinson Hyperlegible", Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  color-scheme: dark;
  background: var(--ink);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--slate), transparent 55%),
    var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.frame {
  width: min(40rem, 100%);
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.brand-mark,
.wordmark {
  margin-bottom: 1.75rem;
}

.wordmark {
  font-size: 0;
  line-height: 0;
}

.lockup {
  display: block;
  width: min(20rem, 100%);
  height: auto;
  margin: 0 auto;
}

.lockup-404 {
  width: min(16rem, 100%);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--marigold);
  padding: 0.4rem 0.8rem;
  border-radius: 0.45rem;
  margin-bottom: 1.15rem;
}

.tagline {
  font-family: var(--font-legible);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--paper);
  max-width: 28rem;
}

.lede {
  font-family: var(--font-legible);
  font-weight: 400;
  margin: 1.5rem auto 0;
  max-width: 32rem;
  color: var(--mist);
}

a {
  color: var(--marigold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
