:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --ink: #28251f;
  --muted: #625b4f;
  --line: #c8beac;
  --accent: #9a3c27;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.mast, footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; }
.mast { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.32rem; font-weight: bold; }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.75rem); display: grid; grid-template-columns: 1fr auto; gap: 1.4rem 3rem; align-items: end; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.05; }
h1 { font-size: clamp(3.3rem, 10.2vw, 8.25rem); letter-spacing: -.065em; }
.lede { margin-top: 1rem; max-width: 52ch; font-size: clamp(1.08rem, 2.15vw, 1.45rem); line-height: 1.48; }
.byline { display: flex; gap: .8rem; align-items: center; font-size: .875rem; color: var(--muted); }
.byline img { width: 4rem; filter: grayscale(1); border-radius: 50%; }
.feature { background: #262a24; color: #f6f2e8; display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; }
.feature-copy { padding: clamp(1.65rem, 5vw, 4rem); }
.feature h2 { margin-block: .45rem .75rem; font-size: clamp(2.5rem, 6.4vw, 5.25rem); letter-spacing: -.05em; }
.feature p:not(.label) { max-width: 39ch; }
.feature a { display: inline-block; margin-top: 1rem; color: #f4cb9f; }
.studio-mark { display: grid; place-items: center; margin: clamp(1.5rem, 4vw, 3rem) 0; border-left: 1px solid #66685e; padding: 1.5rem; }
.studio-mark img { width: clamp(8rem, 20vw, 14rem); }
.label { font-size: .875rem; color: var(--muted); font-weight: 650; }
.feature .label { color: #f4cb9f; }
.projects { margin-top: clamp(2.5rem, 7vw, 5.5rem); }
.project { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 1.4rem clamp(2rem, 6vw, 5.5rem); padding-block: 2rem; border-top: 1px solid var(--line); }
.project-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.project-reverse figure { order: 1; }
.project figure > img, .app-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-reverse figure > img { object-fit: contain; background: #e3e7d4; }
figcaption { padding-top: .45rem; font-size: .875rem; color: var(--muted); }
.app-image { display: grid; place-items: center; background: #e3e7d4; }
.app-image img { width: auto; height: clamp(12rem, 24vw, 17.5rem); box-shadow: 0 .35rem 1rem #28251f26; }
.project h2, .career > h2 { font-size: clamp(2.1rem, 4.5vw, 3.7rem); letter-spacing: -.04em; margin-block: .45rem .8rem; }
.project-copy a { display: inline-block; margin-top: .85rem; }
.other-work { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 5.5rem); row-gap: 1.5rem; border-block: 1px solid var(--line); padding-block: 1.75rem; }
.other-work h3, .training h3 { font-size: 1.65rem; margin-block: .35rem .55rem; }
.career { margin-block: clamp(3rem, 8vw, 6rem); }
.timeline { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding-block: .65rem; }
summary { cursor: pointer; }
summary span { color: var(--muted); display: inline-block; min-width: 7.1rem; margin-right: .4rem; }
summary small { color: var(--muted); font-size: .9rem; margin-left: .5rem; }
details p { max-width: 68ch; margin: .55rem 0 .15rem 1.1rem; }
.training { margin-top: 1.4rem; }
footer { border-top: 1px solid var(--line); padding-block: 1.15rem 2rem; }

@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .intro, .project, .project-reverse { grid-template-columns: 1fr; }
  .project-reverse figure { order: 0; }
  .app-image img { height: min(60vw, 16.5rem); }
}

@media (max-width: 33rem) {
  .feature, .other-work { grid-template-columns: 1fr; }
  .studio-mark { place-items: center start; margin: 0 1.65rem; padding: .8rem 0 1.15rem; border-left: 0; border-top: 1px solid #66685e; }
  .feature-copy { padding-bottom: 1.15rem; }
  summary span { min-width: 0; }
  summary small { display: block; margin-left: 1.1rem; }
}
