
:root {
  color-scheme: light;
  --ink: #171a18;
  --muted: #69716c;
  --canvas: #f5f6f3;
  --panel: #ffffff;
  --sidebar: #15221c;
  --sidebar-ink: #f4f6f2;
  --sidebar-muted: #aab8af;
  --line: #d9dfda;
  --green: #176b4d;
  --green-soft: #e4f0ea;
  --red: #b63b2b;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 16px 18px;
  background: var(--sidebar);
  color: var(--sidebar-ink);
  border-right: 1px solid #26372f;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-bottom: 28px;
}
.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #52635a;
  border-radius: 6px;
  background: #f2f5f1;
  color: var(--sidebar);
  font-size: 0.72rem;
  font-weight: 800;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand small {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 0.74rem;
}
.archive-nav,
.nav-group {
  display: grid;
  gap: 3px;
}
.archive-nav { gap: 22px; }
.nav-group.years { padding-bottom: 12px; }
.nav-label,
.eyebrow,
.date {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.nav-label {
  padding: 0 10px 7px;
  color: var(--sidebar-muted);
}
.nav-link {
  display: block;
  min-height: 36px;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 4px;
  color: #dce4df;
  font-size: 0.9rem;
}
.nav-link:hover {
  background: #22342b;
  color: #ffffff;
}
.nav-link.active {
  border-left-color: #68c49a;
  background: #294136;
  color: #ffffff;
  font-weight: 700;
}
.nav-empty {
  margin: 2px 10px;
  color: var(--sidebar-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.sidebar-note {
  margin: auto 8px 0;
  padding-top: 20px;
  color: var(--sidebar-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}
.mobile-header { display: none; }
.content {
  min-width: 0;
  padding-bottom: 56px;
}
.page-header {
  padding: 34px clamp(20px, 4vw, 52px) 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--green);
}
.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.page-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}
.page-title-row p {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pager {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px clamp(16px, 3vw, 34px);
}
.pager a,
.pager span {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.84rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 14px;
  padding: 16px clamp(14px, 3vw, 34px) 20px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 28, 22, 0.04);
}
.card:hover {
  border-color: #b7c3bb;
  box-shadow: 0 5px 16px rgba(17, 28, 22, 0.08);
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7ebe8;
}
.card video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}
.card h2 {
  margin: 5px 12px 14px;
  min-height: 2.5em;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0;
}
.card .date {
  display: block;
  margin: 12px 12px 0;
  color: var(--red);
}
.video-card h2 { min-height: 0; }
.empty-state {
  min-height: 300px;
  padding: 70px clamp(22px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.empty-state h2 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.05;
}
.empty-state > p:last-child,
.empty-copy {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.archive-list {
  width: min(760px, calc(100% - 40px));
  margin: 30px auto;
  border-top: 1px solid var(--line);
}
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.archive-row:hover { color: var(--green); }
.archive-row span {
  font-size: 1.1rem;
  font-weight: 700;
}
.archive-row strong {
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .mobile-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: var(--sidebar);
    color: var(--sidebar-ink);
    border-bottom: 1px solid #26372f;
  }
  .mobile-header .brand { margin: 0; }
  .mobile-header .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .mobile-header details { position: relative; }
  .mobile-header summary {
    min-width: 52px;
    padding: 7px 9px;
    border: 1px solid #52635a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    list-style: none;
    text-align: center;
  }
  .mobile-header summary::-webkit-details-marker { display: none; }
  .mobile-menu {
    position: absolute;
    top: 43px;
    right: 0;
    width: min(280px, calc(100vw - 28px));
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #364a40;
    border-radius: 6px;
    background: var(--sidebar);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }
  .page-header { padding-top: 28px; }
}
@media (max-width: 600px) {
  .page-title-row {
    display: block;
  }
  .page-title-row h1 { font-size: 2.25rem; }
  .page-title-row p { margin-top: 11px; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 8px 14px;
  }
  .card h2 {
    margin-right: 9px;
    margin-left: 9px;
    font-size: 0.8rem;
  }
  .card .date {
    margin-right: 9px;
    margin-left: 9px;
    font-size: 0.64rem;
  }
  .empty-state { min-height: 260px; padding-top: 52px; }
}
