/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
/* B▸V mark: glyphs, play dot and scrub bar all paint in currentColor,
   so it follows .logo's color (ink in the nav, on-dark in the footer). */
.logo-mark { height: 34px; width: auto; flex-shrink: 0; overflow: visible; }
.site-footer .logo { color: var(--on-dark); }

.nav-right { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.95rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
}
/* The ↗ marks only links that leave the site (email). */
.btn[href^="mailto:"]::after { content: "↗"; font-size: 0.95em; }
.btn:hover { background: var(--white); color: var(--ink); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn--light:hover { background: transparent; color: var(--on-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.arrow-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
a:hover > .arrow-btn, a:hover .arrow-btn { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── ART PANELS (dot-matrix illustrations from assets/img) ── */
.art {
  background: var(--gray);
  border: 1px solid var(--line);
  overflow: hidden;
}
.art picture { display: block; width: 100%; height: 100%; }
.art img { width: 100%; height: 100%; object-fit: cover; }

/* ── TAGS + META ── */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
}

/* ── CELL GRID: bordered cells sharing hairlines ── */
.cells {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.cell p { color: var(--ink-2); font-size: 0.95rem; }
.cell .art { aspect-ratio: 4 / 3; margin: -2rem -2rem 1rem; border: none; border-bottom: 1px solid var(--line); }
a.cell:hover .h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ── ARTICLE CARDS (3-up grids) ── */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background: var(--white);
}
.card .art { aspect-ratio: 16 / 10; border: none; border-bottom: 1px solid var(--line); }
.card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; flex: 1; }
.card-body .h3 { font-size: 1.1rem; }
.card-body .arrow-btn { margin-top: auto; align-self: flex-end; }
/* One featured post: art left, text right */
.card--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.card--wide .art { aspect-ratio: auto; min-height: 280px; border-bottom: none; border-right: 1px solid var(--line); }
.card--wide .card-body { padding: 2.5rem; gap: 0.85rem; }
.card--wide .h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.card--wide p { color: var(--ink-2); }

/* ── GROUPED TABLE (careers-style: group label left, rows right) ── */
.groups { border: 1px solid var(--line); }
.group { display: grid; grid-template-columns: 220px 1fr; }
.group + .group { border-top: 1px solid var(--line); }
.group-label { padding: 1.75rem 2rem; font-weight: 500; border-right: 1px solid var(--line); }
.group-rows { list-style: none; }
.group-row + .group-row { border-top: 1px solid var(--line); }
.group-row > div { padding: 1.5rem 2rem; }
.group-row strong { display: block; font-weight: 500; margin-bottom: 0.2rem; }
.group-row p { font-size: 0.9rem; color: var(--ink-3); }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 3rem 0 0; }
.footer-box { border: 1px solid var(--dark-line); }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--dark-line);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding: 3rem 2rem;
}
.footer-main .h3 { color: var(--on-dark); font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.footer-main p { font-size: 0.95rem; max-width: 360px; }
.footer-col ul { list-style: none; }
.footer-col li + li { border-top: 1px solid var(--dark-line); }
.footer-col a {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--on-dark-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
}
