:root {
  color-scheme: dark;
  --ink: #eef5f2;
  --muted: #97aaa7;
  --faint: #829794;
  --canvas: #061117;
  --sidebar: #081821;
  --panel: #0d2029;
  --panel-strong: #102832;
  --line: rgba(177, 211, 203, 0.14);
  --teal: #62c8b5;
  --teal-deep: #1b826f;
  --gold: #d8b66b;
  --red: #e45655;
  --blue: #78aeea;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% -8%, rgba(34, 128, 111, 0.18), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  background: rgba(8, 24, 33, 0.88);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(98, 200, 181, 0.55);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(98, 200, 181, 0.18), rgba(98, 200, 181, 0.02));
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow,
.kicker,
.project-area {
  margin: 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-name {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.section-nav {
  display: grid;
  gap: 7px;
  margin-top: 52px;
}

.nav-link {
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  border-left-color: var(--teal);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(98, 200, 181, 0.09), transparent 82%);
}

.sidebar-note {
  margin-top: auto;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-note p {
  margin: 0;
}

.sidebar-note .sidebar-note-title {
  margin-bottom: 7px;
  color: var(--gold);
  font-weight: 700;
}

.content {
  width: min(1420px, 100%);
  padding: 48px clamp(24px, 5vw, 76px) 34px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin: 8px 0 8px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.98;
}

h2 {
  margin: 5px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
}

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

.primary-action,
.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-action {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 19px;
  background: var(--teal);
  color: #062119;
}

.primary-action:hover,
.primary-action:focus-visible,
.open-link:hover,
.open-link:focus-visible {
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.stat-card {
  position: relative;
  min-height: 120px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(16, 40, 50, 0.96), rgba(10, 28, 36, 0.9));
}

.stat-card::after {
  position: absolute;
  top: -38px;
  right: -38px;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(98, 200, 181, 0.07);
  border-radius: 50%;
  content: "";
}

.stat-card.attention::after {
  border-color: rgba(216, 182, 107, 0.09);
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
}

.stat-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.focus-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 20px;
  padding: 24px 26px;
  border: 1px solid rgba(98, 200, 181, 0.23);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(27, 130, 111, 0.13), rgba(13, 32, 41, 0.55));
}

.portfolio-lanes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.portfolio-lanes span,
.platform-chip,
.canonical-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.portfolio-lanes span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.directory-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
}

.search-box {
  display: grid;
  width: min(430px, 100%);
  gap: 7px;
}

.search-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 47px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--faint);
}

.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(98, 200, 181, 0.13);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  border-color: rgba(98, 200, 181, 0.48);
  background: rgba(98, 200, 181, 0.1);
  color: var(--ink);
}

.directory-section {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  text-align: right;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(16, 40, 50, 0.8), rgba(8, 24, 33, 0.93));
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 200, 181, 0.28);
}

.project-card[data-status="review"] {
  border-color: rgba(216, 182, 107, 0.24);
}

.project-card[data-status="unpublished"] {
  background: rgba(8, 24, 33, 0.55);
  box-shadow: none;
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(98, 200, 181, 0.09);
}

[data-status="review"] .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 182, 107, 0.09);
}

[data-status="unpublished"] .status-dot {
  background: var(--faint);
  box-shadow: 0 0 0 4px rgba(110, 130, 128, 0.09);
}

.platform-chip,
.canonical-label {
  padding: 4px 8px;
}

.card-copy {
  margin-top: 27px;
}

.project-area {
  color: var(--teal);
  font-size: 0.69rem;
}

.project-title {
  margin: 7px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  line-height: 1.15;
}

.project-description,
.project-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  background: rgba(216, 182, 107, 0.055);
  color: #c6b98e;
  font-size: 0.82rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 22px;
}

.canonical-label:empty {
  visibility: hidden;
}

.open-link {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid rgba(98, 200, 181, 0.42);
  color: var(--teal);
  font-size: 0.84rem;
}

.no-link {
  color: var(--faint);
  font-size: 0.82rem;
}

.empty-state {
  margin-top: 28px;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.cleanup-note {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(300px, 1.25fr);
  gap: 35px;
  margin-top: 48px;
  padding: 28px;
  border-top: 1px solid rgba(216, 182, 107, 0.35);
  border-bottom: 1px solid rgba(216, 182, 107, 0.18);
  background: linear-gradient(90deg, rgba(216, 182, 107, 0.07), transparent);
}

.cleanup-note .eyebrow {
  color: var(--gold);
}

.cleanup-note p:last-child {
  margin: 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
}

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

@media (max-width: 1150px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-nav {
    display: flex;
    gap: 2px;
    margin-top: 16px;
    overflow-x: auto;
  }

  .nav-link {
    flex: 0 0 auto;
    border-bottom: 2px solid transparent;
    border-left: 0;
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.active {
    border-bottom-color: var(--teal);
    border-left-color: transparent;
    background: transparent;
  }

  .sidebar-note {
    display: none;
  }

  .content {
    padding-top: 34px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .focus-panel,
  .directory-tools,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    align-self: flex-start;
  }

  .portfolio-lanes,
  .filter-group {
    justify-content: flex-start;
  }

  .section-heading p {
    text-align: left;
  }

  .card-grid,
  .cleanup-note {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 250px;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 430px) {
  .content {
    padding-right: 17px;
    padding-left: 17px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    min-height: 108px;
    padding: 15px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
