/* BlackBear Labs — shared styles */
:root {
  --paper: #efebe3;
  --paper-2: #e6e1d6;
  --ink: #111111;
  --ink-2: #55524c;
  --rule: rgba(17,17,17,.16);
  --signal: #ff4f1f;
  --pad: clamp(20px, 4vw, 56px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--ink-2); }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.brand img { height: 22px; width: auto; display: block; }
.bar .clock { justify-self: center; }
.bar nav { justify-self: end; display: flex; gap: 28px; }
.bar nav a { position: relative; }
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.bar nav a:hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

/* simple list pages */
.page { padding: clamp(56px, 10vw, 140px) var(--pad) 80px; max-width: 1100px; }
.page h1 { font-size: clamp(56px, 9vw, 120px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.page .intro { margin-top: 20px; max-width: 46ch; color: var(--ink-2); font-size: 18px; }
.list { list-style: none; margin-top: 64px; border-top: 1px solid var(--ink); }
.list li { border-bottom: 1px solid var(--rule); }
.list a, .list .row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: baseline;
  padding: 22px 0;
}
.list .t { font-size: 22px; letter-spacing: -.02em; font-weight: 500; }
.list .d { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.list .u { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.list a:hover .t { font-family: var(--serif); font-style: italic; font-weight: 400; }
.list a:hover .u { color: var(--ink); }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--pad); border-top: 1px solid var(--rule);
}
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar .clock { display: none; }
  .bar nav { gap: 16px; }
  .brand { white-space: nowrap; }
  .list a, .list .row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  .brand .word { display: none; }
}
