@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --ink: #212019;
  --muted: #5f5a50;
  --rule: #898377;
  --gutter: clamp(18px, 5vw, 88px);
  --serif: "Instrument Serif", Georgia, serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151412;
  --ink: #ece7dc;
  --muted: #a8a193;
  --rule: #80796c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 "Instrument Sans", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; left: var(--gutter); top: -100px; padding: .6rem; background: var(--paper); }
.skip:focus { top: .5rem; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font: 400 1rem/1 var(--serif); }
img { width: 100%; height: auto; display: block; }
.site-header, .site-footer { padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { min-height: 64px; border-bottom: 1px solid var(--rule); position: relative; z-index: 2; }
.site-header a, .wordmark { text-decoration: none; }
.site-header a:hover, .site-header [aria-current] { text-decoration: underline; }
.wordmark { font-size: .8rem; font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.wide-nav { display: flex; gap: clamp(14px, 2.5vw, 42px); font-size: .84rem; }
.menu, .quick-contact { display: none; }
.theme, dialog button { color: inherit; background: transparent; border: 1px solid var(--rule); padding: .4rem .65rem; font: inherit; cursor: pointer; }
.theme { font-size: .75rem; white-space: nowrap; }
.cover { margin-inline: var(--gutter); }
.cover-stage { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; height: clamp(310px, 63svh, 740px); }
.cover-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cover-rule { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; border-top: 1px solid var(--rule); padding-block: clamp(12px, 2vw, 36px); }
.cover-rule h1 { font-size: clamp(64px, 13vw, 225px); line-height: .78; letter-spacing: -.055em; }
.cover-rule div { display: grid; gap: .6rem; }
.cover-rule p, .section-label { text-transform: uppercase; letter-spacing: .12em; font: 600 .75rem/1.3 "Instrument Sans", sans-serif; }
.action { width: fit-content; text-decoration: none; border-bottom: 1px solid currentColor; padding-block: .25rem; }
.action span { margin-left: .25rem; }
.shell { padding-inline: var(--gutter); }
#stories { margin-top: clamp(65px, 14vh, 180px); }
.section-label { padding: 0 0 1rem; }
.story-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(22px, 8vw, 140px); padding: clamp(20px, 5vw, 70px) 0; border-top: 1px solid var(--rule); align-items: end; }
.story-image { display: block; }
.story-image img { height: min(65svh, 690px); object-fit: contain; }
.story-card h2, .closing h2 { font-size: clamp(42px, 6.8vw, 115px); letter-spacing: -.035em; }
.story-card h2 a { text-decoration: none; }
.story-card p { margin: 1rem 0; max-width: 31ch; color: var(--muted); }
.closing { margin-top: 4rem; padding-block: 4rem; border-top: 1px solid var(--rule); display: grid; gap: 18px; }
.page-head { padding-block: clamp(50px, 10vw, 150px) clamp(30px, 5vw, 75px); }
.page-head h1 { font-size: clamp(57px, 10vw, 154px); line-height: .89; letter-spacing: -.045em; }
.page-head p { color: var(--muted); margin-top: 1.25rem; max-width: 42ch; }
.sequence { display: grid; gap: clamp(28px, 8vh, 100px); }
.sequence .plate img { height: min(85svh, 950px); object-fit: contain; }
.plate a { display: block; }
.gallery, .edition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 55px); }
.gallery .plate:nth-child(3n + 2) { padding-top: clamp(15px, 6vw, 100px); }
.edition-grid h2, .reading h2 { font-size: clamp(28px, 4vw, 50px); margin-block: 1rem .5rem; }
.reading { max-width: 64ch; min-height: 26vh; padding-block: 1rem 4rem; }
.edition-grid + .reading { margin-top: 4rem; }
.reading p { margin-bottom: 1.3rem; }
.lead { font: 400 clamp(30px, 4vw, 52px)/1.1 var(--serif); }
.listing { border-top: 1px solid var(--rule); padding: 1rem 0; }
.contact-links { display: grid; gap: 1rem; }
.next { margin-top: 3rem; }
.site-footer { margin-top: 5rem; padding-block: 1.7rem; border-top: 1px solid var(--rule); flex-wrap: wrap; font-size: .85rem; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 10px 28px; }
dialog { width: min(100%, 1400px); height: 100%; max-width: 100%; max-height: 100%; border: 0; margin: auto; color: #f4f0e8; background: #191815; padding: 16px; }
dialog::backdrop { background: #191815; }
dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
dialog img { height: 100%; object-fit: contain; touch-action: pan-y; }
.viewer-controls { display: flex; justify-content: space-between; gap: 12px; }
.close-viewer { justify-self: end; }
@media (max-width: 900px) {
  .wide-nav { display: none; }
  .menu, .quick-contact { display: block; font-size: .85rem; }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--gutter); display: grid; gap: .85rem; }
}
@media (max-width: 720px) {
  .site-header { gap: 7px; min-height: 56px; }
  .theme { padding-inline: .28rem; }
  .cover-stage { height: clamp(260px, 58svh, 560px); }
  .cover-rule { grid-template-columns: 1fr; gap: 16px; }
  .cover-rule h1 { font-size: clamp(70px, 20vw, 140px); }
  .cover-rule div { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
  .story-card { grid-template-columns: 1fr; }
  .story-image img { height: min(61svh, 580px); }
  .gallery, .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-grid { row-gap: 36px; }
}
@media (max-width: 380px) {
  .wordmark { letter-spacing: .08em; }
  .edition-grid { grid-template-columns: 1fr; }
}
.print-card p, .shop-note { color: var(--muted); }
.shop-note { margin: 0 0 1.6rem; }
.print-options { margin-top: 1rem; display: grid; gap: .65rem; justify-items: start; }
.print-options label { font-size: .85rem; }
.print-options select, .print-options button, .shop-bag button {
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  padding: .6rem .7rem; font: inherit; max-width: 100%;
}
.print-options button, .shop-bag button { cursor: pointer; }
.shop-bag { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.shop-bag h2 { font-size: 2rem; }
.shop-bag li { margin-bottom: .6rem; }

/* Portfolio front page */
.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #161715;
  color: #f1efe6;
}
.opening-copy {
  padding: clamp(38px, 6vw, 110px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.opening-role, .opening-figure figcaption {
  font-size: .875rem;
  letter-spacing: .085em;
}
.opening h1 {
  font-size: clamp(78px, 11.5vw, 210px);
  letter-spacing: -.045em;
  line-height: .86;
  margin: clamp(18px, 4vw, 55px) 0 24px;
}
.opening-intro { color: #d2d0c6; max-width: 28ch; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.opening-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: clamp(20px, 4vw, 56px); }
.opening-figure { position: relative; background: #e1dfd7; }
.opening-figure a { display: block; height: 100%; }
.opening-figure img { height: clamp(525px, 84svh, 920px); object-fit: contain; }
.opening-figure figcaption { position: absolute; right: 12px; bottom: 12px; background: #161715; padding: .3em .7em; }
.feature { margin: clamp(48px, 10vw, 160px) var(--gutter) 0; }
.feature-image { display: block; }
.feature-image img { max-height: 75svh; object-fit: contain; }
.feature-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--rule); }
.feature-caption h2 { font-size: clamp(32px, 5vw, 76px); }
.home .story-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(18px, 4vw, 70px); }
.home .story-card { display: block; padding-block: 0 1.2rem; border-top: 0; border-bottom: 1px solid var(--rule); }
.home .story-card h2 { margin-top: 1rem; font-size: clamp(34px, 4.8vw, 76px); }
.home .story-image img { height: clamp(270px, 48vw, 580px); }
.home .closing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.home .closing h2 { font-size: clamp(40px, 6vw, 88px); }
.home .closing p { margin-block: .6rem .8rem; color: var(--muted); }
@media (max-width: 720px) {
  .opening, .home .story-index, .home .closing { grid-template-columns: 1fr; }
  .opening-copy { padding-block: 36px 25px; }
  .opening h1 { font-size: clamp(75px, 17vw, 115px); margin-block: 17px; }
  .opening-figure img { height: clamp(330px, 56svh, 540px); }
  .opening-links { margin-top: 16px; }
  .home .story-image img { height: min(65svh, 560px); }
}

/* Give the opening portrait and title a single red ground. */
.opening {
  --paper: #b52930;
  --ink: #fff6e9;
  --muted: #ffe5d9;
  --rule: #ef9a9e;
}
.opening { background: var(--paper); color: var(--ink); grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
.opening-intro { color: var(--muted); }
.opening-figure { background: var(--paper); }
.opening-figure img { object-position: center; }
.opening-figure figcaption { background: var(--paper); }
.home .feature { margin-inline: 0; }
.home .feature-caption { padding-inline: var(--gutter); }
.home .story-card:nth-child(even) { margin-top: clamp(20px, 6vw, 100px); }
@media (max-width: 720px) {
  .opening { grid-template-columns: 1fr; }
  .opening-figure { grid-row: 1; }
  .opening-figure img { height: min(66svh, 640px); }
  .home .story-card:nth-child(even) { margin-top: 0; }
}

.hairstory-prints { margin-block: 2rem 4rem; }
.hairstory-prints > h2 { font-size: clamp(3rem, 8vw, 7rem); }
.hairstory-prints > p { margin-block: .75rem 1.5rem; }
.hairstory-prints > .action { display: inline-block; margin-top: 1.5rem; }
.hairstory-prints .print-card img { aspect-ratio: 3 / 4; object-fit: contain; }

/* Give the welcome portrait more room without cropping the crown. */
.opening-figure { padding-top: clamp(12px, 2.3vw, 36px); }
.opening-figure a { height: auto; }
.opening-figure img {
  /* Size the image to its intrinsic ratio so the blend follows its edges. */
  width: min(100%, clamp(408px, 67.4svh, 734px));
  height: auto;
  margin-inline: auto;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent),
    linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
  mask-composite: intersect;
}
@media (max-width: 720px) {
  .opening-figure img { width: min(100%, 54.7svh, 524px); }
}

.home-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 60px); }
.home-project a { display: block; text-decoration: none; }
.home-project a:hover h2 { text-decoration: underline; }
.home-project img { aspect-ratio: 3 / 4; object-fit: contain; }
.home-project h2 { font-size: clamp(27px, 3.6vw, 54px); margin-top: .75rem; }
.home-all-work { display: inline-block; margin-top: 2rem; }
@media (max-width: 720px) {
  .home-projects { grid-template-columns: 1fr; }
}
