:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #242020;
  --muted: #686060;
  --line: #e7dfe0;
  --soft: #f7f4f3;
  --accent: #a51c30;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151719;
  --ink: #f0ece9;
  --muted: #b5aeac;
  --line: #383436;
  --soft: #202325;
  --accent: #f08b9a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 17px/1.7 "PT Serif", Georgia, serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, summary, .eyebrow, nav, .project-meta, .project-links, footer, figcaption { font-family: "Libre Franklin", "Segoe UI", sans-serif; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .5rem 1rem; background: var(--bg); z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { background: #a51c30; color: white; }
.header-inner { max-width: 1180px; margin: auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; }
.site-header a { color: white; text-decoration: none; }
.site-logo { font: bold 21px "Libre Baskerville", Georgia, serif; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.site-header [aria-current] { text-decoration: underline; text-underline-offset: 8px; }
.theme-toggle { background: transparent; border: 1px solid #ffffff70; color: white; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; flex-shrink: 0; }
main, .footer-inner { max-width: 1180px; margin: auto; padding: 0 32px; }
.intro { padding: 44px 0 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.2; letter-spacing: -.045em; margin: 0 0 24px; }
.intro-bottom { display: grid; grid-template-columns: 1fr 230px; gap: 65px; align-items: start; }
.intro-copy { max-width: 700px; }
.intro-copy p { margin: 0; font-size: 19px; color: var(--muted); }
.intro-copy strong { color: var(--ink); font-weight: 400; }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font: 13px/1.8 "Libre Franklin", sans-serif; }
.intro-aside { border-left: 1px solid var(--line); padding-left: 24px; font-size: 14px; color: var(--muted); }
.intro-aside p { margin: 0 0 10px; }
.section-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; gap: 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; }
.section-nav a { text-decoration: none; color: var(--muted); }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--accent); }
.section-nav .back-top { margin-left: auto; }
.collection { padding-top: 52px; }
.collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 26px; }
.collection-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.collection-heading span { font: 11px "Libre Franklin", sans-serif; color: var(--muted); }
.project { border-bottom: 1px solid var(--line); padding: 0 0 48px; margin-bottom: 44px; scroll-margin-top: 85px; }
.project-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 42px; align-items: center; }
figure { margin: 0; min-width: 0; }
.project-media { background: var(--soft); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-media img, .project-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-media a { display: block; width: 100%; height: 100%; }
figcaption { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.project-meta { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: var(--accent); margin: 0 0 12px; }
h3 { margin: 0 0 17px; font-size: clamp(24px, 2.6vw, 33px); line-height: 1.3; letter-spacing: -.035em; }
.project-copy > p:not(.project-meta) { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.project-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.project-links a { padding: 7px 0; }
details { margin-top: 24px; }
summary { cursor: pointer; width: fit-content; font-size: 12px; color: var(--accent); padding: 8px 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; padding-top: 20px; }
.gallery a { display: flex; height: 100%; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.contact { padding: 20px 0 64px; }
.contact h2 { margin-bottom: 12px; font-size: 32px; }
.contact p { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 11px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.lightbox { border: 1px solid var(--line); padding: 48px 20px 20px; background: var(--bg); color: var(--ink); max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: #000b; }
.lightbox img { display: block; max-width: 86vw; max-height: 74vh; object-fit: contain; }
.lightbox button { position: absolute; right: 14px; top: 10px; padding: 5px 12px; color: var(--ink); border: 1px solid var(--line); background: var(--soft); }
.lightbox p { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .site-header nav { order: 3; width: 100%; gap: 22px; font-size: 12px; }
  .intro { padding-top: 44px; }
  .intro-bottom { grid-template-columns: 1fr; gap: 24px; }
  .intro-aside { display: none; }
  .project-layout { grid-template-columns: 1fr; gap: 24px; }
  .project-copy { max-width: 640px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-nav { gap: 20px; font-size: 11px; }
}
@media (max-width: 480px) {
  main, .footer-inner, .header-inner { padding-left: 20px; padding-right: 20px; }
  .site-header nav { gap: 17px; font-size: 11px; }
  .intro-copy p { font-size: 17px; }
  .section-nav { gap: 17px; }
  .section-nav .back-top { display: none; }
  .collection-heading h2 { font-size: 23px; }
  .collection-heading span { white-space: nowrap; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
