:root {
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;
  --muted-2: #9b9b9b;
  --line: #e8e6df;
  --bg: #f7f5ef;
  --paper: #ffffff;
  --accent: #b91c1c;
  --good: #15803d;
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ─── Masthead ─── */
.masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 16px;
}
.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.kicker a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(46px, 7.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin: 0 0 14px;
  color: var(--ink);
}

.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.4;
}

/* ─── Filters: text-only, sits on background, no boxes ─── */
.filters {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.seg {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}
.seg:hover { color: var(--ink); }
.seg.active {
  color: var(--ink);
  font-weight: 700;
}
.seg.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--ink);
  margin-top: 3px;
  border-radius: 2px;
}

.filter-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 6px;
}

.lab-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 22px 6px 10px;
  cursor: pointer;
  outline: none;
  border-radius: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%236b6b6b' d='M5 6L0 0h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.lab-select:hover { color: var(--ink); }
.lab-select.has-selection { color: var(--ink); font-weight: 700; }

/* ─── Feed ─── */
.feed {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}
.loading, .empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

/* ─── Day section ─── */
.day-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.day-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.day-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(26px, 3.8vw, 38px);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
}
.day-sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.day-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Row ─── */
.row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.row:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}
.avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--muted);
}

.row-body { min-width: 0; }
.row-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
}
.row-name:hover { text-decoration: underline; text-underline-offset: 3px; }

.row-move {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.co-side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.co-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg);
  object-fit: contain;
  flex-shrink: 0;
}
.co-logo.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
}
.co-text { min-width: 0; }
.co-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-arrow {
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.tag {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.departure { color: var(--accent); }
.tag.arrival { color: var(--good); }
.row-age {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ─── Footer ─── */
.footer {
  margin-top: 56px;
  padding: 24px 24px 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .masthead-inner { padding: 32px 18px 14px; }
  .filters { padding: 20px 18px 4px; gap: 6px 12px; }

  .feed { padding: 22px 18px; gap: 36px; }

  .row {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .avatar { width: 44px; height: 44px; }
  .row-name { font-size: 17px; }
  .row-meta {
    grid-column: 2 / -1;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 4px;
  }
  .co-logo { width: 20px; height: 20px; }
}
