:root {
  --paper: #f7faf9;
  --wash: #e8f1ee;
  --white: #ffffff;
  --ink: #1c2b2d;
  --ink-soft: #3a4d50;
  --rose: #a4525a;
  --rose-deep: #86404a;
  --rose-light: #eab9bd;
  --line: #d3dfdb;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
::selection { background: var(--rose); color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 1em; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; color: var(--rose); }
.brand-name { display: block; font: 600 1.45rem/1 var(--serif); letter-spacing: 0.17em; }
.brand-sub { display: block; margin-top: 5px; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 26px; }
.site-nav a { padding: 6px 0; color: var(--ink-soft); font-size: 0.93rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--rose-deep); border-color: var(--rose); }

/* Sections */
.section { padding-block: clamp(60px, 9vw, 112px); }
.section.tight-top { padding-top: 0; }
.wash { background: var(--wash); }
.dark { background: var(--ink); color: #edf3f1; }
.dark p { color: #d5e0dd; }
.dark .eyebrow { color: var(--rose-light); }
.dark a { color: var(--rose-light); }
.dark a:hover { color: #fff; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--rose-deep); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); margin-top: 26px; }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { margin-top: 18px; color: var(--ink-soft); }
.dark .section-head p { color: #d5e0dd; }

/* Layout */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.top { align-items: start; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 72px); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
.narrow-frame { max-width: 460px; margin-inline: auto; width: 100%; }

/* Page intro */
.intro { padding-block: clamp(52px, 8vw, 100px); }
.intro h1 { font-size: clamp(2.7rem, 5.6vw, 4.4rem); line-height: 1.04; }

/* Matted photograph */
.mat { margin: 0; padding: clamp(10px, 1.3vw, 16px); padding-bottom: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(28, 43, 45, 0.07); }
.mat figcaption { margin-top: 11px; font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
.mat figcaption strong { color: var(--ink); font-weight: 600; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.btn { display: inline-block; padding: 14px 24px; background: var(--rose); color: #fff; font-size: 0.97rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color 0.18s ease; }
.btn:hover { background: var(--rose-deep); color: #fff; }
.more { font-weight: 600; font-size: 0.97rem; }
.dark .btn { background: var(--rose-light); color: var(--ink); }
.dark .btn:hover { background: #fff; color: var(--ink); }

/* Ruled list */
.ruled { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(36px, 5vw, 72px); }
.ruled > * { padding-block: 30px 36px; border-top: 1px solid var(--line); }
.ruled h3 { margin-bottom: 12px; }
.ruled p { color: var(--ink-soft); }
.ruled .more { display: inline-block; margin-top: 14px; }
.ruled .note { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.dark .ruled > * { border-color: rgba(255, 255, 255, 0.22); }
.dark .ruled p { color: #d5e0dd; }
.steps { display: grid; gap: 0; }
.steps > * { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px clamp(30px, 5vw, 72px); padding-block: 34px; border-top: 1px solid var(--line); }
.steps .label { display: block; margin-bottom: 8px; color: var(--rose-deep); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Pull statement */
.statement { font: 500 clamp(2rem, 4.2vw, 3.3rem)/1.14 var(--serif); letter-spacing: -0.01em; max-width: 24ch; color: #fff; text-wrap: balance; }

/* Credits */
.credits { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }

/* Gallery */
.gallery { columns: 3; column-gap: clamp(18px, 2.4vw, 30px); }
.gallery a { display: block; margin-bottom: clamp(18px, 2.4vw, 30px); break-inside: avoid; color: inherit; text-decoration: none; }
.gallery .mat { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.gallery a:hover .mat { border-color: var(--rose); box-shadow: 0 14px 34px rgba(28, 43, 45, 0.12); }

dialog.viewer { width: min(1100px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; }
dialog.viewer::backdrop { background: rgba(14, 22, 23, 0.94); }
.viewer-body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100dvh; padding: 12px 16px 16px; gap: 10px; }
.viewer-bar { display: flex; justify-content: flex-end; }
.viewer img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.viewer-foot p { color: #e7efed; font-size: 0.95rem; line-height: 1.4; }
.viewer-foot strong { display: block; color: #fff; font: 600 1.35rem/1.2 var(--serif); }
.viewer-nav { display: flex; gap: 8px; flex: none; }
.viewer button { min-width: 48px; min-height: 48px; padding: 0 14px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; font: 600 0.95rem var(--sans); cursor: pointer; }
.viewer button:hover { background: #fff; color: var(--ink); }

/* Footer */
.site-foot { padding-block: clamp(56px, 7vw, 84px) 32px; background: var(--ink); color: #d5e0dd; font-size: 0.97rem; }
.site-foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.site-foot a:hover { color: var(--rose-light); }
.foot-cta { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.foot-cta h2 { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(36px, 6vw, 88px); padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.foot-grid h3 { margin-bottom: 14px; color: var(--rose-light); font: 600 0.8rem/1.3 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; }
.foot-grid ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.foot-grid .who { display: block; font-size: 0.87rem; color: #b9c8c5; }
.foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 44px; font-size: 0.85rem; color: #b9c8c5; }
.foot-note p { max-width: 64ch; }

@media (max-width: 900px) {
  .split, .split.flip, .two, .steps > *, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .split .frame-side { order: 2; }
  .gallery { columns: 2; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .ruled, .three { grid-template-columns: minmax(0, 1fr); }
  .three .mat:nth-child(n+3) { display: none; }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 2px 18px; }
  .site-nav a { font-size: 0.88rem; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.1em; }
  .gallery { columns: 1; }
  .btn { width: 100%; text-align: center; }
  .viewer-foot { flex-direction: column; align-items: stretch; }
  .viewer-nav button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
