@font-face {
  font-family: Instrument;
  src: url(fonts/serif.ttf) format('truetype');
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(fonts/italic.ttf) format('truetype');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/sans.ttf) format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --paper: #f5f1e7;
  --ink: #23211c;
  --subtle: #5d594f;
  --red: #ac3723;
  --rule: #c8c2b3;
  --display: Instrument, Georgia, serif;
  --gutter: clamp(20px, 4.8vw, 82px);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 DM, Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
button, select, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #ac3723; outline-offset: 4px; }
.page { max-width: 1700px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font: 600 11px/1.4 Consolas, 'Courier New', monospace; text-transform: uppercase; letter-spacing: .105em; }
.skip { position: fixed; z-index: 5; inset: 8px auto auto 8px; transform: translateY(-160%); padding: 9px; background: white; }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-inner { min-height: 77px; display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand span { font: italic 38px/.95 var(--display); letter-spacing: -.055em; }
.brand small { display: none; }
.mast-profession { align-self: center; padding-left: 20px; border-left: 1px solid var(--rule); max-width: 156px; color: var(--subtle); font-size: 10px; }
.mast nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); font-size: 14px; }
.mast nav a:hover, .ink-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-link { border: 1px solid var(--ink); border-radius: 2px; padding: 8px 15px; }

.table-surface {
  --field: #eda255;
  position: relative;
  isolation: isolate;
  background-color: #f7eedb;
}
.table-surface::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 0 38%;
  background-color: var(--field); transition: background-color 1s ease-in-out;
}
.editing-table {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.58fr);
  grid-template-areas: 'intro print' 'action print' 'strip print';
  grid-template-rows: auto auto auto;
  column-gap: clamp(30px, 4vw, 76px);
  padding-block: clamp(39px, 3.7vw, 60px) clamp(32px, 3.2vw, 52px);
  align-items: start;
}
.session-intro { grid-area: intro; align-self: end; }
.session-intro h1 {
  margin: 0 0 20px;
  font: 400 clamp(84px, 8.7vw, 155px)/.78 var(--display);
  letter-spacing: -.055em;
}
.session-intro h1 em { display: block; margin: .045em 0 0 .27em; color: var(--red); font-weight: 400; }
.intro-text { margin: 0; max-width: 31ch; line-height: 1.45; font-size: clamp(15px, 1.2vw, 19px); }
.session-action { grid-area: action; padding-top: 24px; display:flex; align-items:center; gap:8px 18px; flex-wrap:wrap; }
.motion-toggle { min-height:44px; border:0; padding:4px 2px; color:var(--subtle); background:transparent; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.motion-toggle:hover { color:var(--red); }
.motion-toggle[hidden],.playback[hidden] { display:none; }
.open-session, .solid {
  display: inline-flex; align-items: center; justify-content: center; 
  padding: 12px 18px; border: 1px solid var(--ink); border-radius: 2px;
  color: #fffaf1; background: var(--ink); font-size: 14px; font-weight: 600;
}
.open-session { border-color: var(--red); background: var(--red); }
.open-session:hover { background: #81291c; }
.solid:hover { background: #443b2d; }
.frame-selector { grid-area: strip; align-self: center; min-width: 0; margin-top: 24px; }
.film-strip {
  max-width: 440px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 6px; background: #2b2925;
  box-shadow: 1px 2px 3px #2a201933;
}
.film-strip button { position: relative; min-width: 0; min-height: 32px; display: grid; padding: 0; background: transparent; border: none; }
.film-strip img { width: 100%; aspect-ratio: 1.35; object-fit: contain; align-self: center; }
.film-strip button span { font: 10px/1.5 Consolas, monospace; color: #e3d6b9; text-align: left; letter-spacing: .05em; }
.film-strip button[aria-pressed="true"]::after {
  content: ''; pointer-events: none; position: absolute; inset: -4px -3px 14px -3px;
  border: 3px solid #ff6941; border-radius: 18% 8% 14% 8% / 14% 20% 18% 11%;
  transform: rotate(-4deg);
}
.film-strip button:focus-visible { outline-color: white; }
.film-strip button:hover img { filter: brightness(1.1); }
.playback { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 3px; color: var(--subtle); background: transparent; border: 0; font-size: 13px; font-weight: 600; }
.playback:hover { color: var(--red); }
.playback i { width: 9px; height: 10px; border-inline: 3px solid currentColor; }
.playback[data-paused="true"] i { width: 0; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor; }

.table-figure { grid-area: print; container-type: inline-size; margin: 0; align-self: center; min-width: 0; }
.print-stage {
  --mat: clamp(7px, .86vw, 15px);
  --image-height: calc((100cqw - 2 * var(--mat)) * .5628);
  height: calc(var(--image-height) + var(--mat) + 27px);
  display: grid; grid-template: 1fr / 1fr; place-items: center;
}
.print-mount {
  grid-area: 1 / 1;
  width: min(100%, calc(var(--image-height) * var(--ratio, 1.777) + 2 * var(--mat)));
  padding: var(--mat) var(--mat) 0;
  position: relative; background: #fffdf6; transform: rotate(-1.1deg);
  box-shadow: 1px 2px 3px #291e1238, 3px 12px 17px -9px #37251355;
}
.print-mount::before {
  content: ''; position: absolute; width: clamp(64px, 9vw, 143px); height: clamp(18px, 2.4vw, 34px);
  top: 0; left: 51%; z-index: 1; transform: translate(-50%, -45%) rotate(4deg);
  background: repeating-linear-gradient(90deg, #ceb77866 0 1px, transparent 1px 3px), #e3d1a8ba;
  clip-path: polygon(0 4%, 99% 0, 98% 16%, 100% 28%, 98% 43%, 100% 60%, 98% 77%, 100% 94%, 1% 100%, 2% 83%, 0 68%, 2% 52%, 0 31%, 2% 16%);
  pointer-events: none;
}
.print-window { height: var(--image-height); background: #fffdf6; }
.print-window img { width: 100%; height: 100%; object-fit: contain; }
.table-figure { --print-travel:clamp(16px,1.6vw,27px); }
.print-stage { transform:translateY(calc(var(--drift,0) * var(--print-travel))); }
.print-edge { display: flex; justify-content: space-between; gap: 5px; padding: 7px 0; color: #555246; font-size: 9px; }
.table-figure figcaption { margin: calc(12px + var(--print-travel)) auto 0; max-width: 53ch; text-align: center; min-height: 3.4em; }
#frame-note { font: italic clamp(20px, 1.8vw, 29px)/1.13 var(--display); color: #343125; }

.archive { background: #213e84; color: #fff6e8; padding-block: clamp(30px,3vw,56px) clamp(36px,4vw,68px); }
.archive-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.archive-heading .playback { color: inherit; }
.archive-heading .playback[hidden] { display: none; }
.archive-heading .playback:hover { text-decoration: underline; text-underline-offset: 4px; }
.archive-heading .playback:focus-visible { outline-color: currentColor; }
.archive h2, .about h2, .brief-box h2, .series-copy h2 {
  margin: 0; font: 400 clamp(44px,4.8vw,78px)/.99 var(--display); letter-spacing: -.044em;
}
.archive-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(18px,2.3vw,40px); margin-top: 22px; }
.session-row { display: block; min-width: 0; }
.session-cover { position: relative; aspect-ratio: 3 / 4; background: #1a2541; }
.wedding-row .session-cover, .studio-row .session-cover { aspect-ratio: 3 / 2; }
.session-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.session-cover .alternate-cover { opacity: 0; transition: opacity 1.15s ease-in-out; }
.session-cover.show-alternate .alternate-cover { opacity: 1; }
.session-row:focus-visible { outline-color: #fff6e8; }
@media (hover: hover) and (pointer: fine) {
  .session-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
}
@media (min-width: 940px) {
  .archive-index { grid-template-columns: 1fr 1fr .86fr; grid-template-rows: auto auto; align-items: start; row-gap: 18px; }
  .session-row:nth-child(-n+2) { grid-row: 1 / span 2; }
  .wedding-row, .studio-row { grid-column: 3; }
}
.session-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding: 13px 0 9px; border-bottom: 1px solid #a3b4db80; }
.session-caption h3 { margin: 0; font: 400 clamp(30px,2.8vw,47px)/1.1 var(--display); letter-spacing: -.035em; }
.session-caption p { margin: 0; color: #e6e9f5; font-size: 14px; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,8vw,140px); align-items: center; padding-block: clamp(42px,5vw,90px); border-top: 1px solid var(--rule); }
.about figure, .picture { margin: 0; }
.about figure { justify-self: center; --print-travel:clamp(10px,1.2vw,18px); }
.about figure img { width: auto; height: auto; max-height: 530px; object-fit: contain; transform:translateY(calc(var(--drift,0) * var(--print-travel))); }
.about figcaption { margin-top:calc(6px + var(--print-travel)); color:var(--subtle); }
.about h2 { margin: 0 0 22px; }
.about p { max-width: 51ch; color: #49483f; }
.ink-link, .copy-link { display: inline-block; font-size: 14px; padding: 5px 0; background: transparent; border: 0; border-bottom: 1px solid currentColor; }
.colophon { color: #fff6e8; background: #282522; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; padding-block: 26px; font-size: 14px; }
.footer-inner small { display: block; color: #e1d6c6; }
.footer-name { font: italic 25px/1.2 var(--display); }
.footer-inner > a:first-of-type { margin-left: auto; }
.footer-credit { padding-left: 22px; border-left: 1px solid #ae9b83; }
.footer-credit strong { letter-spacing: .045em; }
.footer-inner a:focus-visible { outline-color: #ffc777; }

dialog { background: var(--paper); color: var(--ink); padding: 0; border: 1px solid var(--rule); width: min(1020px,94vw); max-height: 92dvh; overscroll-behavior: contain; }
dialog::backdrop { background: #17150fce; }
.viewer, .brief-box { padding: clamp(18px,3vw,42px); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 13px; margin-bottom: 24px; }
.viewer-head .mono { color: var(--red); }
.close, .photo-nav button { color: var(--ink); border: 1px solid var(--rule); background: transparent; }
.close { padding: 8px 13px; border-radius: 2px; font-size: 14px; }
.close:hover, .photo-nav button:hover { background: #e9e3d7; }
.series-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px,4vw,60px); }
.series-copy h2, .brief-box h2 { margin-top: 0; }
.series-copy p { color: #4c4b42; }
.series-actions, .photo-nav { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.copy-status { font-size: 13px; }
.copy-status:empty { display: none; }
#share-url { width: 100%; }
.picture { min-width: 0; }
.gallery-stage { position: relative; height: clamp(205px,52vh,520px); background: #e8e4d7; }
.gallery-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #e8e4d7; }
.picture figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 13px; }
.photo-nav { gap: 8px; flex-shrink: 0; flex-wrap: nowrap; }
.photo-nav button { min-height: 38px; padding: 6px 11px; font-size: 13px; border-radius: 2px; }
#inquiry-dialog { max-width: 520px; }
.demo-note, #brief-result { color: var(--subtle); font-size: 14px; }
.brief-box label { display: block; margin: 14px 0; font-size: 14px; }
.brief-box :is(input, select, textarea) { display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #a6a294; border-radius: 2px; background: #fffdf7; }
.brief-box textarea { resize: vertical; }
#brief-result:empty { display: none; }
@media (max-width: 740px) {
  .mast-inner { min-height: 62px; gap: 12px; }
  .mast-profession { display: none; }
  .brand { gap: 7px; }
  .brand span { font-size: 29px; }
  .brand small { display: block; margin-top: 3px; font: 9px/1 Consolas, monospace; letter-spacing: .085em; text-transform: uppercase; }
  .brand img { width: 24px; height: 24px; }
  .mast nav { gap: 13px; font-size: 13px; }
  .contact-link { padding: 6px 9px; }
  .editing-table { grid-template-columns: 1fr; grid-template-areas: 'intro' 'print' 'strip' 'action'; padding-block: 28px; }
  .session-intro h1 { margin: 0 0 11px; font-size: clamp(64px,15.3vw,97px); }
  .session-intro h1 em { display: inline; margin: 0; }
  .intro-text { max-width: 41ch; font-size: 15px; }
  .table-surface::before { display: none; }
  .table-figure { position: relative; isolation: isolate; margin-block: 30px 15px; --print-travel:11px; }
  .table-figure::before {
    content: ''; position: absolute; z-index: -1; inset: -12px calc(-1 * var(--gutter)) -10px;
    background-color: var(--field); transition: background-color 1s ease-in-out;
  }
  .table-figure figcaption { margin-top:calc(8px + var(--print-travel)); min-height:3.2em; }
  #frame-note { font-size: 22px; }
  .frame-selector { margin-top: 10px; }
  .film-strip { max-width: 390px; }
  .session-action { padding-top: 16px; }
  .archive-index { gap: 24px 16px; margin-top: 15px; }
  .wedding-row, .studio-row { grid-column: 1 / -1; }
  .session-caption p { font-size: 13px; }
  .about, .series-body { grid-template-columns: 1fr; gap: 21px; }
  .about figure img { max-height: 430px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 17px 8px; }
  .footer-credit { grid-column: 1 / -1; padding: 13px 0 0; border: 0; border-top: 1px solid #ae9b8370; }
  .gallery-stage { height: 37dvh; }
  .viewer-head { margin-bottom: 15px; }
}
@media (max-width: 370px) {
  .mast nav { gap: 8px; font-size: 12px; }
  .brand span { font-size: 26px; }
  .picture figcaption { align-items: flex-start; flex-direction: column; }
}
@keyframes develop-print { from {opacity:.42} to {opacity:1} }
@keyframes lay-print { from {opacity:.58;translate:0 var(--entrance,12px)} to {opacity:1;translate:0 0} }
:root[data-motion="on"] .print-stage { animation:develop-print .85s ease-out both; }
:root[data-motion="on"] [data-entered] { animation:lay-print .65s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .table-figure,.about figure { --print-travel:4px; }
  :root { --entrance:0px; }
  .table-surface::before,.table-figure::before,.session-cover .alternate-cover { transition-duration:350ms; }
}
:root[data-motion="off"] :is(.table-surface,.table-figure)::before,
:root[data-motion="off"] .alternate-cover { transition:none; }
