/* ==========================================================================
   Talbot Images ROC — the system. Mint ground, black frame, prints in pairs.
   Every page links this file; page-specific work lives in its own sheet.
   ========================================================================== */

/* tokens: colour, outline, hard shadow, frame inset, pair gutter, type, timing */
:root{
  --ground:#C8F2DC;
  --ink:#111111;
  --stamp:#FF5A14;
  --rule:0.1875rem;
  --drop:0.3125rem;
  --edge:1.25rem;
  --mask:calc(var(--edge) + var(--rule) + 0.25rem);
  --pair-gap:clamp(2.5rem,9vw,7rem);
  --font-display:'Bodoni Moda',Georgia,'Times New Roman',serif;
  --font-text:'Fira Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --t--1:0.8125rem;
  --t-0:clamp(1rem,0.96rem + 0.2vw,1.0625rem);
  --t-1:clamp(1.0625rem,1rem + 0.35vw,1.1875rem);
  --t-2:clamp(1.4rem,1.28rem + 0.6vw,1.75rem);
  --t-3:clamp(1.75rem,1.5rem + 1.1vw,2.25rem);
  --t-4:clamp(2rem,1.55rem + 1.9vw,2.75rem);
  --press:150ms ease-out;
  --open:180ms ease-out;
}

@media (max-width:47.99rem){
  :root{--edge:0.625rem;--pair-gap:1.25rem;}
}

/* base: mint ground, ink type, nothing rounded */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--font-text);
  font-size:var(--t-0);
  line-height:1.55;
  padding:clamp(6rem,10vw,7.5rem) clamp(1.6rem,5vw,4rem) clamp(6.5rem,10vw,8rem);
}
img{display:block;max-width:100%;height:auto}
ul,ol{margin:0;padding:0;list-style:none}

/* the perimeter frame: an opaque mint band hides anything that reaches it, the black line sits inside */
.frame{position:fixed;inset:0;z-index:55;pointer-events:none}
.frame__mask{position:absolute;inset:0;box-shadow:inset 0 0 0 var(--mask) var(--ground)}
.frame__line{position:absolute;inset:var(--edge);border:var(--rule) solid var(--ink)}

/* fixed corner captions: each carries its own mint plate so the page never shows through */
.chrome{
  position:fixed;z-index:70;margin:0;background:var(--ground);
  padding:0.2rem 0.5rem;font-size:var(--t--1);line-height:1.25;
}
.chrome--bl{left:calc(var(--mask) + 0.25rem);bottom:calc(var(--mask) + 0.25rem)}
.chrome--br{right:calc(var(--mask) + 0.25rem);bottom:calc(var(--mask) + 0.25rem)}

/* skip link */
.skip{
  position:absolute;left:-9999px;top:0;z-index:120;
  background:var(--ground);color:var(--ink);padding:0.6rem 1rem;
  border:var(--rule) solid var(--ink);
}
.skip:focus{left:var(--mask);top:var(--mask)}

/* focus: one visible ring everywhere */
:focus-visible{outline:var(--rule) solid var(--ink);outline-offset:0.15rem}
.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* header bar: mark, the linked path left, the gallery tag right, all on one mint plate */
.bar{
  position:fixed;z-index:80;top:var(--mask);left:var(--mask);right:var(--mask);
  display:flex;align-items:center;gap:clamp(0.5rem,1.5vw,1.1rem);flex-wrap:wrap;
  background:var(--ground);padding:0.35rem 0;
}
.bar__mark{display:block;line-height:0;padding:0.2rem}
.bar__mark svg{width:2.25rem;height:auto}
.bar__tag{
  margin-left:auto;font-size:var(--t--1);background:var(--ground);
  padding:0.2rem 0.4rem;
}

/* path: compact pips, slash separators, chevron opening the section panel */
.path{position:relative;display:flex;align-items:center;gap:0.4rem;flex-wrap:wrap}
.path__list{display:flex;flex-wrap:wrap;align-items:center;font-size:var(--t--1);line-height:1.3}
.path__list li+li::before{content:"/";margin:0 0.35rem;color:var(--ink)}
.path__list a{
  color:var(--ink);text-decoration:none;background:var(--ground);
  display:inline-block;padding:0.7rem 0.15rem;
}
.path__list a:hover{text-decoration:underline;text-underline-offset:0.2em}
.path__toggle{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:2.75rem;min-height:2.75rem;padding:0;
  background:var(--ground);color:var(--ink);border:var(--rule) solid var(--ink);
  box-shadow:var(--drop) var(--drop) 0 var(--ink);cursor:pointer;
  transition:transform var(--press),box-shadow var(--press);
}
.path__toggle:active{transform:translate(var(--drop),var(--drop));box-shadow:0 0 0 var(--ink)}
.path__chev{
  width:0.6rem;height:0.6rem;border-right:var(--rule) solid var(--ink);
  border-bottom:var(--rule) solid var(--ink);transform:translateY(-0.15rem) rotate(45deg);
}
.path__toggle[aria-expanded="true"] .path__chev{transform:translateY(0.15rem) rotate(225deg)}
.path__panel{
  position:absolute;top:calc(100% + 0.6rem);left:0;z-index:90;
  min-width:13rem;max-width:calc(100vw - 3rem);
  background:var(--ground);border:var(--rule) solid var(--ink);
  box-shadow:var(--drop) var(--drop) 0 var(--ink);
  padding:0.5rem 0.75rem 0.7rem;
  transition:opacity var(--open);
}
.path__panel[hidden]{display:none}
.path__index{font-size:var(--t--1)}
.path__index a{
  display:block;padding:0.6rem 0.15rem;color:var(--ink);text-decoration:none;
}
.path__index a:hover{text-decoration:underline;text-underline-offset:0.2em}
.path__mail{margin:0.3rem 0 0;font-size:var(--t--1)}

/* type: Bodoni Moda for headings at 600, sentence case, never above 3rem */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;letter-spacing:-0.01em;line-height:1.06;margin:0 0 0.6rem}
h1{font-size:var(--t-4);max-width:22ch}
h2{font-size:var(--t-2)}
h3{font-size:1.4rem}
p{margin:0 0 1rem;max-width:38rem}
p:last-child{margin-bottom:0}
strong{font-weight:700}

/* inline links: underlined, ink, nothing else */
.link,a.link{color:var(--ink);text-decoration:underline;text-underline-offset:0.18em;text-decoration-thickness:0.09em}
.link:hover{text-decoration-thickness:0.16em}
.linkish{
  font:inherit;color:var(--ink);background:none;border:0;padding:0;
  text-decoration:underline;text-underline-offset:0.18em;cursor:pointer;
  min-height:2.75rem;
}

/* page opening: the h1 and one sentence every page starts from */
.opening{margin:0 0 clamp(2rem,5vw,3.5rem);max-width:46rem}
.opening__title{font-size:var(--t-4);margin-bottom:0.7rem}
.opening__lede{font-size:var(--t-1);line-height:1.5;margin:0;max-width:34rem}

/* ten-column grid: pairs cross the middle, text sits on the left five */
.ten{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));column-gap:clamp(0.75rem,1.4vw,1.5rem)}
@media (max-width:47.99rem){.ten{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* prose block: keeps sentences off the frame */
.prose{max-width:36rem}
.prose p+p{margin-top:0.9rem}

/* the recurring device: two mounts across a mint gutter, the shared feature named in the gap */
.pair{
  display:grid;grid-template-columns:1fr var(--pair-gap) 1fr;
  grid-template-areas:"left note right";align-items:center;
  column-gap:0;margin:0 0 clamp(2rem,4vw,3rem);
}
.pair__note{
  grid-area:note;margin:0;padding:0 0.2rem;text-align:center;
  font-size:var(--t--1);line-height:1.35;hyphens:auto;
}
@media (max-width:47.99rem){
  .pair{grid-template-columns:1fr 1fr;grid-template-areas:"left right" "note note";row-gap:1.1rem}
  .pair__note{text-align:left;padding:0}
}

/* image mount: 3px outline, hard 5px down-right shadow, square corners */
.mount{
  display:block;margin:0 var(--drop) var(--drop) 0;
  border:var(--rule) solid var(--ink);
  box-shadow:var(--drop) var(--drop) 0 var(--ink);
  background:var(--ground);color:var(--ink);text-decoration:none;
}
.pair .mount:nth-of-type(1){grid-area:left}
.pair .mount:nth-of-type(2){grid-area:right}
.mount img{width:100%;height:auto}
.mount__cap{margin:0;padding:0.6rem 0.75rem 0.65rem;font-size:var(--t--1);line-height:1.3}
.mount--tall img{aspect-ratio:3/4;object-fit:cover}
.mount--wide img{aspect-ratio:4/3;object-fit:cover}
.mount--sink{margin-top:clamp(1rem,4vw,3rem)}

/* figure and its own caption under the mount, in normal flow */
.figure{margin:0 0 clamp(1.5rem,3vw,2.25rem)}
.figure figcaption{margin-top:0.55rem;font-size:var(--t--1);line-height:1.3;max-width:30rem}

/* rule: a 3px ink line, kept to the margins of text */
.rule{border:0;border-top:var(--rule) solid var(--ink);margin:clamp(2rem,4vw,3rem) 0}

/* buttons: square, outlined, hard shadow, press straight down onto the shadow */
.btn{
  display:inline-flex;align-items:center;justify-content:center;text-align:center;
  min-height:2.75rem;padding:0.5rem 1.05rem;
  font-family:var(--font-text);font-size:var(--t-0);font-weight:500;line-height:1.25;
  color:var(--ink);background:var(--ground);border:var(--rule) solid var(--ink);
  box-shadow:var(--drop) var(--drop) 0 var(--ink);text-decoration:none;cursor:pointer;
  transition:transform var(--press),box-shadow var(--press);
}
.btn:active,.btn[aria-pressed="true"]{transform:translate(var(--drop),var(--drop));box-shadow:0 0 0 var(--ink)}
.btn--small{min-height:2.75rem;padding:0.4rem 0.7rem;font-size:var(--t--1)}
.btn--plain{box-shadow:none}

/* the orange stamp: the one round thing on the site, always black type, always 8 degrees */
.stamp{
  --size:7rem;
  display:grid;place-items:center;width:var(--size);height:var(--size);
  border-radius:50%;background:var(--stamp);color:var(--ink);
  border:var(--rule) solid var(--ink);box-shadow:var(--drop) var(--drop) 0 var(--ink);
  font-family:var(--font-text);font-weight:700;font-size:0.9rem;line-height:1.15;
  text-align:center;text-decoration:none;padding:0.5rem;
  transform:rotate(8deg);
  transition:transform var(--press),box-shadow var(--press);
}
.stamp:active{transform:rotate(8deg) translate(var(--drop),var(--drop));box-shadow:0 0 0 var(--ink)}

/* specs: labelled pairs of facts beside a print */
.specs{display:grid;grid-template-columns:auto 1fr;gap:0.35rem 1.25rem;font-size:var(--t--1);max-width:34rem;margin:0}
.specs dt{font-weight:700}
.specs dd{margin:0}

/* reveal on scroll: below the first screen only, never on photographs */
html.js .reveal{opacity:0;transform:translateY(0.75rem)}
html.js .reveal.is-in{opacity:1;transform:none;transition:opacity 240ms ease-out,transform 240ms ease-out}

/* footer: a street sign, right aligned, inside the mint */
.foot{
  margin-top:clamp(3rem,7vw,5rem);
  border-top:var(--rule) solid var(--ink);
  padding-top:clamp(1.6rem,3vw,2.4rem);
  display:grid;justify-items:end;gap:0.55rem;text-align:right;
}
.foot__place{
  margin:0;font-family:var(--font-text);font-weight:700;
  font-size:clamp(1.8rem,5.5vw,3rem);line-height:1;letter-spacing:-0.01em;
}
.foot__based{margin:0;font-size:var(--t--1);line-height:1.3}
.foot__quiet{margin:0.4rem 0 0;font-size:var(--t-0);max-width:30rem}
.foot__quiet a{color:var(--ink)}
.foot__index{
  display:flex;flex-wrap:wrap;justify-content:flex-end;
  gap:0.1rem 0.9rem;font-size:var(--t--1);margin-top:0.4rem;
}
.foot__index a,.foot__index .linkish{min-height:2.75rem;display:inline-flex;align-items:center}
.foot__addr{
  font-style:normal;font-size:var(--t--1);line-height:1.45;margin:0.4rem 0 0;
}
.foot__addr a{color:var(--ink)}
.foot__legal{margin:0.4rem 0 0;font-size:var(--t--1)}

/* consent: a mint print label low and centred, equal-weight answers, above the corner captions */
#consent{
  position:fixed;z-index:100;left:50%;bottom:3.5rem;transform:translateX(-50%);
  width:min(30rem,calc(100vw - 3rem));
  background:var(--ground);color:var(--ink);
  border:var(--rule) solid var(--ink);box-shadow:var(--drop) var(--drop) 0 var(--ink);
  padding:0.85rem 1rem 0.95rem;text-align:center;
}
#consent[hidden]{display:none}
#consent p{margin:0 auto 0.7rem;font-size:var(--t--1);line-height:1.4;max-width:26rem}
.consent__acts{display:flex;flex-wrap:wrap;gap:0.55rem;justify-content:center}
.consent__acts .btn{flex:1 1 11rem}

/* offer bar: only rendered when site.promo carries one; the site has none */
#promo{
  position:fixed;z-index:95;right:var(--mask);bottom:calc(var(--mask) + 2.5rem);
  width:min(22rem,calc(100vw - 3rem));
  background:var(--stamp);color:var(--ink);
  border:var(--rule) solid var(--ink);box-shadow:var(--drop) var(--drop) 0 var(--ink);
  padding:0.8rem 2.4rem 0.9rem 0.9rem;font-size:var(--t--1);
  transform:translateY(140%);opacity:0;
  transition:transform var(--open),opacity var(--open);
}
#promo.is-in{transform:none;opacity:1}
#promo[hidden]{display:none}
#promo p{margin:0 0 0.4rem;max-width:none}
#promo a{color:var(--ink);font-weight:700}
.promo__close{
  position:absolute;top:0.3rem;right:0.3rem;width:2.75rem;height:2.75rem;
  background:transparent;color:var(--ink);border:0;font:inherit;font-size:1.1rem;cursor:pointer;
}

/* reduced motion: every state change is instant */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition-duration:0ms !important;animation-duration:0ms !important;
    scroll-behavior:auto !important;
  }
  html.js .reveal{opacity:1;transform:none}
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
/* What can be pressed in the chrome lies above the page: a huge headline's line box reaching
   into the navigation must not swallow the clicks meant for the links. */
header a, header button, nav a, nav button { position: relative; z-index: 2; }
/* A visitor who asked the system for less motion gets none, whatever a page forgot. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
