/* One Gee Labs — single stylesheet for the whole site. */

:root {
  --paper: #f7f5ef;
  --ink: #2b2a27;
  --muted: #6b675c;
  --rule: #d8d4c8;
  --active: #0f6e56;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* Prose font is separate so long pages can switch to a sans later in one line. */
  --prose: var(--mono);

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 16px 3rem;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--active); text-decoration-color: currentColor; }

/* Header: path-style wordmark on the left, nav on the right. */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.site-header .path { font-weight: 600; }
.site-header .path a { text-decoration: none; }
.site-header nav { color: var(--muted); }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--ink); }

h1 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 2.25rem 0 0.25rem;
}
h2 {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 2.5rem 0 0.5rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 1rem;
  font-family: var(--prose);
}

.prose p { font-family: var(--prose); max-width: 38rem; }

/* Project index: ruled rows, status in a narrow left column,
   optional "visit →" link on the right for live projects. */
.index {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.index li {
  display: grid;
  grid-template-columns: 8ch minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
}
.index .desc { color: var(--muted); }
.index .visit { color: var(--active); text-decoration: none; white-space: nowrap; }
.index .visit:hover { text-decoration: underline; }

.status { color: var(--muted); }
.status.active { color: var(--active); }

/* Project detail pages */
.facts {
  display: grid;
  grid-template-columns: 8ch minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 1.5rem 0;
  font-size: 14px;
}
.facts.wide { grid-template-columns: 11ch minmax(0, 1fr); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.launch {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ink);
  text-decoration: none;
}
.launch:hover { border-color: var(--active); }

.site-footer {
  margin-top: 4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}
