/* Quiet and plain: Geist for text, Geist Mono for small labels, neutral
   greys, and no color except a green dot on live data. */

:root {
  color-scheme: light;
  --bg: #fafafa;
  --ink: #111111;
  --ink-2: #666666;
  --rule: #e4e4e4;
  --live: #16a34a;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 5vw, 40px);
  --width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0b0c;
    --ink: #ededed;
    --ink-2: #a1a1a1;
    --rule: #262626;
    --live: #22c55e;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  max-width: var(--width);
  margin: 0 auto;
  padding: clamp(64px, 14vh, 128px) var(--gutter) 64px;
}

/* ------------------------------------------------------------ intro */

.name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bio {
  margin: 10px 0 0;
  max-width: 52ch;
  color: var(--ink-2);
}

.elsewhere {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.elsewhere a,
.meta a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.15s;
}

.elsewhere a:hover,
.meta a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------ projects */

.label {
  margin: 72px 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The title link covers the whole tile; the links in .meta sit above it. */
.tile {
  position: relative;
}

.cover::after {
  content: '';
  position: absolute;
  inset: 0;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 0.15s;
}

.tile:hover .shot {
  border-color: var(--ink-2);
}

.title {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.text {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 0;
}

.meta a {
  position: relative;
  z-index: 1;
}

#mbta-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}

#mbta-live[hidden] {
  display: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

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

.foot {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}

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

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