:root {
  --paper: #f6fff6;
  --ink: #10100f;
  --ink-2: #595b50;
  --line: #ddebdd;
  --acc: #00e100;
  --acc-ink: #007a3d;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter Tight", Inter, system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

::selection { background: var(--acc); color: #090909; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol { list-style: none; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  font-family: var(--mono); font-size: 12px;
  padding: 6px 10px; background: var(--ink); color: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

:focus-visible { outline: 1.5px solid var(--acc-ink); outline-offset: 3px; }

/* ── bracket chrome ─────────────────────────── */
.bk, .mark, .hint, .sec-label, .row-d, .foot-c, .sec-note,
.find-input, .find-list, .find-empty, .overlay-foot {
  font-family: var(--mono);
}

.bk {
  font-size: 13px;
  padding: 4px 2px;
  white-space: nowrap;
}
.bk::before { content: "[\00a0"; opacity: .45; transition: opacity .15s, transform .15s; display: inline-block; }
.bk::after  { content: "\00a0]"; opacity: .45; transition: opacity .15s, transform .15s; display: inline-block; }
.bk:hover { color: var(--acc-ink); }
.bk:hover::before { opacity: 1; transform: translateX(-3px); }
.bk:hover::after  { opacity: 1; transform: translateX(3px); }

.mark {
  font-size: 15px; font-weight: 400; letter-spacing: .02em;
  display: inline-block; padding: 4px 0;
  transition: opacity .15s;
}
.mark:hover { opacity: .55; }

/* ── header ─────────────────────────────────── */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px var(--pad);
}

/* ── hero ───────────────────────────────────── */
.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column;
  padding: clamp(48px, 9vh, 110px) var(--pad) 26px;
}

.wordmark {
  font-size: clamp(56px, 12.5vw, 190px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: .92;
}

.wordmark .line { display: block; }
.wordmark .indent { padding-left: clamp(40px, 9vw, 160px); }

.cursor {
  display: inline-block;
  width: .42em; height: .78em;
  margin-left: .08em;
  transform: translateY(.1em);
  background: var(--ink);
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.lede {
  margin-top: clamp(32px, 6vh, 64px);
  max-width: 600px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-meta {
  margin-top: auto;
  padding-top: 40px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.hint {
  font-size: 12px; color: var(--ink-2);
  padding: 4px 0;
  transition: color .15s;
}
button.hint:hover { color: var(--ink); }

/* entrance — once, on load */
.wordmark .line, .lede, .hero-meta {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s cubic-bezier(.2, .65, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── sections ───────────────────────────────── */
.sec {
  margin: 0 var(--pad);
  padding: clamp(72px, 11vh, 130px) 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.sec-label { font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.sec-note  { font-size: 12.5px; color: var(--ink-2); max-width: 420px; text-wrap: pretty; }

/* index rows */
.idx { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) 64px;
  align-items: baseline; gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.row-t { font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; letter-spacing: -0.015em; }
.row-d { font-size: 12.5px; color: var(--ink-2); text-wrap: pretty; }
.row-a {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  text-align: right;
}
a.row .row-a {
  font-size: 14px; color: var(--ink);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .16s, transform .16s;
}

/* build — product blocks */
.prod + .prod { margin-top: clamp(56px, 8vh, 88px); }

.prod-name {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1;
}
.prod-tag {
  margin-top: 14px; max-width: 60ch;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 1.55;
  text-wrap: pretty;
}
.prod-meta {
  margin-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}
.prod-links { display: flex; gap: 22px; }

/* about */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-p { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.5; letter-spacing: -0.01em; max-width: 34ch; text-wrap: pretty; }

.ledger { border-top: 1px solid var(--line); }
.led { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.ledger dd { font-family: var(--mono); font-size: 12.5px; }

/* contact */
.mail {
  display: inline-block;
  font-size: clamp(30px, 5.4vw, 72px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.05;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .14em;
  text-decoration-color: var(--line);
  transition: text-decoration-color .18s;
}
.mail:hover { text-decoration-color: var(--acc-ink); }

/* ── footer ─────────────────────────────────── */
.foot {
  margin: 0 var(--pad);
  border-top: 1px solid var(--line);
  padding: 20px 0 26px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-c { font-size: 11.5px; color: var(--ink-2); }

/* ── overlays ───────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 22px var(--pad) 26px;
  overflow-y: auto;
}
.overlay[hidden] { display: none; }

.overlay-top { display: flex; justify-content: space-between; align-items: baseline; }

.overlay-nav {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(4px, 1.6vh, 14px);
}
.overlay-nav a {
  display: flex; align-items: baseline; gap: 22px;
  padding: 10px 0;
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
}
.overlay-nav .ot::before { content: "[\00a0"; opacity: 0; transition: opacity .15s, transform .15s; display: inline-block; transform: translateX(6px); font-family: var(--mono); font-weight: 400; }
.overlay-nav .ot::after  { content: "\00a0]"; opacity: 0; transition: opacity .15s, transform .15s; display: inline-block; transform: translateX(-6px); font-family: var(--mono); font-weight: 400; }
.overlay-nav a:hover .ot::before,
.overlay-nav a:hover .ot::after { opacity: 1; transform: none; color: var(--acc); }
.overlay-nav a { opacity: 0; transform: translateY(10px); animation: rise .5s cubic-bezier(.2,.65,.2,1) forwards; animation-delay: calc(var(--m, 0) * .04s); }

.overlay-foot { display: flex; gap: 24px; align-items: baseline; }

/* find */
.overlay.find { justify-content: flex-start; padding-top: 16vh; background: rgba(251, 251, 248, .96); }
.find-box { max-width: 640px; width: 100%; margin: 0 auto; }
.find-input {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 12px;
  font-size: 16px;
}
.find-prompt { color: var(--acc); }
.find-input input {
  flex: 1; border: 0; outline: none; background: none;
  font: inherit; color: var(--ink);
}
.find-input input::placeholder { color: var(--ink-2); }
.find-input .bk { font-size: 11.5px; }

.find-list { margin-top: 8px; }
.find-list a {
  display: flex; gap: 16px; align-items: baseline;
  padding: 12px 2px; font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.find-list a .fi { color: var(--ink-2); font-size: 11px; min-width: 76px; }
.find-list a:hover, .find-list a.sel { background: var(--acc); color: #090909; }
.find-list a:hover .fi, .find-list a.sel .fi { color: #090909; }
.find-empty { margin-top: 24px; font-size: 12.5px; color: var(--ink-2); }

/* product page */
.page-hero { min-height: 62svh; }
.hint .bk { font-size: 12px; }

@media (pointer: coarse) {
  .bk, .hint { padding: 10px 8px; }
  .foot-links { gap: 14px; }
}

/* ── responsive ─────────────────────────────── */
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; grid-template-areas: "t a" "d a"; row-gap: 4px; }
  .row-t { grid-area: t; }
  .row-d { grid-area: d; }
  .row-a { grid-area: a; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { min-height: calc(100svh - 64px); }
}

/* ── reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .wordmark .line, .lede, .hero-meta { animation: none; opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}
