:root {
  color-scheme: light;
  --ink: #111817;
  --muted: #596663;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --line: #dce2de;
  --teal: #0a7a70;
  --red: #b64235;
  --gold: #b98220;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(10, 122, 112, 0.13), transparent 34rem),
    linear-gradient(245deg, rgba(182, 66, 53, 0.10), transparent 32rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
}

.brand,
nav,
.actions,
.contact-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-weight: 850;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.86rem;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 1.25rem 4.5rem;
}

.hero {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.eyebrow,
.label,
.project-type {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8ch;
  margin-bottom: 1.4rem;
  font-size: 7.8rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 47rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.75;
}

.actions {
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.primary,
.secondary,
.project a,
.contact-links a {
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.primary,
.secondary {
  padding: 0.82rem 1rem;
}

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

.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 4rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.status-strip p,
.project p,
.writing-list a,
.contact h2 {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin-bottom: 0;
  font-size: 2.9rem;
  line-height: 1;
  letter-spacing: 0;
}

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

.project {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 23, 0.08);
}

.project h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.project a {
  color: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.writing-list {
  display: grid;
  gap: 0.8rem;
}

.writing-list a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.writing-list span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 850;
}

.contact {
  padding-bottom: 0;
}

.contact h2 {
  max-width: 52rem;
  margin-bottom: 1.4rem;
  color: var(--ink);
}

.contact-links {
  flex-wrap: wrap;
}

.contact-links a {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: white;
}

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

@media (max-width: 700px) {
  .topbar,
  .section-heading,
  .split,
  .status-strip {
    display: block;
  }

  nav {
    margin-top: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 3.2rem 0;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.2rem;
  }

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

  .status-strip > div + div {
    margin-top: 1.2rem;
  }
}
