/* everythingsfine.io teaser. No inline styles anywhere: the CSP allows style-src 'self' only. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.8909904ab6.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-500-normal.f3779f1efc.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-700-normal.6f56409fd3.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-800-normal.a7d0a50f15.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.14425ba9c6.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.cb182feeed.woff2) format("woff2");
}

:root {
  --bg: #1d1e21;
  --text: #e8e8e5;
  --heading: #f6f6f3;
  --accent: #ff914d;
  --body: #c4c6cb;
  --muted: #9a9ea6;
  --link: #ffa86a;
  --link-hover: #ffc593;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 32px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover,
a:focus-visible {
  color: var(--link-hover);
}
a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

code,
kbd,
pre,
samp {
  font-family: var(--mono);
}

.teaser {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.sticker {
  display: block;
  width: min(518px, 100%);
  height: auto;
  margin: 0 auto 40px;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--heading);
  text-wrap: balance;
}
h1 .fine,
h1 .fix {
  display: block;
}
h1 .fix {
  color: var(--accent);
}

.lede {
  max-width: 34em;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* Acknowledgements and other text pages. */
.prose {
  flex: 1 0 auto;
  width: 100%;
  max-width: 40em;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
}
.prose h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
}
.prose p {
  margin: 0 0 12px;
}
.prose strong {
  font-weight: 500;
  color: var(--text);
}

/* The footer always renders, so the browser always fetches this pixel: the
   Worker counts it as a "seen" view, which scanners that skip CSS never send. */
.footer {
  margin-top: 64px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  background: url(/_seen.gif) no-repeat 0 0 / 1px 1px;
}
.footer p {
  margin: 0;
}

@media (max-width: 480px) {
  body {
    padding: 32px 20px 24px;
  }
  .sticker {
    margin-bottom: 32px;
  }
  .footer .sep {
    display: none;
  }
  .footer .copy,
  .footer .ack {
    display: block;
    margin-top: 4px;
  }
}
