:root {
  color-scheme: light;
  --bg: #faf7f1;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #241f2f;
  --muted: #655f6f;
  --accent: #6d3fd1;
  --accent-strong: #4c24a3;
  --accent-soft: #e9ddff;
  --wood: #6b4a32;
  --line: rgba(36, 31, 47, 0.13);
  --shadow: 0 24px 70px rgba(60, 41, 92, 0.16);
}

body.dark {
  color-scheme: dark;
  --bg: #121018;
  --surface: #1b1723;
  --surface-strong: #241e31;
  --text: #f8f3ea;
  --muted: #c8bed2;
  --accent: #b99cff;
  --accent-strong: #d9ccff;
  --accent-soft: rgba(185, 156, 255, 0.16);
  --wood: #d2a36f;
  --line: rgba(248, 243, 234, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--surface));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 36%, transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a,
.path-card a {
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover,
.path-card a:hover {
  color: var(--accent-strong);
}

.theme-toggle,
.button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68rem 0.9rem;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 5rem);
}

.eyebrow,
.card-kicker,
.date {
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 13.5ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.35rem, 6.6vw, 6.2rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 28%, transparent);
}

.button.secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-scene {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.contact p,
.path-card p,
.work-list p,
.article-grid p {
  color: var(--muted);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

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

.path-card,
.article-grid article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-strong);
}

.path-card a {
  color: var(--accent-strong);
  font-weight: 800;
}

.work-list {
  display: grid;
  gap: 0.85rem;
}

.work-list article {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.work-list span {
  color: var(--accent-strong);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.85rem 0.9rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero,
  .intro,
  .contact,
  .path-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .hero-scene {
    min-height: 24rem;
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 0.95rem;
  }

  .theme-text {
    display: none;
  }

  .section {
    width: min(100% - 1rem, 1120px);
  }

  .work-list article {
    grid-template-columns: 1fr;
  }

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