:root {
  --bg: #f6f3ee;
  --bg-soft: #ebe1d2;
  --surface: #faf6ef;
  --surface-strong: #f1e8dc;
  --text: #2b2019;
  --muted: #6f5844;
  --accent: #a5522d;
  --accent-dark: #6f351e;
  --line: rgba(62, 43, 31, 0.16);
  --shadow: 0 12px 24px rgba(56, 40, 28, 0.04);
  --radius: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  backdrop-filter: blur(10px);
  background: rgba(246, 243, 238, 0.92);
}

.site-header::after {
  content: none;
}

.brand,
.site-nav a,
.eyebrow,
.tags,
.site-footer p:first-child {
  font-family: "Libre Franklin", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-text {
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a:hover,
.brand:hover {
  color: var(--accent-dark);
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section::before {
  content: none;
}

.hero-bleed {
  width: 100%;
}

.hero-bleed::before {
  content: none;
}

.hero-inner {
  display: block;
}

.hero {
  padding-top: 4rem;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 70%;
  font-size: clamp(3.1rem, 6.2vw, 5rem);
  line-height: 0.98;
}

.section h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  max-width: 20ch;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-text,
.body-copy,
.card p,
.project-card p,
.contact-links a {
  font-size: 1.04rem;
}

.hero-text {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f7f7f5;
}

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

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
}

.project-card,
.writing-section,
.contact-section,
.cta-block {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 4rem;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.7fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.about-copy {
  max-width: 46rem;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  filter: sepia(0.18) contrast(1.02);
  box-shadow: var(--shadow);
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section-action {
  margin-top: 1.5rem;
}

.cards {
  display: grid;
  gap: 1.4rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  padding: 1.6rem;
  border-radius: 16px;
}

.project-card a,
.text-link,
.contact-links a:not(.button) {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #f8f3ec;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.writing-section {
  padding: 1.8rem;
  border-radius: 16px;
  margin-top: 2rem;
}

.writing-copy {
  max-width: 46rem;
}

.writing-links {
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-section {
  display: block;
  align-items: start;
  padding: 1.8rem;
  border-radius: 16px;
  margin-top: 3.5rem;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.site-footer p:last-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
}

@media (max-width: 960px) {
  .about-section,
  .two-column,
  .three-up,
  .project-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    max-width: 70%;
  }

  .section h2 {
    max-width: 18ch;
  }

  .contact-links {
    margin-top: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.9rem;
  }

  .site-nav {
    gap: 0.8rem 1rem;
    justify-content: flex-start;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
    max-width: 100%;
  }

  .cta-block {
    padding: 1.35rem;
    border-radius: 22px;
  }
}
