:root {
  color-scheme: light dark;
  --bg: #f4efe5;
  --text: #231b14;
  --muted: #6e6256;
  --line: rgba(35, 27, 20, 0.18);
  --surface: #fff9ef;
  --surface-2: #e6d8c2;
  --wood: #7d4328;
  --wood-dark: #4d261b;
  --moss: #667150;
  --amber: #c99038;
  --sky: #6f8a8a;
  --shadow: 0 18px 46px rgba(37, 26, 17, 0.16);
  --header: rgba(244, 239, 229, 0.82);
}

[data-theme="dark"] {
  --bg: #171511;
  --text: #f3eadc;
  --muted: #c2b5a3;
  --line: rgba(243, 234, 220, 0.18);
  --surface: #211d18;
  --surface-2: #332b22;
  --wood: #b66b42;
  --wood-dark: #8d4b2e;
  --moss: #87966b;
  --amber: #d7a752;
  --sky: #89a8a5;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  --header: rgba(23, 21, 17, 0.84);
}

* {
  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.5;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--header);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links,
.theme-toggle {
  align-items: center;
  display: flex;
}

.brand {
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand-mark {
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 36%, var(--amber) 36% 48%, transparent 48%),
    linear-gradient(0deg, transparent 36%, var(--moss) 36% 48%, transparent 48%),
    linear-gradient(135deg, var(--wood) 0 48%, var(--sky) 48% 100%);
  border: 1px solid var(--line);
  display: block;
  width: 34px;
}

.nav-links {
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

.nav-links a:hover {
  border-color: var(--amber);
  color: var(--text);
}

.theme-toggle {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  gap: 10px;
  min-height: 42px;
  padding: 4px 0;
}

.toggle-track {
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: inline-flex;
  height: 30px;
  padding: 3px;
  width: 56px;
}

.toggle-knob {
  aspect-ratio: 1;
  background: var(--text);
  display: block;
  height: 22px;
  transition: transform 180ms ease;
}

[data-theme="dark"] .toggle-knob {
  transform: translateX(26px);
}

.theme-label {
  color: var(--muted);
  font-size: 0.82rem;
  min-width: 36px;
  text-align: left;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-scrim,
.hero-grid {
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.06)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 42%);
}

.hero-grid {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(215, 167, 82, 0.32) 18% 18.25%, transparent 18.25% 78%, rgba(215, 167, 82, 0.24) 78% 78.2%, transparent 78.2%),
    linear-gradient(0deg, transparent 0 28%, rgba(255, 255, 255, 0.22) 28% 28.18%, transparent 28.18% 72%, rgba(255, 255, 255, 0.16) 72% 72.16%, transparent 72.16%);
  mix-blend-mode: screen;
  opacity: 0.58;
}

.hero-content {
  color: #fff8ed;
  max-width: 760px;
  padding: 24vh clamp(20px, 7vw, 86px) 16vh;
  position: relative;
  z-index: 1;
}

.hero-content::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2), transparent);
  content: "";
  inset: 0;
  position: absolute;
  width: min(100vw, 900px);
  z-index: 0;
}

.hero-content > * {
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.72);
  z-index: 1;
}

.hero .eyebrow {
  color: #f0bd5b;
}

.eyebrow,
.section-kicker,
.project-type {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.84;
  margin: 0;
}

.hero-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.8vw, 2.45rem);
  line-height: 1.12;
  margin: 32px 0 0;
  max-width: 690px;
}

.band,
.work-section,
.profile-section,
.materials-section,
.contact {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 7vw, 86px);
}

.intro,
.studio {
  align-items: start;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1fr);
}

.intro h2,
.section-heading h2,
.studio h2,
.materials-section h2,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
}

.intro p:not(.section-kicker),
.studio p,
.contact p {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
  margin: 0;
  max-width: 760px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(34px, 6vw, 74px);
}

.section-heading h2 {
  max-width: 720px;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: minmax(210px, 38vh) 1fr;
  min-height: 480px;
}

.project-image,
.materials-section img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.project-art {
  overflow: hidden;
  position: relative;
}

.project-art::before,
.project-art::after {
  content: "";
  position: absolute;
}

.art-terrace {
  background:
    linear-gradient(0deg, var(--wood-dark) 0 18%, transparent 18%),
    linear-gradient(90deg, var(--wood) 0 22%, transparent 22% 100%),
    linear-gradient(0deg, transparent 0 62%, var(--amber) 62% 66%, transparent 66%),
    var(--surface-2);
}

.art-terrace::before {
  background: var(--moss);
  height: 38%;
  left: 32%;
  top: 22%;
  width: 46%;
}

.art-terrace::after {
  border: 1px solid rgba(255, 255, 255, 0.42);
  height: 54%;
  left: 18%;
  top: 16%;
  width: 68%;
}

.art-glass {
  background:
    linear-gradient(90deg, transparent 0 34%, var(--wood) 34% 38%, transparent 38% 62%, var(--wood) 62% 66%, transparent 66%),
    linear-gradient(0deg, transparent 0 28%, var(--amber) 28% 33%, transparent 33% 68%, var(--sky) 68% 73%, transparent 73%),
    var(--surface-2);
}

.art-glass::before {
  background:
    linear-gradient(135deg, transparent 0 48%, var(--wood-dark) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 0 48%, var(--wood-dark) 48% 52%, transparent 52%);
  inset: 16%;
}

.art-glass::after {
  background: rgba(255, 255, 255, 0.24);
  height: 72%;
  left: 45%;
  top: 14%;
  width: 10%;
}

.art-bath {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 26px),
    linear-gradient(90deg, var(--surface-2) 0 60%, var(--wood-dark) 60% 100%);
}

.art-bath::before {
  background: var(--sky);
  height: 9%;
  left: 0;
  top: 18%;
  width: 72%;
}

.art-bath::after {
  background: var(--amber);
  height: 46%;
  left: 18%;
  top: 34%;
  width: 18%;
}

.project-body {
  padding: 28px;
}

.project-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px;
}

.project-body p:last-child {
  color: var(--muted);
  margin: 0;
}

.profile-section {
  border-bottom: 1px solid var(--line);
}

.resume-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resume-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.resume-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 16px;
}

.resume-panel p,
.materials-section p {
  color: var(--muted);
  margin: 0;
}

.skills-strip {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(32px, 5vw, 62px);
  padding-top: 24px;
}

.skills-strip span {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 9px 12px;
}

.studio {
  background:
    linear-gradient(90deg, transparent 0 49.9%, var(--line) 49.9% 50%, transparent 50%),
    var(--surface);
}

.principles {
  display: grid;
  gap: 22px;
}

.principles div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 56px 1fr;
  padding-top: 22px;
}

.principles span {
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.contact {
  min-height: 48vh;
}

.contact p:last-child {
  margin-top: 24px;
}

.contact a {
  border-bottom: 1px solid var(--amber);
  color: var(--text);
}

.materials-section {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
}

.materials-section img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.materials-section p:last-child {
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
  margin-top: 24px;
  max-width: 760px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro,
  .studio,
  .materials-section,
  .section-heading {
    display: block;
  }

  .intro p:not(.section-kicker),
  .studio .principles,
  .materials-section div {
    margin-top: 28px;
  }

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

  .project-card {
    grid-template-rows: 260px 1fr;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 30px;
  }

  .theme-label {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0 46%, rgba(0, 0, 0, 0.68) 68%, rgba(0, 0, 0, 0.22) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
  }

  .hero-grid {
    opacity: 0.22;
  }

  .hero-content {
    color: #fffdf7;
    max-width: none;
    padding: 42vh 20px 8vh;
    width: 100%;
  }

  .hero-content::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.74));
    border-top: 1px solid rgba(240, 189, 91, 0.42);
    inset: 36vh 0 0;
    width: auto;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 24vw, 7rem);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.82);
  }

  .hero-copy {
    font-size: clamp(1.18rem, 6.2vw, 1.55rem);
    line-height: 1.18;
    max-width: 24rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.84);
  }

  .band,
  .work-section,
  .profile-section,
  .materials-section,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .principles div {
    grid-template-columns: 42px 1fr;
  }
}
