:root {
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --ink: #27231f;
  --muted: #716961;
  --wine: #7b2f3c;
  --wine-dark: #60232d;
  --sage: #a9b29d;
  --line: #ded8cf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: #ead9dc; color: var(--wine-dark); }
a { color: inherit; }
button, input { font: inherit; }
.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; }
.noise { display: none; }

.site-header {
  min-height: 64px;
  padding: 0 max(28px, 5vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}
.wordmark-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: white;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}
.header-note {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font: 9px/1.5 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.github-link {
  justify-self: end;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.github-link:hover { color: var(--wine); }

.hero {
  padding: 42px max(28px, 6vw);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 56px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-intro { max-width: 680px; }
.hero-actions { width: 100%; max-width: 390px; justify-self: end; }
.hero-menu-label { display: flex; justify-content: space-between; margin: 0 0 12px; color: var(--muted); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.hero-feature-link { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-decoration: none; }
.hero-feature-link strong { display: block; font-size: 15px; color: var(--wine); }
.hero-feature-link small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.hero-feature-link:hover { border-color: var(--wine); }
.hero-feature-link:focus-visible, .scroll-cue:focus-visible { outline: 3px solid #cdbec0; outline-offset: 3px; }
.eyebrow, .section-index {
  color: var(--wine);
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 8px;
  background: var(--sage);
  border-radius: 50%;
}
.hero h1 {
  margin: 18px 0 16px;
  font: 500 clamp(42px, 4.6vw, 66px)/1.02 "Manrope", sans-serif;
  letter-spacing: -.055em;
}
.hero h1 em {
  color: var(--wine);
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.scroll-cue {
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 2px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.hero-stamp {
  position: absolute;
  right: 7vw;
  bottom: 58px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--wine);
  border: 1px solid #cdbec0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  font: 7px "DM Mono", monospace;
  letter-spacing: .12em;
}
.hero-stamp strong { font-size: 18px; line-height: 1.1; }

.collection { padding: 32px max(28px, 6vw) 80px; scroll-margin-top: 24px; }
.collection-head {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 32px;
}
.collection h2 {
  margin: 12px 0 0;
  font: 500 clamp(26px, 2.8vw, 38px)/1.15 "Manrope", sans-serif;
  letter-spacing: -.045em;
}
.search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder { color: #9a928a; }
.filters { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.filter {
  padding: 7px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: .2s ease;
}
.filter:hover, .filter.is-active {
  color: white;
  border-color: var(--wine);
  background: var(--wine);
}

.tool-list {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tool {
  min-height: 390px;
  display: grid;
  grid-template-columns: 42px 1fr;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tool:hover {
  transform: translateY(-3px);
  border-color: #c9bdb3;
  box-shadow: 0 18px 50px rgba(61, 47, 37, .07);
}
.tool[hidden] { display: none; }
.tool-number {
  padding-top: 3px;
  color: #a29a91;
  font: 8px "DM Mono", monospace;
}
.tool-visual { display: none; }
.tool-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tool-meta {
  margin: 0 0 58px;
  color: var(--wine);
  font: 8px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.tool h3 {
  margin: 0 0 22px;
  font: 500 clamp(39px, 4vw, 58px)/.95 "Manrope", sans-serif;
  letter-spacing: -.06em;
}
.tool-content > p:not(.tool-meta) {
  max-width: 420px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.tool-link {
  width: 100%;
  margin-top: auto;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #d6c8ca;
  border-radius: 8px;
  color: white;
  background: var(--wine);
  text-decoration: none;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  transition: .2s ease;
}
.tool-link:hover {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
  transform: translateY(-1px);
}
.tool-link:hover .arrow {
  border-color: white;
  transform: translate(2px, -2px);
}
.tool-link:focus-visible {
  outline: 3px solid rgba(123, 47, 60, .25);
  outline-offset: 3px;
}
.empty-state {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}

.manifesto {
  padding: 110px max(28px, 8vw) 70px;
  color: var(--cream);
  background: var(--wine-dark);
}
.manifesto .section-index { color: #d9bfc3; }
.manifesto blockquote {
  max-width: 1050px;
  margin: 60px 0 110px;
  font: 400 clamp(49px, 6.5vw, 92px)/1.02 Georgia, serif;
  letter-spacing: -.045em;
}
.manifesto-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.3);
  color: #decfd0;
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.manifesto-foot a { text-underline-offset: 5px; }
footer {
  min-height: 82px;
  padding: 20px max(28px, 5vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #8d857d;
  background: #211e1b;
  font: 8px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
}
footer a { color: #b9b1a8; }

@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 60px; }
  .header-note { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 30px 20px 24px; }
  .hero h1 { font-size: clamp(38px, 8vw, 56px); }
  .hero-actions { max-width: none; }
  .hero-copy { font-size: 13px; }
  .collection { padding: 24px 20px 70px; }
  .collection-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 20px; }
  .tool-list { grid-template-columns: 1fr; }
  .tool { min-height: 350px; padding: 24px; }
  .tool-meta { margin-bottom: 46px; }
  .tool h3 { font-size: 45px; }
  .manifesto { padding: 82px 28px 55px; }
  .manifesto blockquote { margin: 50px 0 90px; }
  .manifesto-foot, footer { flex-direction: column; align-items: flex-start; }
  footer { padding-top: 30px; padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
