/* Pip - ivory paper, ink, one red pip. Hard offset shadows, no blur, no glass. */
:root {
  --bg: #F4EFE6;
  --paper: #FBF8F2;
  --ink: #15130F;
  --muted: #6B6458;
  --line: #D8CFBF;
  --red: #E5482D;
  --red-ink: #B5321B;
  --ok: #2B7A4B;
  --warn-bg: #FCE9C8;
  --head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; }
code { font: 500 0.88em ui-monospace, "Cascadia Mono", Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.top, main, footer { width: min(1120px, 100% - 40px); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 26px/1 var(--head); letter-spacing: -0.02em; }
.top nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding: 48px 0 72px; }
h1 { font: 800 clamp(44px, 7vw, 84px)/0.98 var(--head); letter-spacing: -0.035em; margin: 0 0 22px; }
.mark { color: var(--red); }
.lede { font-size: 19px; color: var(--muted); max-width: 33em; margin: 0 0 30px; }

.tile {
  display: flex; gap: 10px; padding: 10px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; color: var(--muted); }
.field input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: 500 18px/1.2 var(--body); color: var(--ink); padding: 14px 0;
}
.field input::placeholder { color: #A89F90; }
.tile:focus-within { box-shadow: 6px 6px 0 var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; text-decoration: none;
  background: var(--red); color: #fff; font: 600 17px/1 var(--body); padding: 14px 20px;
  transition: transform 90ms ease, box-shadow 90ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.alt { background: var(--ink); color: var(--bg); }
.btn.alt:hover { box-shadow: 3px 3px 0 var(--red); }

.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.sizes { display: inline-flex; border: 2px solid var(--ink); border-radius: 11px; overflow: hidden; background: var(--paper); }
.sizes button {
  border: 0; background: none; cursor: pointer; padding: 8px 14px;
  font: 500 14px/1 var(--body); color: var(--ink); border-right: 2px solid var(--ink);
}
.sizes button:last-child { border-right: 0; }
.sizes button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }

.status, .warn, .live { margin: 20px 0 0; font-size: 15.5px; border-radius: 12px; padding: 12px 14px; }
.status { background: var(--paper); border: 1.5px solid var(--line); }
.status.bad { background: var(--warn-bg); border-color: #E2B866; }
.status.good { border-color: var(--ok); color: #1E5735; }
.status a { font-weight: 600; }
.warn { background: var(--warn-bg); border: 1.5px solid #E2B866; }
.live { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); }
.live .link { color: var(--bg); margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.link { border: 0; background: none; padding: 0; cursor: pointer; font: 500 15px var(--body); text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }

/* ---- hero illustration ---- */
.scene { position: relative; aspect-ratio: 1 / 0.86; }
.desk { position: absolute; inset: 8% 10% 0 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.desk-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.desk-body { padding: 22px; display: grid; gap: 12px; }
.desk-body b { display: block; height: 10px; border-radius: 5px; background: var(--line); width: 70%; }
.desk-body b:nth-child(1) { width: 62%; } .desk-body b:nth-child(2) { width: 88%; }
.desk-body b:nth-child(3) { width: 74%; } .desk-body b:nth-child(4) { width: 40%; }
.desk-body b:nth-child(5) { width: 81%; margin-top: 16px; } .desk-body b:nth-child(6) { width: 69%; }
.desk-body b:nth-child(7) { width: 90%; } .desk-body b:nth-child(8) { width: 33%; }
.floaty {
  position: absolute; right: 0; top: 0; width: 52%;
  border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  animation: hover 5s ease-in-out infinite;
}
.floaty-bar { display: flex; justify-content: space-between; align-items: center; padding: 7px 11px; font: 700 12px/1 var(--head); letter-spacing: 0.04em; color: var(--bg); }
.floaty-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.floaty-body { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, #3A352C, #1F1C16); }
@keyframes hover { 50% { transform: translate(-10px, 12px); } }

/* ---- sections ---- */
section h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.08 var(--head); letter-spacing: -0.025em; margin: 0 0 26px; }
.recent, .how, .helper, .limits { padding: 56px 0; border-top: 2px solid var(--ink); }

.row-head { display: flex; align-items: baseline; justify-content: space-between; }
.recent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.recent li button {
  border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; cursor: pointer;
  padding: 8px 15px; font: 500 15px var(--body); color: var(--ink); max-width: 320px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recent li button:hover { background: var(--ink); color: var(--bg); }

.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.die { width: 46px; height: 46px; }
.die rect { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.die circle { fill: var(--red); }
.how h3 { font: 700 21px/1.2 var(--head); margin: 16px 0 8px; }
.how p, .helper p, .limits li { color: var(--muted); margin: 0 0 12px; }

.helper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.pill { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 600; color: var(--ink) !important; background: var(--paper); }
.pill.on { background: var(--ok); border-color: var(--ok); color: #fff !important; }
.install { background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 24px; }
.install ol { margin: 20px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.install li { margin-bottom: 8px; }

.limits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px; }
.limits li strong { color: var(--ink); }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 40px; border-top: 2px solid var(--ink); font-size: 14.5px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .scene { max-width: 420px; }
  .how ol, .limits ul, .helper { grid-template-columns: 1fr; }
  .helper { gap: 28px; }
  .top nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 520px) {
  .tile { flex-direction: column; }
  .top nav a:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floaty, .dot { animation: none; }
  html { scroll-behavior: auto; }
}
