/* Fonts are self-hosted (SIL OFL): no third-party font requests, so no visitor IPs leave the site. */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.6 var(--body); color: var(--fg); background: var(--bg); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.prose { max-width: 66ch; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--fg); color: var(--bg); }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hyjinnx (studio): sticker-bomb zine ---------- */
.hx {
  --mint: #CDEFD9; --ink: #111111; --pink: #FF4FA3; --sun: #FFE14D; --sky: #4D7CFF; --white: #FFFFFF;
  --line: 3px solid var(--ink); --drop: 6px 6px 0 var(--ink);
  --body: "Bricolage", system-ui, sans-serif;
  --bg: var(--mint); --fg: var(--ink); --link: var(--ink); --link-hover: var(--ink); --focus: var(--ink);
  background-image: radial-gradient(rgba(17, 17, 17, .13) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
.hx a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
.hx-top { position: relative; overflow: clip; border-bottom: var(--line); }
.hx-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.hx-nav ul { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.hx-nav ul a { display: block; white-space: nowrap; padding: .4rem .9rem; border: var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); }
.hx-nav ul a:hover { background: var(--sun); }
.mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: inherit; text-decoration: none; }
.mark b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: var(--sun); color: var(--ink); font-size: 1.05rem; transform: rotate(-8deg); }
.hx .mark b { border: var(--line); box-shadow: 3px 3px 0 var(--ink); width: 2.4rem; height: 2.4rem; }

/* Hero: each letter is a sticker you can grab and fling (assets/hx.js). */
.hx-hero { position: relative; padding-block: clamp(2.5rem, 8vw, 5.5rem) clamp(5rem, 12vw, 8rem); }
.hx-word { display: flex; flex-wrap: wrap; margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(4.2rem, 19vw, 14rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; line-height: .9; }
.hx-word span { display: inline-block; color: var(--c, var(--white)); -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; text-shadow: .045em .05em 0 var(--ink); rotate: var(--r, 0deg); translate: 0 var(--y, 0); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; animation: slap .55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 70ms); }
.hx-word span.held { cursor: grabbing; }
@keyframes slap { from { opacity: 0; scale: 1.6; rotate: calc(var(--r, 0deg) - 25deg); } }
.hx-hint { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1.25rem; font-weight: 600; rotate: -2deg; }
.hx-hint svg { width: 2.6rem; }
.hx-lede { max-width: 32ch; font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.35; margin-bottom: 2rem; }
.hx-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border: 0; border-radius: 999px; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; }
.hx .btn { border: var(--line); border-radius: .8rem; padding: .9rem 1.4rem; background: var(--pink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: translate .1s, box-shadow .1s; }
.hx .btn:hover { text-decoration: none; translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.hx .btn:active { translate: 4px 4px; box-shadow: 0 0 0 var(--ink); }
.hx .btn.alt { background: var(--white); }

/* Mascot: Jinx the gremlin peeks up from the bottom of the hero. */
.jinx { position: absolute; right: clamp(.5rem, 5vw, 4rem); bottom: -2.4rem; width: clamp(7rem, 22vw, 17rem); padding: 0; border: 0; background: none; cursor: pointer; transition: translate .35s cubic-bezier(.3, 1.6, .5, 1); }
.jinx:hover, .jinx:focus-visible { translate: 0 -.9rem; }
.jinx.hop { animation: hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 40% { translate: 0 -2.4rem; rotate: -6deg; } }
.jinx .o-mouth { display: none; }
.jinx.shock .grin { display: none; }
.jinx.shock .o-mouth { display: inline; }
.bubble { position: absolute; right: 85%; bottom: 72%; width: max-content; max-width: 14rem; padding: .55rem .8rem; border: var(--line); border-radius: .9rem .9rem 0 .9rem; background: var(--white); font: 700 .95rem/1.3 var(--body); text-align: left; box-shadow: 3px 3px 0 var(--ink); opacity: 0; scale: .6; transform-origin: bottom right; transition: opacity .15s, scale .2s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.bubble.show { opacity: 1; scale: 1; }

/* Stickers */
.hx-section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.hx-section h2 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.03em; }
.scribble { display: block; width: min(14rem, 60%); margin: -.6rem 0 0; color: var(--pink); }
.makes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 2.25rem 1.75rem; }
.makes li { position: relative; padding: 1.4rem 1.4rem 1.5rem; border: var(--line); background: var(--c); box-shadow: var(--drop); rotate: var(--r); transition: rotate .2s, translate .2s; }
.makes li:hover { rotate: 0deg; translate: 0 -4px; }
.makes li:nth-child(1) { --c: var(--sun); --r: -2.5deg; border-radius: 1.4rem; }
.makes li:nth-child(2) { --c: var(--pink); --r: 2deg; border-radius: 2.5rem .6rem 2.5rem .6rem; }
.makes li:nth-child(3) { --c: var(--white); --r: -1.5deg; border-radius: .4rem; }
.makes li:nth-child(4) { --c: var(--sky); --r: 2.5deg; border-radius: 1.4rem 1.4rem 1.4rem .2rem; }
.makes strong { display: block; margin-bottom: .35rem; font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.02em; line-height: 1; }
.makes span { display: block; font-size: 1.1rem; line-height: 1.4; }
.makes svg { position: absolute; top: -1.3rem; right: -.9rem; width: 3rem; height: 3rem; rotate: 12deg; }

/* Featured project: a photo taped into the zine. */
.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 3.25rem); border: var(--line); border-radius: .5rem; background: #01090D; color: #F3F4F5; box-shadow: 10px 10px 0 var(--ink); rotate: -.6deg; }
.feature::before, .feature::after { content: ""; position: absolute; top: -1rem; width: 7rem; height: 2rem; background: rgba(255, 225, 77, .85); border: 2px solid rgba(17, 17, 17, .25); }
.feature::before { left: 8%; rotate: -6deg; }
.feature::after { right: 8%; rotate: 5deg; }
.feature img { width: min(100%, 21rem); margin-inline: auto; }
.feature h2 { color: #fff; }
.feature p { color: #C9CDD2; max-width: 46ch; }
.hx .feature .btn { background: #18A7E0; border-color: #F3F4F5; box-shadow: 4px 4px 0 #F3F4F5; }
.hx .feature .btn:hover { background: #78ECF9; box-shadow: 6px 6px 0 #F3F4F5; }
.hx .feature :focus-visible { outline-color: #78ECF9; }
.tag { display: inline-block; margin-bottom: 1rem; padding: .3rem .75rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); color: var(--ink); font-weight: 800; font-size: .95rem; rotate: -3deg; }
@media (max-width: 48rem) { .feature { grid-template-columns: 1fr; } }

.hx-contact .card { position: relative; max-width: 44rem; padding: clamp(1.5rem, 5vw, 2.75rem); border: var(--line); border-radius: 1.2rem; background: var(--sun); box-shadow: var(--drop); rotate: 1deg; }
.hx-contact .card a { font-weight: 800; font-size: clamp(1.5rem, 5vw, 2.75rem); letter-spacing: -.02em; word-break: break-word; }
.hx-contact .star { position: absolute; top: -1.6rem; left: -1.2rem; width: 3.4rem; rotate: -15deg; }

/* ---------- Footer (both themes) ---------- */
.foot { padding-block: 2.5rem; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.foot p { margin: 0; }
.hx .foot { border-top: var(--line); background: var(--ink); color: #E8E8E8; }
.hx .foot a { color: #fff; }
.hx .foot a:hover { color: var(--sun); text-decoration-color: var(--sun); }
.hx .foot :focus-visible { outline-color: var(--sun); }

/* ---------- Legal page ---------- */
.legal main { padding-block: 3rem 4rem; }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.03em; }
.legal h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: var(--line); font-size: 1.75rem; font-weight: 800; }
.legal h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.legal .toc { padding-left: 1.25rem; }
.legal ul { padding-left: 1.25rem; }

/* ---------- Dauntless Revamped ---------- */
.dr {
  --dr-ink: #01090D; --dr-navy: #031523; --dr-deep: #093251; --dr-azure: #0D669C;
  --dr-ice: #18A7E0; --dr-glow: #78ECF9; --dr-steel: #999FA7; --dr-frost: #F3F4F5;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif; --display: "Barlow Condensed", "Bahnschrift", sans-serif;
  --bg: var(--dr-ink); --fg: var(--dr-frost); --link: var(--dr-ice); --link-hover: var(--dr-glow); --focus: var(--dr-glow);
}
.dr h1, .dr h2, .dr h3 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.dr-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.dr-nav a { color: var(--dr-steel); text-decoration: none; font-weight: 600; }
.dr-nav a:hover { color: var(--dr-glow); }
.dr-nav .mark { color: var(--dr-frost); font-size: 1.05rem; }
.dr-nav .mark b { background: var(--dr-ice); color: var(--dr-ink); width: 1.8rem; height: 1.8rem; font-size: .9rem; }

.dr-hero { position: relative; overflow-x: clip; text-align: center; padding-block: 1rem clamp(3rem, 8vw, 5rem); isolation: isolate; }
.dr-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 38%; width: min(60rem, 140vw); aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(24, 167, 224, .28), rgba(9, 50, 81, .25) 55%, transparent); }
.dr-hero img { width: min(26rem, 82vw); margin: 0 auto 1rem; filter: drop-shadow(0 0 2.5rem rgba(120, 236, 249, .18)); animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem) scale(.96); } }
.dr-hero p { max-width: 46ch; margin: 0 auto 2rem; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: #CFD3D8; }
.dl { display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; }
.dr .btn { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .04em; border-radius: .35rem; padding: 1rem 2.25rem; background: var(--dr-ice); color: var(--dr-ink); clip-path: polygon(.9rem 0, calc(100% - .9rem) 0, 100% 50%, calc(100% - .9rem) 100%, .9rem 100%, 0 50%); }
.dr .btn:hover { background: var(--dr-glow); color: var(--dr-ink); }
.dr .btn:disabled { cursor: not-allowed; background: var(--dr-deep); color: var(--dr-steel); }
.dl small { color: var(--dr-steel); font-size: .95rem; }

.dr-section { padding-block: clamp(3rem, 8vw, 5rem); border-top: 1px solid var(--dr-deep); }
.dr-section h2 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; }
.dr-section .lede { color: #CFD3D8; max-width: 60ch; }
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.steps li { counter-increment: s; position: relative; padding: 1.5rem 1.5rem 1.5rem 4.5rem; background: var(--dr-navy); border: 1px solid var(--dr-deep); border-radius: .5rem; }
.steps li::before { content: counter(s); position: absolute; left: 1.25rem; top: 1.2rem; font: 600 2.25rem/1 var(--display); color: var(--dr-ice); }
.steps h3 { font-size: 1.4rem; margin-bottom: .3rem; color: #fff; }
.steps p { margin: 0; color: #C3C8CE; }

.socials { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.social { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; border: 1px solid var(--dr-azure); border-radius: .5rem; background: var(--dr-navy); color: var(--dr-frost); text-decoration: none; font: 600 1.35rem/1 var(--display); letter-spacing: .02em; transition: border-color .15s, background .15s; }
.social .icon { width: 1.6rem; height: 1.6rem; color: var(--dr-ice); }
a.social[href]:hover { border-color: var(--dr-glow); background: var(--dr-deep); color: #fff; }
/* A social link with no href is not live yet. Give it an href and it switches on. */
.social:not([href]) { border-color: var(--dr-deep); color: var(--dr-steel); }
.social:not([href]) .icon { color: var(--dr-steel); }
.social:not([href])::after { content: "Soon"; margin-left: auto; font: 400 .85rem/1 var(--body); padding: .3rem .55rem; border-radius: 999px; background: var(--dr-deep); color: var(--dr-steel); }

.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.credits strong { display: block; font: 600 1.25rem/1.2 var(--display); color: #fff; }
.credits span { color: var(--dr-steel); font-size: .95rem; }
.disclaimer { padding: 1.25rem 1.5rem; border-left: 3px solid var(--dr-ice); background: var(--dr-navy); color: #C3C8CE; font-size: .95rem; max-width: 70ch; }

.dr .foot { border-top: 1px solid var(--dr-deep); color: var(--dr-steel); }
