:root {
  --bg: #0b0b0a;
  --surface: #121211;
  --ink: #eceae4;
  --muted: #a09d96;
  --faint: #73716b;
  --line: #262623;
  --accent: #c9a36a;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-optical-sizing: auto;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.pretty { text-wrap: pretty; }
.balance { text-wrap: balance; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 160ms ease-out;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

header { margin-bottom: 12px; }

.mark {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 4px;
}

h1 {
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.lede {
  color: var(--muted);
  max-width: 46em;
  margin: 0;
  font-size: 14px;
}

.tabs > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.tab-bar label {
  cursor: pointer;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.2;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.tab-bar label:hover { color: var(--accent); }

#tab-news:checked ~ .tab-bar label[for="tab-news"],
#tab-watch:checked ~ .tab-bar label[for="tab-watch"],
#tab-stack:checked ~ .tab-bar label[for="tab-stack"],
#tab-sites:checked ~ .tab-bar label[for="tab-sites"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

#tab-news:focus-visible ~ .tab-bar label[for="tab-news"],
#tab-watch:focus-visible ~ .tab-bar label[for="tab-watch"],
#tab-stack:focus-visible ~ .tab-bar label[for="tab-stack"],
#tab-sites:focus-visible ~ .tab-bar label[for="tab-sites"] {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.panel { display: none; }
#tab-news:checked ~ .panels #news,
#tab-watch:checked ~ .panels #watch,
#tab-stack:checked ~ .panels #stack,
#tab-sites:checked ~ .panels #sites { display: block; }

.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cols { display: grid; grid-template-columns: 1fr; }

.card {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.card:last-child { border-bottom: 0; }

.card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

.card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-wrap: pretty;
}

.news .card h3 { font-weight: 400; line-height: 1.3; }

.days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.day-head {
  font-weight: 400;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.when {
  color: var(--faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 0 0 2px;
}

.links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
}
.links a { color: var(--muted); }
.links a:hover { color: var(--accent); }

.groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.group h2 {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skill-list li {
  padding: 4px 12px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.skill-list li:last-child { border-bottom: 0; }

footer {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
}

@media (min-width: 1024px) {
  .cols {
    grid-template-columns: 1fr 1fr;
  }
  .cols .card {
    border-right: 1px solid var(--line);
  }
  .cols .card:nth-child(2n) { border-right: 0; }
  .cols .card:nth-last-child(-n+2) { border-bottom: 0; }
  .cols .card:nth-child(odd):last-child { border-right: 0; }

  .groups {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
}

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

@media (max-width: 1023px) {
  .wrap { width: calc(100% - 24px); }
}
