:root {
  color-scheme: dark;
  --ink: #f3f0e7;
  --muted: #a8a69d;
  --paper: #161713;
  --panel: #20211c;
  --line: #3a3b32;
  --lime: #c9f27c;
  --orange: #ff8f5a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 4%, rgba(201, 242, 124, 0.09), transparent 25rem),
    var(--paper);
}

a {
  color: inherit;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 58vh;
  padding: 72px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.card-kind,
.section-heading span,
.hero-note span,
footer {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 36px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(201, 242, 124, 0.09);
}

h1 {
  margin: 0;
  max-width: 8ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 12vw, 9.5rem);
  font-weight: 400;
  line-height: 0.75;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--lime);
  font-weight: 400;
}

.lede {
  max-width: 590px;
  margin: 50px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-note {
  border-top: 2px solid var(--lime);
  padding-top: 20px;
}

.hero-note span {
  color: var(--lime);
}

.hero-note p {
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.projects {
  padding: 70px 0 96px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.section-heading span {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  text-decoration: none;
  background: rgba(32, 33, 28, 0.72);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--lime);
  pointer-events: none;
  transition: border-width 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  background: var(--lime);
  color: #171812;
  outline: none;
}

.project-card:hover::before,
.project-card:focus-visible::before {
  border-width: 4px;
}

.project-card:hover p,
.project-card:hover .card-kind,
.project-card:focus-visible p,
.project-card:focus-visible .card-kind {
  color: #343629;
}

.project-card.featured {
  grid-column: span 2;
  min-height: 380px;
  background:
    linear-gradient(110deg, rgba(22, 23, 19, 0.84), rgba(22, 23, 19, 0.2)),
    repeating-linear-gradient(135deg, rgba(201, 242, 124, 0.08) 0 1px, transparent 1px 12px),
    #25271e;
}

.project-card.featured:hover,
.project-card.featured:focus-visible {
  background: var(--lime);
}

.card-number {
  align-self: flex-end;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
}

.card-kind {
  margin: 0 0 15px;
  color: var(--lime);
}

.project-card h3 {
  margin: 0;
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.project-card p:not(.card-kind) {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.open-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.open-label span {
  font-size: 1.4rem;
}

footer {
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  main {
    width: calc(100% - 28px);
    max-width: 620px;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 50px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  h1 {
    font-size: clamp(4.5rem, 26vw, 7.2rem);
  }

  .lede {
    margin-top: 38px;
  }

  .hero-note {
    max-width: 360px;
  }

  .projects {
    padding: 50px 0 70px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .project-card,
  .project-card.featured {
    grid-column: auto;
    min-height: 300px;
    padding: 24px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card::before {
    transition: none;
  }
}

/* Verdict from the nightly public-demo audit. Written by
   cybernetic_influence_v3/scripts/audit_public_demo.py between sentinels in the
   card; a failing audit that only reaches a log on this host is a control
   nobody reads. */
.card-audit {
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.75;
  letter-spacing: 0.01em;
}
