:root {
  --bg: #f6f4ef;
  --surface: #fbfaf6;
  --surface-alt: #f0ede6;
  --ink: #101010;
  --muted: #6d6d68;
  --line: rgba(16, 16, 16, 0.18);
  --line-strong: rgba(16, 16, 16, 0.88);
  --accent: #1a4cff;
  --max-width: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 3rem, 3rem 100%, auto;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.hero,
.manifesto,
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero {
  padding: 1rem 1rem 1.25rem;
}

.hero-kicker,
.eyebrow,
.panel-label,
.card-index,
.card-meta,
.button {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(280px, 0.9fr);
  gap: 1rem;
  padding-top: 1rem;
}

.hero-copy,
.hero-panel {
  min-width: 0;
  padding: 0.25rem 0;
}

.eyebrow,
.panel-label {
  color: var(--muted);
}

h1,
h2 {
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 9ch;
  margin-top: 0.4rem;
  font-size: clamp(3.6rem, 9vw, 8.6rem);
}

.hero-text,
.manifesto p,
.work-card p,
.signal-list {
  font-size: 1rem;
  line-height: 1.45;
}

.hero-text {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  color: var(--surface);
}

.button-primary {
  background: var(--ink);
  color: var(--surface);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.signal-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.signal-list li {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.manifesto {
  margin-top: 1rem;
  padding: 1.1rem 1rem;
}

.manifesto p {
  max-width: 46rem;
  color: var(--muted);
}

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

.work-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 260px;
  padding: 1rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.work-card h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.work-card p {
  max-width: 30rem;
  color: var(--muted);
}

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

.card-meta {
  color: var(--accent);
}

.accent-dark,
.accent-light,
.accent-alert {
  background: var(--surface);
}

.work-card:hover,
.work-card:focus-visible {
  background: #ffffff;
  border-color: var(--line-strong);
}

.button:focus-visible,
.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, var(--max-width));
    padding-bottom: 2rem;
  }

  .hero-kicker {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
