@font-face {
  font-family: "Bricolage";
  src: url("./fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("./fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("./fonts/roboto-mono-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1ede3;
  --paper-deep: #e5dfd2;
  --white: #fffdf8;
  --ink: #141414;
  --ink-soft: #46443f;
  --ink-mute: #6b6860;
  --line: #c9c2b4;
  --cobalt: #2743f0;
  --pink: #ff4f8b;
  --lime: #c9f26b;
  --sun: #f5c84b;
  --display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --consent-bg: #141414;
  --consent-fg: #f1ede3;
  --consent-accent: #c9f26b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
a { color: inherit; }
svg { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -70px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; font-size: 12px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--ink); color: var(--paper); }
.site-header__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.header-chip { display: inline-flex; border: 1px solid rgba(201, 242, 107, 0.7); color: var(--lime); padding: 7px 11px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(20,20,20,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,20,20,.05) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, black, transparent 80%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -220px; border-radius: 50%; background: var(--lime); opacity: .55; filter: blur(1px); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(52px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pink); }
.hero h1 { max-width: 12ch; margin: 0; font-family: var(--display); font-size: clamp(4rem, 9vw, 8.2rem); font-weight: 800; line-height: 0.86; letter-spacing: -0.06em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero__sub { max-width: 52ch; margin: 26px 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero__meta span { border: 1px solid var(--ink); padding: 5px 9px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.hero__meta span:first-child { background: var(--lime); }

.tools { padding-block: clamp(40px, 6vw, 74px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; }
.section-head p { max-width: 38ch; margin: 0; color: var(--ink-soft); font-size: 14px; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-card { position: relative; display: flex; flex-direction: column; min-height: 230px; border: 2px solid var(--ink); background: var(--white); padding: 20px; text-decoration: none; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.tool-card::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 28px; height: 28px; background: var(--accent); border: 1.5px solid var(--ink); }
.tool-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.tool-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.tool-card__num { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.tool-card__cat { background: var(--accent); border: 1px solid var(--ink); padding: 3px 7px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.tool-card h3 { max-width: 14ch; margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 2.7vw, 2.35rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.tool-card p { max-width: 35ch; margin: 12px 0 30px; color: var(--ink-soft); font-size: 13px; }
.tool-card__link { margin-top: auto; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tool-card__link::after { content: " ↗"; }

.note-band { background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); padding-block: clamp(30px, 5vw, 52px); }
.note-band__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: start; }
.note-band h2 { max-width: 12ch; margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.note-band h2 em { font-style: normal; color: var(--lime); }
.note-band p { max-width: 55ch; margin: 0; color: rgba(241, 237, 227, 0.72); font-size: 14px; }
.note-band ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.note-band li { border-top: 1px solid rgba(241, 237, 227, 0.18); padding-top: 8px; color: rgba(241, 237, 227, 0.82); font-size: 13px; }
.note-band li b { color: var(--lime); font-family: var(--mono); font-size: 10px; margin-right: 8px; }

.faq { padding-block: clamp(40px, 6vw, 74px); border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; list-style: none; padding: 16px 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cobalt); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 70ch; margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }

.site-footer { background: var(--ink); color: var(--paper); padding-block: 36px 22px; }
.site-footer__inner { display: flex; align-items: start; justify-content: space-between; gap: 32px; }
.site-footer p { max-width: 42ch; margin: 12px 0 0; color: rgba(241, 237, 227, 0.62); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.site-footer a { color: rgba(241, 237, 227, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 15px; border-top: 1px solid rgba(241, 237, 227, 0.18); color: rgba(241, 237, 227, 0.72); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.page-body { padding-block: clamp(38px, 6vw, 72px); }
.prose { max-width: 72ch; color: var(--ink-soft); font-size: 15px; }
.prose h2 { margin: 30px 0 8px; font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--cobalt); }
.link-button { margin-top: 4px; padding: 0; border: 0; background: none; color: var(--cobalt); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }

@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .hero h1 { font-size: clamp(3.4rem, 14vw, 5.6rem); }
  .tool-grid { grid-template-columns: 1fr; }
  .note-band__inner { grid-template-columns: 1fr; gap: 22px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .site-footer__inner { flex-direction: column; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { font-size: 19px; }
  .brand__mark { width: 27px; height: 27px; }
  .header-chip { font-size: 9px; padding: 6px 8px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .hero__sub { font-size: 16px; }
  .tool-card { min-height: 210px; padding: 16px; }
  .tool-card h3 { font-size: 2rem; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
