:root {
  --bg: #0b1014;
  --bg-elev: #10181e;
  --line: #1d2a33;
  --line-hot: #2f4a58;
  --fg: #e3edf2;
  --muted: #7e939e;
  --accent: #46e3b7;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
}

@font-face {
  font-family: "Newsreader Artspecta";
  src: url("fonts/Newsreader72pt-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 12vh 24px 64px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */

.title {
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.title .dot { color: var(--accent); }

.caret {
  display: inline-block;
  width: 0.55em;
  height: 0.9em;
  margin-left: 0.12em;
  background: var(--accent);
  vertical-align: -0.06em;
  animation: blink 1.15s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}

.tagline {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- sections ---------- */

.label {
  margin: 64px 0 18px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before { content: "// "; color: var(--line-hot); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ---------- project card ---------- */

.card {
  display: block;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  border-color: var(--line-hot);
  text-decoration: none;
  transform: translateY(-2px);
}

.card-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}

.wordmark {
  display: inline-flex;
  gap: 3px;
  align-items: baseline;
  color: #f4f0e7;
  font-family: "Newsreader Artspecta", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark-text { letter-spacing: inherit; }

.wordmark-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8c6b0;
}

.badge {
  position: absolute;
  left: 50%;
  top: 68%;
  transform: translate(-50%, -50%);
  padding: 5px 12px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  background: rgba(11, 16, 20, 0.82);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.card-meta { padding: 14px 16px 16px; }

.card-name { display: block; font-weight: 700; }

.card-note { display: block; color: var(--muted); font-size: 0.85rem; }

/* ---------- legal pages ---------- */

.back { color: var(--muted); font-size: 0.85rem; }
.back:hover { color: var(--accent); }

.legal { max-width: 68ch; }
.legal h1 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 18px 0 8px; }
.legal h2 { font-size: 0.95rem; margin: 34px 0 6px; color: var(--accent); }
.legal p { margin: 6px 0; }
.legal address { font-style: normal; color: var(--fg); }
.legal .muted { color: var(--muted); font-size: 0.85rem; }
.legal ul { padding-left: 1.1em; margin: 6px 0; }

/* ---------- footer ---------- */

.foot {
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
