/* Fox Fact Performance — design system. One idea: the gap between two crop marks. */

/* tokens — palette, type scale, rhythm, mark weight, timing */
:root{
  --pine:#17301f;
  --pine-deep:#0f2417;
  --pine-lift:#1e3a28;
  --lichen:#d6e4c6;
  --ground:var(--pine);
  --ink:var(--lichen);
  --mark:var(--lichen);
  --line:rgba(214,228,198,.24);
  --display:"Cinzel",Georgia,"Times New Roman",serif;
  --text:"Asap Condensed","Asap",Arial,sans-serif;
  --dw:700;
  --fs-h1:clamp(2rem,4.6vw,4.25rem);
  --fs-h2:clamp(1.625rem,2.9vw,2.5rem);
  --fs-h3:clamp(1.1875rem,1.6vw,1.4375rem);
  --fs-body:clamp(1.0625rem,.5vw + .95rem,1.1875rem);
  --fs-small:.9375rem;
  --fs-num:clamp(2.75rem,7vw,5.5rem);
  --pad:clamp(1.1rem,4vw,2.75rem);
  --band:clamp(2.5rem,9vh,6.5rem);
  --gap:clamp(1rem,2.2vw,1.75rem);
  --mk:2px;
  --t:120ms;
}

/* base — pine ground everywhere, lichen ink, no third colour */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--pine);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--text);font-size:var(--fs-body);line-height:1.5;font-weight:400}
img{display:block;max-width:100%;height:auto}
p{margin:0 0 .9em}
p:last-child{margin-bottom:0}
figure{margin:0}
address{font-style:normal}
::selection{background:var(--lichen);color:var(--pine)}
:focus-visible{outline:3px solid var(--lichen);outline-offset:3px}

/* headings — Cinzel, heaviest, tight capitals, compact leading, no tracking */
h1,.h1{font-family:var(--display);font-weight:var(--dw);text-transform:uppercase;font-size:var(--fs-h1);line-height:.98;letter-spacing:0;margin:0 0 .45em;text-wrap:balance}
h2,.h2{font-family:var(--display);font-weight:var(--dw);text-transform:uppercase;font-size:var(--fs-h2);line-height:1;letter-spacing:0;margin:0 0 .5em;text-wrap:balance}
h3,.h3{font-family:var(--display);font-weight:var(--dw);text-transform:uppercase;font-size:var(--fs-h3);line-height:1.05;margin:0 0 .4em}
sub,sup{font-size:.7em;line-height:0}

/* text — lead, small print, a numeral set in Cinzel, a readable measure */
.lead{font-size:clamp(1.0625rem,1.15vw,1.3125rem);line-height:1.45;max-width:44rem}
.small,.cap{font-size:var(--fs-small);line-height:1.4}
.num{font-family:var(--display);font-weight:var(--dw);font-size:var(--fs-num);line-height:.86;letter-spacing:0}
.measure{max-width:62ch}

/* crop — four square corner marks on a mount, plate or control; add "is-tight" to pull them inside */
.crop{position:relative}
.crop::before{
  content:"";position:absolute;inset:var(--ci,-.55rem);pointer-events:none;z-index:2;
  --cl:var(--lc,.9rem);--c:var(--mark,var(--lichen));
  background:
    linear-gradient(var(--c),var(--c)) left top/var(--cl) var(--mk) no-repeat,
    linear-gradient(var(--c),var(--c)) left top/var(--mk) var(--cl) no-repeat,
    linear-gradient(var(--c),var(--c)) right top/var(--cl) var(--mk) no-repeat,
    linear-gradient(var(--c),var(--c)) right top/var(--mk) var(--cl) no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom/var(--cl) var(--mk) no-repeat,
    linear-gradient(var(--c),var(--c)) left bottom/var(--mk) var(--cl) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/var(--cl) var(--mk) no-repeat,
    linear-gradient(var(--c),var(--c)) right bottom/var(--mk) var(--cl) no-repeat;
}
.crop.is-tight{--ci:.4rem;--lc:.62rem}

/* span — the device: two crop marks a set distance apart, the gap left empty but for one line */
.span{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.6rem 1.5rem;padding:clamp(.9rem,2.2vw,1.6rem) clamp(2.4rem,6.5vw,5rem);min-height:4.25rem;--mk:2px}
.span--mid{justify-content:center;align-items:center;text-align:center}
.span::before,.span::after{content:"";position:absolute;top:50%;width:.9rem;height:.9rem;translate:0 -50%;border:0 solid var(--lichen);transition:border-width var(--t) linear}
.span::before{left:0;border-top-width:var(--mk);border-left-width:var(--mk)}
.span::after{right:0;border-bottom-width:var(--mk);border-right-width:var(--mk)}
.span:hover::before,.span:hover::after,.span:focus-within::before,.span:focus-within::after{--mk:3px}

/* buttons — square-cut actions: "btn--solid" pale field, "btn--mark" crop marks with no border */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.9rem;padding:.6rem 1.15rem;font-family:var(--text);font-size:1.0625rem;line-height:1.1;text-decoration:none;border:0;cursor:pointer;background:none;color:var(--lichen)}
.btn--solid{background:var(--lichen);color:var(--pine)}
.btn--solid:hover,.btn--solid:focus-visible{background:#e8f1db}
.btn--mark{padding-inline:1.5rem;position:relative}
.btn:disabled{opacity:.5;cursor:default}

/* links — text links keep a real underline; "link--quiet" drops it to the word alone */
.link{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.link:hover,.link:focus-visible{text-decoration-thickness:2px}
.link--quiet{text-decoration:none;border-bottom:2px solid var(--lichen);padding-bottom:.1em}

/* rule — a short square-cut block of colour, never a hairline across the page */
.rule{display:block;width:2.75rem;height:3px;background:var(--lichen);border:0;margin:1.2rem 0}

/* wrap and band — the page measure and the vertical rhythm every section sits on */
.wrap{width:100%;max-width:90rem;margin-inline:auto;padding-inline:var(--pad)}
.band{padding-block:var(--band)}
.duo{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gap);align-items:start}
@media (min-width:52em){.duo{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}

/* open — a page opening: heading panel, the line under it, the action, the first picture */
.open{display:grid;gap:var(--gap);padding:var(--band) var(--pad) calc(var(--band) * .6)}
.open__sub{font-size:clamp(1.0625rem,1.25vw,1.375rem);line-height:1.4;margin:.2rem 0 0;max-width:34ch}
.open__acts{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-top:clamp(1rem,2.4vw,1.6rem)}

/* fig — a photograph on its mount with a caption on the same left edge as the picture */
.fig{display:grid;gap:.55rem}
.fig__mount{position:relative;background:var(--pine-lift)}
.fig__mount img{width:100%;height:100%;object-fit:cover}
.fig__cap{font-size:var(--fs-small);line-height:1.4;color:var(--lichen)}

/* top — the corner plate: the mark alone at the upper left, no masthead, no name */
.site-top{display:flex;align-items:center;padding:clamp(.7rem,1.6vw,1.1rem) var(--pad)}
.brand{display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;background:var(--lichen);color:var(--pine);text-decoration:none}
.brand svg{display:block;width:1.65rem;height:1.65rem}

/* pins — the station opener and the call. On a desk screen the pair stands in the right
   gutter of the top plate's own band, so the shelf rail and the photographs stay clear;
   on a phone it docks at the foot, a margin in from the edge and under the notice.
   The pair always stands on its own solid pale field: nothing on the page shows through. */
.pins{position:fixed;top:clamp(.55rem,1.2vw,.85rem);right:var(--pad);display:flex;gap:.4rem;isolation:isolate;z-index:75;opacity:1}
.stations-btn,.call-pin{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.35rem .9rem;background:var(--lichen);color:var(--pine);font-family:var(--text);font-size:.9375rem;line-height:1;text-decoration:none;border:0;cursor:pointer;white-space:nowrap;opacity:1;backdrop-filter:none}
.stations-btn:hover,.call-pin:hover{background:#e8f1db}
html body .pins .stations-btn,
html body .pins .call-pin{background:var(--lichen);background-color:var(--lichen);color:var(--pine);opacity:1;backdrop-filter:none;-webkit-backdrop-filter:none}
@media (max-width:52em){
  .pins{top:auto;bottom:.7rem;right:.9rem;left:auto;gap:.5rem;justify-content:flex-end}
}

/* shelf — the station shelf: photo tiles with plain labels; five across, two on a phone */
.shelf{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;gap:var(--gap);padding:var(--pad);background:var(--pine-deep);color:var(--lichen);overflow:auto}
.shelf[hidden]{display:none}
body.shelf-open{overflow:hidden}
.shelf__bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.shelf__title{font-family:var(--display);font-weight:var(--dw);text-transform:uppercase;font-size:clamp(1.25rem,2.2vw,1.75rem);line-height:1;margin:0}
.shelf__close{min-height:2.75rem;padding:.4rem .8rem;background:var(--lichen);color:var(--pine);border:0;font-family:var(--text);font-size:.9375rem;line-height:1;cursor:pointer}
.shelf__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--gap)}
.shelf__item{display:block;text-decoration:none;color:inherit}
.shelf__crop{display:block;aspect-ratio:1;overflow:hidden;background:var(--pine-lift)}
.shelf__crop img{width:100%;height:100%;object-fit:cover}
.shelf__label{display:block;margin-top:.45rem;font-size:1rem;line-height:1.2}
.shelf__item:hover .shelf__label,.shelf__item:focus-visible .shelf__label{text-decoration:underline;text-underline-offset:.2em}
@media (max-width:46em){.shelf__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* foot — the door sign: pale field, one big Cinzel line running the width of the strip,
   the phone under it, small print beneath. Every link here is pine, never browser blue. */
.site-foot{margin-top:var(--band);padding:var(--band) var(--pad);background:var(--lichen);color:var(--pine)}
.foot-sign{display:grid;justify-items:start;gap:clamp(.55rem,1.4vw,1rem);width:100%;max-width:none}
.foot-name{font-size:var(--fs-small);line-height:1.2;margin:0}
.foot-line{font-family:var(--display);font-weight:var(--dw);text-transform:uppercase;font-size:clamp(1.75rem,5.4vw,4.5rem);line-height:.94;margin:0;width:100%;max-width:22ch;text-wrap:balance}
.foot-tel{margin:0;font-family:var(--display);font-weight:var(--dw);font-size:clamp(1.25rem,2.4vw,2rem);line-height:1}
.foot-tel a{color:var(--pine);text-decoration:none;border-bottom:3px solid var(--pine);padding-bottom:.12em}
.foot-tel a:hover,.foot-tel a:focus-visible{border-bottom-width:4px}
.foot-addr,.foot-mail{font-size:var(--fs-small);line-height:1.45;margin:0}
.foot-links{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem 1.1rem;margin:.4rem 0 0;padding:0;font-size:var(--fs-small);line-height:1.4}
.foot-links a,.foot-mail a,.foot-addr a,.foot-legal a{color:var(--pine);text-decoration:underline;text-underline-offset:.2em}
.foot-settings{min-height:1.6rem;padding:0;background:none;border:0;color:var(--pine);font:inherit;font-size:var(--fs-small);text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.foot-legal{font-size:var(--fs-small);line-height:1.4;margin:0;opacity:.85}

/* consent — a compact plate with four corner marks at the lower left of the window;
   on a phone it is a slim band at the foot, sitting above the station opener */
.consent{position:fixed;left:clamp(.6rem,1.5vw,1rem);bottom:clamp(.6rem,1.5vw,1rem);z-index:80;width:min(21rem,calc(100% - 1.6rem));display:grid;gap:.45rem;padding:.7rem .8rem;background:var(--lichen);color:var(--pine);--mark:var(--pine)}
.consent[hidden]{display:none}
.consent__line{margin:0;font-size:1rem;line-height:1.35}
.consent__acts{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.consent__btn{min-height:2.75rem;padding:.45rem .55rem;background:var(--pine);color:var(--lichen);border:0;font-family:var(--text);font-size:.9375rem;line-height:1.15;text-align:center;cursor:pointer}
.consent__btn:hover,.consent__btn:focus-visible{background:var(--pine-deep)}
@media (max-width:52em){
  .consent{left:.6rem;right:.6rem;bottom:4.05rem;width:auto;padding:.42rem .5rem;gap:.3rem}
  .consent__line{font-size:.9375rem;line-height:1.25;margin:0}
  .consent__acts{grid-template-columns:1fr 1fr;gap:.3rem}
  .consent__btn{min-height:2.75rem;font-size:.9375rem;line-height:1.1;padding:.3rem .35rem}
}

/* promo — the pinned note, only when site.promo carries an offer; it arrives from the right edge */
.promo{position:fixed;right:clamp(.5rem,2vw,1.5rem);top:clamp(4.6rem,9vh,6rem);z-index:85;width:min(20rem,calc(100% - 1rem));padding:.9rem 2.4rem .9rem 1rem;background:var(--lichen);color:var(--pine);transform:translateX(1.6rem);opacity:0;transition:transform 180ms cubic-bezier(.2,.7,.2,1),opacity 180ms linear}
.promo.is-in{transform:rotate(-4deg);opacity:1}
.promo__line{margin:0 0 .4rem;font-size:1rem;line-height:1.35}
.promo__link{color:var(--pine);font-size:.9375rem;text-decoration:underline;text-underline-offset:.2em}
.promo__close{position:absolute;top:.25rem;right:.25rem;width:2.2rem;height:2.2rem;background:none;border:0;color:var(--pine);font-size:1.35rem;line-height:1;cursor:pointer}
@media (max-width:40em){
  .promo{top:auto;bottom:7.6rem;right:.7rem;left:.7rem;width:auto;padding:.75rem 2.4rem .75rem .9rem}
}

/* reveal — data-reveal on a photo panel or a colour field only, never on text; JS adds "is-in" */
html.js [data-reveal]{opacity:0}
html.js [data-reveal].is-in{opacity:1}

/* skip and hidden text — the skip link shows on focus only, same for screen-reader-only text */
.skip{position:absolute;left:-9999px;top:0;z-index:120;padding:.7rem 1rem;background:var(--lichen);color:var(--pine);text-decoration:none}
.skip:focus{left:.5rem;top:.5rem}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* reduced motion — state changes stay instant, nothing travels */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important;scroll-behavior:auto !important}
  .promo{transition: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; }
/* The opened shelf covers the pinned pair; the notice and the offer always stay beneath it. */
.shelf ~ .consent, .shelf ~ .pins, .shelf ~ .promo { z-index: 60; }
/* 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; }
}
