/* craftbench.works — one page. Identity: "Yön B" (2 Sep 2026), closing decisions 4 Sep 2026. */
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #FBFBF8;
  --ink: #17191D;
  --muted: #676B73;
  --accent: #3F4AA3;
  --rule: #E1E2E5;
  --plate: #FFFFFF;
  --dot: rgba(23, 25, 29, .11);
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --gutter: 40px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--ground) radial-gradient(circle, var(--dot) 1.4px, transparent 1.6px) 12px 12px / 24px 24px;
  font: 400 17px/28px var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* nav */
.nav { display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); }
.wordmark { font: 500 20px/26px var(--mono); letter-spacing: -.02em; color: var(--ink); }
.wordmark .tld { color: var(--muted); }
.wordmark:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.button {
  display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 10px 14px; background: transparent; white-space: nowrap;
  transition: background .15s ease-out, color .15s ease-out;
}
.button:hover { background: var(--ink); color: var(--ground); text-decoration: none; }

/* home */
.home { display: grid; grid-template-rows: var(--nav-h) 1fr 40px; height: 100vh; }
.hero { display: grid; grid-template-columns: 21fr 19fr; /* flex factors kept >= 1: sums below 1 are clamped to 1 by the fr algorithm and leave the right track short */ gap: 56px; align-items: center; min-height: 0; padding-bottom: 24px; }
h1.display {
  font: 500 clamp(38px, 5.4vw, 80px)/1.02 var(--mono); letter-spacing: -.035em; margin: 0; text-wrap: balance;
}
.hero p { max-width: 46ch; margin: 26px 0 0; font-size: 17px; line-height: 28px; }
.links { display: grid; gap: 6px; margin-top: 30px; }

.plate {
  position: relative; margin: 0; justify-self: end; width: min(100%, calc(100vh - 190px)); aspect-ratio: 1 / 1;
  background: var(--plate); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  box-shadow: none;
}
.plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate .label { position: absolute; left: 14px; top: 12px; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--muted); }

.foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ext { font: 500 12px/1 var(--mono); letter-spacing: .02em; }


@media (max-width: 820px) {
  :root { --nav-h: 60px; --gutter: 20px; }
  .home { height: auto; min-height: 100vh; grid-template-rows: var(--nav-h) 1fr auto; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 20px 0 32px; align-items: start; }
  .hero p { font-size: 16px; line-height: 26px; }
  .plate { width: 100%; justify-self: stretch; max-width: 520px; }
  .nav-right { gap: 16px; }
  .foot { padding: 12px 0 20px; flex-wrap: wrap; gap: 6px; }
}
@media (max-height: 640px) and (min-width: 821px) {
  .home { height: auto; min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
