/* @hackclub/tokens — generated, do not edit */
:root {
  --hc-red: #ec3750;
  --hc-orange: #ff8c37;
  --hc-yellow: #f1c40f;
  --hc-green: #33d6a6;
  --hc-cyan: #5bc0de;
  --hc-blue: #338eda;
  --hc-purple: #a633d6;
  --hc-gray: #8492a6;
  --hc-ink: #17171d;
  --hc-ink2: #2e1719;
  --hc-paper: #ffffff;
  --hc-cream: #fff6eb;
  --hc-black: #000000;
  --hc-red-dark: #be1e3a;
  --hc-red-light: #ff5c72;
  --hc-font-sans: "Phantom Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hc-font-display: Zarathustra, "Iowan Old Style", Georgia, serif;
  --hc-font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --hc-weight-thin: 100;
  --hc-weight-light: 300;
  --hc-weight-book: 350;
  --hc-weight-regular: 400;
  --hc-weight-medium: 500;
  --hc-weight-semibold: 600;
  --hc-weight-bold: 700;
  --hc-text-xs: 0.8rem;
  --hc-text-sm: 1rem;
  --hc-text-md: 1.125rem;
  --hc-text-body: 1.25rem;
  --hc-text-lg: 1.5rem;
  --hc-text-xl: 2rem;
  --hc-text-heading: 2.5rem;
  --hc-text-title: clamp(2.2rem, 4vw, 3.4rem);
  --hc-text-display: clamp(3.25rem, 12vw, 5.625rem);
  --hc-leading-display: 0.92;
  --hc-leading-heading: 1;
  --hc-leading-snug: 1.2;
  --hc-leading-normal: 1.5;
  --hc-leading-prose: 1.7;
  --hc-tracking-display: -0.02em;
  --hc-tracking-normal: 0;
  --hc-tracking-kicker: 0.26em;
  --hc-space-0: 0;
  --hc-space-1: 4px;
  --hc-space-2: 8px;
  --hc-space-3: 12px;
  --hc-space-4: 16px;
  --hc-space-5: 20px;
  --hc-space-6: 24px;
  --hc-space-8: 32px;
  --hc-space-10: 40px;
  --hc-space-12: 48px;
  --hc-space-16: 64px;
  --hc-space-20: 80px;
  --hc-space-32: 128px;
  --hc-radius-sm: 6px;
  --hc-radius-md: 8px;
  --hc-radius-photo: 10px;
  --hc-radius-lg: 12px;
  --hc-radius-card: 16px;
  --hc-radius-xl: 24px;
  --hc-radius-2xl: 28px;
  --hc-radius-pill: 9999px;
  --hc-shadow-card: 0 2px 16px rgba(0, 0, 0, 0.1);
  --hc-shadow-raised: 0 20px 50px rgba(91, 52, 18, 0.08);
  --hc-shadow-photo: 0 4px 20px rgba(0, 0, 0, 0.18);
  --hc-shadow-pill: 0 10px 28px rgba(23, 23, 29, 0.08);
  --hc-shadow-glow: 0 5px 16px rgba(236, 55, 80, 0.4);
  --hc-shadow-offset: 2px 2px 0 #000;
  --hc-shadow-sticker: 0 2px 4px rgba(0, 0, 0, 0.12);
  --hc-shadow-sticker-hover: 0 8px 16px rgba(0, 0, 0, 0.28);
  --hc-shadow-focus: 0 0 0 3px rgba(236, 55, 80, 0.25);
  --hc-gradient-brand: linear-gradient(90deg, #ec3750 0%, #ff8c37 100%);
  --hc-gradient-brand-deep: linear-gradient(90deg, #b3203d 0%, #d96b1d 100%);
  --hc-gradient-rainbow: repeating-linear-gradient(105deg, #ec3750 0%, #ff8c37 16%, #f1c40f 32%, #33d6a6 48%, #338eda 64%, #a633d6 80%, #ec3750 100%);
  --hc-gradient-ink: linear-gradient(135deg, #17171d 0%, #2e1719 45%, #ec3750 100%);
  --hc-gradient-red-wash: linear-gradient(180deg, rgba(236, 55, 80, 0.04) 60%, rgba(236, 55, 80, 0.4) 100%);
  --hc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --hc-ease-playful: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --hc-ease-standard: ease;
  --hc-duration-fast: 150ms;
  --hc-duration-base: 200ms;
  --hc-duration-medium: 300ms;
  --hc-duration-slow: 400ms;
  --hc-max-width: 1200px;
  --hc-prose-width: 800px;
  --hc-nav-height: 80px;
  --hc-gutter: clamp(16px, 6vw, 80px);
  --hc-section-y: clamp(80px, 12vw, 160px);
}

:root, [data-theme="light"], .hc-light {
  --hc-background: #ffffff;
  --hc-foreground: #17171d;
  --hc-surface: #f9fafc;
  --hc-surface-hover: #f1f2f5;
  --hc-border: rgba(0, 0, 0, 0.08);
  --hc-muted: rgba(23, 23, 29, 0.7);
  --hc-nav-bg: rgba(255, 255, 255, 0.82);
  --hc-red-text: #be1e3a;
  --hc-shadow-popover: 0 8px 32px rgba(0, 0, 0, 0.13);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) {
    --hc-background: #17171d;
    --hc-foreground: #fff6eb;
    --hc-surface: #1f1f27;
    --hc-surface-hover: #2a2a33;
    --hc-border: rgba(255, 255, 255, 0.08);
    --hc-muted: rgba(255, 246, 235, 0.7);
    --hc-nav-bg: rgba(23, 23, 29, 0.82);
    --hc-red-text: #ff5c72;
    --hc-shadow-popover: 0 8px 32px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root.dark, :root[data-theme="dark"], [data-theme="dark"], .hc-dark {
  --hc-background: #17171d;
  --hc-foreground: #fff6eb;
  --hc-surface: #1f1f27;
  --hc-surface-hover: #2a2a33;
  --hc-border: rgba(255, 255, 255, 0.08);
  --hc-muted: rgba(255, 246, 235, 0.7);
  --hc-nav-bg: rgba(23, 23, 29, 0.82);
  --hc-red-text: #ff5c72;
  --hc-shadow-popover: 0 8px 32px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Phantom Sans 0.8 & Zarathustra, the typefaces of hackclub.com */

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-100.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-350.woff2') format('woff2');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-350-italic.woff2') format('woff2');
  font-weight: 350;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Phantom Sans';
  src: url('./fonts/phantom-sans-700-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

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

/*
 * @hackclub/css-base — element defaults and utilities for the Hack Club look.
 * Requires the custom properties from @hackclub/tokens.
 */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--hc-background);
  color: var(--hc-foreground);
  font-family: var(--hc-font-sans);
  font-size: var(--hc-text-body);
  line-height: var(--hc-leading-snug);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smooth color transitions once the theme toggle has initialized */
:root.hc-theme-ready body {
  transition:
    background-color var(--hc-duration-base) var(--hc-ease-standard),
    color var(--hc-duration-base) var(--hc-ease-standard);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--hc-space-4);
  font-family: var(--hc-font-display);
  font-weight: 400;
  line-height: var(--hc-leading-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--hc-text-title);
}
h2 {
  font-size: var(--hc-text-heading);
}
h3 {
  font-size: var(--hc-text-xl);
}
h4 {
  font-size: var(--hc-text-lg);
}
h5,
h6 {
  font-size: var(--hc-text-body);
}

p {
  margin: 0 0 var(--hc-space-4);
  text-wrap: pretty;
}

/* Links slotted into navigation components are styled by the components */
/* As on hackclub.com: a plain underline that stays put on hover */
a:not(:is(hc-nav, hc-nav-menu, hc-footer, hc-footer-column) > a) {
  color: var(--hc-red-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

strong,
b {
  font-weight: 700;
}

small {
  font-size: var(--hc-text-sm);
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

hr {
  margin: var(--hc-space-8) 0;
  border: 0;
  border-top: 2px solid var(--hc-border);
}

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

:not(pre) > code {
  padding: 0.125em 0.375em;
  border-radius: var(--hc-radius-sm);
  background: var(--hc-surface-hover);
}

pre {
  overflow-x: auto;
  padding: var(--hc-space-4) var(--hc-space-5);
  border-radius: var(--hc-radius-lg);
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  line-height: var(--hc-leading-normal);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--hc-red);
  color: var(--hc-paper);
}

:focus-visible {
  outline: 3px solid var(--hc-orange);
  outline-offset: 2px;
}

/* ── Typography utilities ─────────────────────────────────────────────── */

.hc-display {
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: var(--hc-text-display);
  line-height: var(--hc-leading-display);
  letter-spacing: var(--hc-tracking-display);
}

.hc-title {
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: var(--hc-text-title);
  line-height: var(--hc-leading-heading);
}

.hc-heading {
  font-family: var(--hc-font-display);
  font-weight: 400;
  font-size: var(--hc-text-heading);
  line-height: var(--hc-leading-heading);
}

.hc-kicker {
  display: block;
  font-family: var(--hc-font-sans);
  font-size: var(--hc-text-xs);
  font-weight: 700;
  letter-spacing: var(--hc-tracking-kicker);
  line-height: var(--hc-leading-snug);
  text-transform: uppercase;
  color: var(--hc-red-text);
}

.hc-lead {
  font-size: var(--hc-text-lg);
  line-height: var(--hc-leading-normal);
  color: var(--hc-muted);
}

.hc-muted {
  color: var(--hc-muted);
}

.hc-gradient-text {
  background-image: var(--hc-gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Layout utilities ─────────────────────────────────────────────────── */

.hc-container {
  width: min(var(--hc-max-width), 100% - 2 * var(--hc-gutter));
  margin-inline: auto;
}

.hc-container-prose {
  width: min(var(--hc-prose-width), 100% - 2 * var(--hc-gutter));
  margin-inline: auto;
}

.hc-section {
  padding-block: var(--hc-section-y);
}

.hc-grid-paper {
  --hc-grid-size: 50px;
  --hc-grid-color: var(--hc-border);
  background-image:
    linear-gradient(90deg, var(--hc-grid-color) 1px, transparent 1px),
    linear-gradient(var(--hc-grid-color) 1px, transparent 1px);
  background-size: var(--hc-grid-size) var(--hc-grid-size);
}

.hc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hc-skip-link {
  position: absolute;
  top: var(--hc-space-3);
  left: var(--hc-space-3);
  z-index: 1000;
  padding: var(--hc-space-2) var(--hc-space-5);
  border-radius: var(--hc-radius-pill);
  background: var(--hc-foreground);
  color: var(--hc-background);
  text-decoration: none;
  transform: translateY(-200%);
}

.hc-skip-link:focus {
  transform: none;
}

/* Hide components until they have been defined, to avoid a flash of unstyled content */
hc-nav:not(:defined),
hc-footer:not(:defined),
hc-sticker:not(:defined),
hc-polaroid:not(:defined) {
  visibility: hidden;
}

/* Long-form content styling, matching hackclub.com's Markdown pages */

:where(hc-prose, .hc-prose) {
  display: block;
  max-width: var(--hc-prose-width);
  font-size: var(--hc-text-md);
  line-height: var(--hc-leading-prose);
  color: var(--hc-foreground);
}

:where(hc-prose, .hc-prose) > :first-child {
  margin-top: 0;
}

:where(hc-prose, .hc-prose) :where(h1, h2, h3, h4) {
  margin: 2em 0 0.6em;
  font-family: var(--hc-font-display);
  font-weight: 400;
  line-height: var(--hc-leading-heading);
}

:where(hc-prose, .hc-prose) :where(h1) {
  font-size: 2.5rem;
}
:where(hc-prose, .hc-prose) :where(h2) {
  font-size: 2rem;
}
:where(hc-prose, .hc-prose) :where(h3) {
  font-size: 1.5rem;
}
:where(hc-prose, .hc-prose) :where(h4) {
  font-size: 1.25rem;
  font-family: var(--hc-font-sans);
  font-weight: 700;
}

:where(hc-prose, .hc-prose) :where(p, ul, ol, blockquote, pre, table, figure) {
  margin: 0 0 1.25em;
}

:where(hc-prose, .hc-prose) :where(a) {
  color: var(--hc-red-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:where(hc-prose, .hc-prose) :where(ul, ol) {
  padding-left: 1.5em;
}

:where(hc-prose, .hc-prose) :where(li) {
  margin-bottom: 0.4em;
}

:where(hc-prose, .hc-prose) li::marker {
  color: var(--hc-red);
}

:where(hc-prose, .hc-prose) :where(blockquote) {
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--hc-red);
  color: var(--hc-muted);
  font-style: italic;
}

:where(hc-prose, .hc-prose) :where(hr) {
  margin: 2.5em 0;
  border: 0;
  border-top: 2px solid var(--hc-border);
}

:where(hc-prose, .hc-prose) :where(img, video) {
  max-width: 100%;
  height: auto;
  border-radius: var(--hc-radius-card);
}

:where(hc-prose, .hc-prose) :where(code) {
  font-family: var(--hc-font-mono);
  font-size: 0.875em;
}

:where(hc-prose, .hc-prose) :where(:not(pre) > code) {
  padding: 0.125em 0.375em;
  border-radius: var(--hc-radius-sm);
  background: var(--hc-surface-hover);
}

:where(hc-prose, .hc-prose) :where(pre) {
  overflow-x: auto;
  padding: 1em 1.25em;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  background: var(--hc-surface);
  line-height: var(--hc-leading-normal);
}

:where(hc-prose, .hc-prose) :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

:where(hc-prose, .hc-prose) :where(th, td) {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--hc-border);
  text-align: left;
}

:where(hc-prose, .hc-prose) :where(th) {
  font-weight: 700;
}

:where(hc-prose, .hc-prose) :where(figcaption) {
  margin-top: 0.5em;
  font-size: var(--hc-text-sm);
  color: var(--hc-muted);
  text-align: center;
}
