:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --fg: #000000;
  --muted: #000000;
  --line: #d8d1c7;
  --surface: #fbf8f2;
  --surface-strong: #ffffff;
  --accent: #000000;
  --accent-soft: #edf1ec;
  --shadow: none;
  --header-height: 58px;
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-family: var(--font-serif);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110f;
  --fg: #eee9df;
  --muted: #b9b0a4;
  --line: #3a352f;
  --surface: #171513;
  --surface-strong: #1d1a17;
  --accent: #a8c8bd;
  --accent-soft: #202a26;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--fg) 30%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  height: var(--header-height);
  justify-content: space-between;
  padding: 0 32px;
}

.brand {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.header-actions a,
.theme-toggle,
.back-link {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-toggle {
  background: transparent;
  border: 0;
  color: var(--fg);
  cursor: pointer;
  min-height: 30px;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent);
}

.home-page {
  height: 100dvh;
  overflow: hidden;
}

.home-shell {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  max-width: 1220px;
  min-height: 0;
  padding: 34px 32px;
  width: 100%;
}

.intro-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.intro-copy {
  max-width: 700px;
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-family: var(--font-sans);
  font-size: 2.85rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 0.98;
  margin-bottom: 18px;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-sans);
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: 0;
  text-transform: uppercase;
}

h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  letter-spacing: 0.006em;
  line-height: 1.32;
  max-width: 52ch;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.contact-links a {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  min-height: 28px;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-transform: uppercase;
}

.contact-links a:hover {
  color: var(--accent);
}

.works-panel {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-left: 30px;
}

.section-heading {
  flex: 0 0 auto;
  padding-bottom: 18px;
}

.works-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.work-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  display: block;
  padding: 15px 0 17px;
  text-decoration: none;
}

.work-item:last-child {
  border-bottom: 1px solid var(--line);
}

.work-item:hover {
  color: var(--accent);
  transform: none;
}

.work-kind {
  color: var(--accent);
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.work-item strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.18;
}

.work-summary {
  color: var(--muted);
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.006em;
  line-height: 1.28;
  margin-top: 7px;
}

.work-page {
  min-height: 100vh;
}

.page-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 62px 32px 86px;
}

.work-layout {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
}

.work-media {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.work-content {
  min-width: 0;
}

.work-content header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.work-meta {
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  gap: 10px;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.work-meta span {
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 4px;
}

.work-article h1 {
  font-size: 2.45rem;
  line-height: 1;
  margin-bottom: 22px;
}

.work-article p,
.work-article li {
  color: var(--muted);
  font-size: 1.18rem;
  letter-spacing: 0.006em;
  line-height: 1.42;
}

.work-article section {
  margin-top: 30px;
}

.work-article ul {
  padding-left: 22px;
}

.external-link {
  color: var(--accent);
  font-weight: 400;
}

.work-hero {
  border: 1px solid var(--line);
  display: block;
  height: auto;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.link-row a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.media-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.video-card {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.video-card h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.video-card video {
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
  width: 100%;
}

@media (max-width: 860px) {
  :root {
    --header-height: 56px;
  }

  .site-header {
    padding: 0 16px;
  }

  .home-shell {
    gap: 16px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 16px;
  }

  .intro-panel {
    padding-left: 0;
    padding-top: 0;
  }

  .intro-copy {
    max-width: none;
  }

  h1 {
    font-size: 2.05rem;
    margin-bottom: 9px;
  }

  .lede {
    font-size: 1.08rem;
    line-height: 1.32;
    margin-bottom: 0;
  }

  .contact-links {
    gap: 13px;
    margin-top: 13px;
  }

  .contact-links a {
    min-height: 24px;
    padding: 0;
  }

  .works-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }

  .section-heading {
    padding-bottom: 10px;
  }

  .work-item {
    padding: 12px 0 13px;
  }

  .page-shell {
    padding: 38px 18px 68px;
  }

  .work-article h1 {
    font-size: 1.75rem;
  }

  .work-layout {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .work-media {
    position: static;
  }

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

@media (max-width: 520px) {
  .brand {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions a,
  .theme-toggle {
    font-size: 0.7rem;
  }

  .eyebrow {
    font-size: 0.64rem;
    margin-bottom: 5px;
  }

  h1 {
    font-size: 1.52rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .contact-links a {
    font-size: 0.68rem;
  }
}

@media (max-height: 680px) and (min-width: 861px) {
  .home-shell {
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  h1 {
    font-size: 2.35rem;
    margin-bottom: 12px;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.28;
  }

  .contact-links {
    margin-top: 18px;
  }

  .work-summary {
    display: none;
  }
}
