:root {
  color-scheme: light dark;
  --background: #f6f4ef;
  --surface: #ffffff;
  --text: #171717;
  --muted: #5b605a;
  --rule: #d8d3c8;
  --accent: #0b6b5f;
  --accent-strong: #113f67;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #11120f;
    --surface: #1a1b17;
    --text: #f0eee7;
    --muted: #b5b1a6;
    --rule: #34342f;
    --accent: #62c4b4;
    --accent-strong: #9fc7ee;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.page {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 9vh 0 10vh;
}

.hero {
  max-width: 920px;
  margin-bottom: 4.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  font-size: 1.08rem;
}

.summary {
  max-width: 46rem;
  margin-bottom: 1.75rem;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--rule);
}

ul {
  padding-left: 1.15rem;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.proof {
  padding-top: 0;
  border-top: 0;
}

.proof h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proof-grid p,
.work-list article {
  margin: 0;
  padding: 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.proof-grid span {
  display: block;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading .eyebrow {
  margin-top: 0.35rem;
}

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

.work-list article {
  display: flex;
  flex-direction: column;
}

.work-list article p {
  margin-bottom: 1rem;
}

.work-list .meta {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.5rem;
  margin-top: auto;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline article {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.timeline article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.date {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  padding-left: 1.2rem;
}

.contact {
  padding-bottom: 0;
}

.contact p {
  max-width: 42rem;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 1040px);
    padding-top: 6vh;
  }

  .proof-grid,
  .section-heading,
  .work-list,
  .timeline article,
  .theme-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 0.5rem;
  }

  .timeline article {
    gap: 0.4rem;
  }
}
