/* ---------- tokens ---------- */
:root {
  --bg: #f6f3ee;
  --ink: #1c1a17;
  --muted: #6f685f;
  --line: #ddd6cb;
  --accent: #b5562e;
  --ph-a: #e7dfd2;
  --ph-b: #ded4c4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513;
    --ink: #eee9e1;
    --muted: #9c948a;
    --line: #2f2c28;
    --accent: #e0855c;
    --ph-a: #23211e;
    --ph-b: #1e1c1a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #161513;
    --ink: #eee9e1;
    --muted: #9c948a;
    --line: #2f2c28;
    --accent: #e0855c;
    --ph-a: #23211e;
    --ph-b: #1e1c1a;
  color-scheme: dark;
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(48px, 9vw, 120px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; margin: 0; }
p { margin: 0 0 1em; max-width: 65ch; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; }
.lede { font-size: clamp(19px, 2vw, 23px); color: var(--muted); max-width: 40ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

main, .site-header, .site-footer { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
main > section, main > header { margin-block: clamp(56px, 9vw, 120px); }

/* ---------- header / footer ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-block: 24px; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 22px; }
nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; }
nav a[aria-current="page"] { color: var(--accent); }
.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-block: 32px 48px; border-top: 1px solid var(--line); font-size: 15px;
}
.site-footer div:first-child { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- placeholders (shown until you add a real image) ---------- */
.ph {
  background: repeating-linear-gradient(115deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px);
  border-radius: 2px;
}

/* ---------- home ---------- */
.hero h1 { margin-bottom: .3em; }
.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.discipline { display: block; }
.disc-img { aspect-ratio: 4 / 5; transition: opacity .25s; }
.discipline:hover .disc-img { opacity: .85; }
.disc-text { padding-top: 16px; }
.disc-text h2 { margin-bottom: .15em; }
.num { font-size: 13px; color: var(--accent); letter-spacing: .1em; }

.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; }

.contact { text-align: center; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.contact p { margin-inline: auto; }
.button {
  display: inline-block; margin-top: 8px; padding: 14px 28px;
  border: 1px solid var(--ink); border-radius: 999px; font-size: 16px;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--ink); color: var(--bg); }

/* ---------- portfolio pages ---------- */
.page-head h1 { margin-bottom: .2em; }
.page-head .eyebrow a { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
.card-img { aspect-ratio: 4 / 3; margin-bottom: 14px; transition: opacity .25s; }
.card:hover .card-img { opacity: .85; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card p { margin-top: 4px; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.split h2 + * { margin-bottom: 2em; }

.headshots { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(12px, 2vw, 24px); }
.headshot { aspect-ratio: 4 / 5; object-position: 60% 30%; }
.portrait { object-position: 60% 30%; }

/* awards strip */
.awards { border-block: 1px solid var(--line); padding-block: 28px; }
.awards .eyebrow { font-family: var(--sans); font-size: 13px; margin-bottom: 16px; }
.awards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.awards li { display: grid; gap: 4px; min-width: 0; align-content: start; }
.award-year { font-size: 13px; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.awards strong { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.awards .muted { font-size: 14px; }
.video { aspect-ratio: 16 / 9; }
.video iframe { width: 100%; height: 100%; border: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
.video-item { margin: 0; }
.project-videos { grid-template-columns: 1fr; }
.video-item .video { margin-bottom: 14px; }
.video-item p { margin-top: 4px; font-size: 15px; }
.video-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: var(--bg); border-radius: 2px; font-size: 15px; }
.video-link:hover { color: var(--bg); opacity: .9; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent currentColor; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; }

.credits { width: 100%; border-collapse: collapse; font-size: 15px; }
.credits th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.credits th, .credits td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* project page */
.hero-img { aspect-ratio: 16 / 9; }
.project-body { grid-template-columns: 1fr 2fr; }
.project-body .tags { margin-top: 1.5em; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 24px); }
.gallery-img { aspect-ratio: 4 / 3; }
.credit { font-size: 13px; margin-top: -40px; margin-bottom: 56px; }
.next { display: block; padding-block: 40px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); margin-bottom: 40px; }
.next span { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .disciplines, .about, .split, .project-body, .gallery { grid-template-columns: 1fr; }
  .headshots { grid-template-columns: repeat(min(var(--n, 2), 2), 1fr); }
  .credits thead { display: none; }
  .credits tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .credits td { border: 0; padding: 0; }
  .credits td:nth-child(n+3) { grid-column: 2; color: var(--muted); }
}
