/* Adapted from laurens.top's own stylesheet -- same design system, same
   colors/type/layout language, re-skinned for an app index instead of a
   personal bio. Core variables, header/footer, hero and .builds/.state
   patterns are copied near-verbatim on purpose: this is the house style,
   not a new one. */

@font-face {
  font-family: 'Departure Mono';
  src: url('../fonts/DepartureMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0c0e;
  --text: #d9dbe0;
  --dim: #6c7079;
  --mid: #a3a8b3;
  --line: #22252b;
  --blue: #4f7dff;
  --blue-soft: #8fb0ff;
  --hot: #d6ecff;
  --glow: rgba(90, 160, 255, .75);
  --mono: 'Departure Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 13px/1.65 var(--mono);
  -webkit-font-smoothing: none;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
a:hover { color: var(--blue-soft); text-decoration-color: var(--blue); }
:focus-visible { outline: 1px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--dim); }

.page {
  min-height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 3.5vw, 40px) 16px;
  display: flex;
  flex-direction: column;
}

.top, .bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--dim); font-size: 11px; flex-wrap: wrap; }
.top .right { display: flex; gap: 16px; }
.toplink { color: var(--dim); text-decoration: none; }
.toplink::before { content: '['; } .toplink::after { content: ']'; }
.toplink:hover { color: var(--blue-soft); }
.bottom { margin-top: clamp(28px, 6vh, 56px); gap: 4px 16px; }

/* subpage pattern, straight from laurens.top's own /blog/: plain h1,
   a one-line .meta subtitle, body copy width-capped for readability. */
.doc main { max-width: 72ch; }
.doc h1 { margin: clamp(20px, 6vh, 48px) 0 6px; font: inherit; font-size: 22px; color: var(--blue); }
.doc .meta { margin: 0 0 24px; color: var(--dim); }

/* app grid: same dt/dd "builds" pattern as the original site's project
   list, just laid out as a responsive grid of cards instead of a single
   column, since there are seven of them. */
.builds {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 20px;
}
.builds > div {
  border: 1px solid var(--line); padding: 12px 14px; transition: border-color .15s ease;
}
.builds > div:hover { border-color: var(--blue); }
.builds dt { display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px; }
.builds dt a { font-weight: 400; }
.builds dd { margin: 0; color: var(--mid); }
.state { font-size: 11px; color: var(--dim); }
.state::before { content: '['; } .state::after { content: ']'; }
.state.live { color: var(--blue-soft); }

@media (max-width: 560px) {
  .builds { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
