:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #191b1f;
  --muted: #5d6570;
  --line: #dedbd2;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --shadow: 0 18px 40px rgba(25, 27, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

.site-header,
.site-footer,
.section {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 0.85rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.nav,
.site-footer {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.section {
  padding: 64px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - 92px);
  padding-top: 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.thread-label {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 5.4vw, 4.35rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-quote {
  max-width: 620px;
  margin: 28px 0 0;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.hero-quote blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-quote figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: white;
}

.portrait {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-copy {
  max-width: 680px;
  font-size: 1.08rem;
}

.story-copy p,
.thread p,
.project p {
  margin: 14px 0 0;
  color: var(--muted);
}

.story-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 28px;
}

.thread-list,
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.thread,
.project {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.thread a,
.project a {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

  .hero {
    min-height: auto;
  }

  .portrait {
    max-width: 360px;
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    gap: 34px;
    padding-top: 28px;
  }

  h1 {
    font-size: 3rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
