/* Homepage index and quiet typographic project identifiers. */

.hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.35rem, 6.6vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 49ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.9vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
}

.work-index {
  padding-block: 1rem;
}

.work-index .card-label {
  color: var(--muted);
}

.work-index-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line-strong);
  text-decoration: none;
}

.work-index-row:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.index-number {
  align-self: start;
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.work-index-row strong,
.work-index-row small {
  display: block;
}

.work-index-row strong {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.work-index-row small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.work-index-row:hover strong,
.work-index-row:focus-visible strong,
.project-card h3 a:hover,
.project-card h3 a:focus-visible,
.note-card h3 a:hover,
.note-card h3 a:focus-visible {
  color: var(--accent);
}

.project-mark {
  display: inline-block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.projects-section { background: var(--surface); }

.project-grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line-strong);
}

.project-identity .project-mark { margin-bottom: 1.1rem; }

.project-kicker {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.project-card h3 a,
.note-card h3 a { text-decoration: none; }

.project-description { padding-top: 0.1rem; }

.project-promise {
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.project-state {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.project-status {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.project-state p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.project-card .text-link { font-size: 0.9rem; }

.notes-section { background: var(--bg); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}

.note-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: end;
  padding-block: 2.5rem;
}

.note-card h3 {
  max-width: 24ch;
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.note-card-featured h3 {
  max-width: 24ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.note-meta span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.note-card p:last-child {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.evidence-section { background: var(--surface); }

@media (max-width: 980px) {
  .hero-grid { gap: 2.5rem; }
  .project-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1.5rem 2.5rem;
  }
  .project-identity { grid-row: span 2; }
  .project-state {
    grid-column: 2;
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .work-index { max-width: 620px; }
  .note-card-featured { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 0; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 4.4rem); }
  .lede { font-size: 1.05rem; }
  .project-card { grid-template-columns: 1fr; gap: 1.25rem; }
  .project-identity { grid-row: auto; }
  .project-identity .project-mark { float: right; margin: 0 0 0.5rem 1rem; }
  .project-state { grid-column: auto; }
  .notes-grid { grid-template-columns: 1fr; }
}
