/* =========================================================
   Bauer Built — global foundations
   Editorial, restrained, confident. Fonts, tokens, base
   reset and the composed-page motion system only — all
   component/section CSS lives in Etch style records so it
   stays editable per-element in the builder.
   ========================================================= */

/* ---- Fonts (self-hosted) ---- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/instrument-serif-400.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/instrument-serif-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/ibm-plex-mono-400.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/ibm-plex-mono-500.woff2) format("woff2");
}

/* ---- Design tokens ---- */
:root {
  /* Type scale — one source of truth. Every font-size on the site resolves
     here; no record should carry a raw px value. Steps are ~1.12 apart, which
     is wide enough to read as deliberate and narrow enough to stay a system.
     The body range was previously 13 separate values between 10.5 and 20px. */
  --text-eyebrow: 12px;   /* small-caps labels, section openers, footer meta */
  --text-label:   13px;   /* mono data, burger, social marks */
  --text-meta:    15px;   /* buttons, footer links, nav dropdown */
  --text-sm:      16px;   /* card copy, secondary body */
  --text-body:    17px;   /* base reading size */
  --text-md:      19px;   /* accordion questions, emphasised body */
  --text-lg:      21px;   /* ledes */
  --text-nav:     17px;   /* primary navigation */

  /* Display */
  --text-h-s:     29px;
  --text-h-m:     36px;
  --text-h-l:     clamp(48px, 4.5vw, 70px);
  --text-h-xl:    clamp(56px, 5.2vw, 80px);
  --text-h-xxl:   clamp(72px, 8.2vw, 124px);
  --text-h-cta:   clamp(78px, 9.4vw, 148px);
  --text-h-quote: clamp(54px, 5.6vw, 84px);
  --text-hero:    clamp(56px, 7.4vw, 116px);
  --text-hero-alt: clamp(56px, 8vw, 128px);

  /* Line heights */
  --lh-tight: 1.1;
  --lh-snug:  1.35;
  --lh-body:  1.6;
  --lh-loose: 1.7;
  /* Surfaces */
  --ink:        #16150F;
  --paper:      #FFFFFF;
  --bone:       #F1EDE4;
  --near-black: #0B0B09;
  --mist:       #E7E3DA;

  /* Text roles */
  --body-grey:  #3D3C36;
  --label-grey: #575C63;
  --dark-body:  #B9B7AD;
  --dark-label: #8F949C;
  --accent-muted: #9A958A;

  /* Hairlines */
  --rule-opener: #16150F;
  --rule:        rgba(22, 21, 15, 0.3);
  --rule-soft:   rgba(22, 21, 15, 0.15);
  --rule-strong: #16150F;
  --rule-dark-opener: rgba(255, 255, 255, 0.85);
  --rule-dark:        rgba(255, 255, 255, 0.14);

  /* Typography */
  --serif: "Instrument Serif", Georgia, serif;
  --sans:  "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --container:      1520px;
  --gutter:         48px;
  --gutter-mobile:  20px;
  --nav-height:     92px;
  --nav-height-mobile: 76px;
  --section-pad:       110px;
  --section-pad-close: 130px;
  --hero-pad-top:    11vh;
  --hero-pad-bottom: 120px;
  --radius: 0px;
  --density: 1;

  /* Motion */
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  0.2s;
  --dur-med:   0.3s;
  --dur-slow:  0.45s;

  /* Layering */
  --z-nav:     100;
  --z-overlay: 99;
  --z-sticky:  10;

  /* Surface contract — light defaults; .bb-section remaps per surface */
  --sf-bg:          var(--paper);
  --sf-heading:     var(--ink);
  --sf-body:        var(--body-grey);
  --sf-label:       var(--label-grey);
  --sf-rule-opener: var(--rule-opener);
  --sf-rule:        var(--rule);
  --sf-rule-soft:   var(--rule-soft);
  --sf-btn-bg:      var(--ink);
  --sf-btn-fg:      var(--paper);
  --sf-btn-hov-bg:  var(--near-black);
  --sf-btn-hov-fg:  var(--bone);
  --sf-ghost-fg:    var(--ink);
  --sf-ghost-line:  var(--ink);
  --sf-ghost-hov-bg: var(--ink);
  --sf-ghost-hov-fg: var(--paper);
  --sf-accent-muted: var(--accent-muted);
  --sf-field-line:  var(--ink);
  --sf-input:       var(--ink);
}

[data-density="tight"]   { --density: 0.78; }
[data-density="default"] { --density: 1; }
[data-density="airy"]    { --density: 1.28; }

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* The UA's [hidden] rule is 0-specificity, so any author display
   value silently beats it and the element renders anyway. */
[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--bone); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  font-size: 13px;
  z-index: 1000;
}
.skip-link:focus { top: 8px; }

.bb-hide-mobile { display: block; }
.bb-show-mobile { display: none; }
@media (max-width: 900px) {
  .bb-hide-mobile { display: none !important; }
  .bb-show-mobile { display: block; }
}

/* =========================================================
   Motion — the composed page
   Entrances behave like the page being put together on the
   press: opener rules are scribed across, their labels set,
   headlines print upward from the baseline, photographs
   develop inside their crop. One ease, each element once;
   hover feedback stays instant and nothing loops.

   Every rule here is gated behind html.mo, which the loader
   (mu-plugin) adds only when JS runs and the visitor allows
   motion — without it the page renders complete and still.
   ========================================================= */

.mo [data-mo] {
  transition:
    opacity 0.9s var(--ease-settle),
    transform 0.9s var(--ease-settle),
    clip-path 0.9s var(--ease-settle);
  transition-delay: calc(var(--moi, 0) * 80ms);
}

.mo [data-mo="settle"]:not(.mo-in) {
  opacity: 0;
  transform: translateY(16px);
}

.mo [data-mo="print"] {
  clip-path: inset(-12% -3% -16% -3%);
  transition-duration: 1.15s;
}
.mo [data-mo="print"]:not(.mo-in) {
  opacity: 0;
  transform: translateY(0.24em);
  /* A 1px sliver stays unclipped: a zero-area clip-path makes
     IntersectionObserver report the element as never visible,
     so the reveal would never fire. opacity hides the sliver. */
  clip-path: inset(calc(100% - 1px) -3% -16% -3%);
}

.mo [data-mo="plate"] {
  clip-path: inset(0 0 0 0);
  transition-duration: 1.1s;
}
.mo [data-mo="plate"]:not(.mo-in) {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
}
.mo [data-mo="plate"] img {
  transition: transform 1.7s var(--ease-settle);
  transition-delay: inherit;
}
.mo [data-mo="plate"]:not(.mo-in) img { transform: scale(1.04); }

.mo [data-mo="develop"] { transition: opacity 1.1s var(--ease-out); }
.mo [data-mo="develop"]:not(.mo-in) { opacity: 0; }
.mo [data-mo="develop"] img { transition: transform 2.4s var(--ease-settle); }
.mo [data-mo="develop"]:not(.mo-in) img { transform: scale(1.05); }

.mo [data-mo="rule"] { position: relative; }
.mo [data-mo="rule"][data-mo-edge="top"] { border-top-color: transparent !important; }
.mo [data-mo="rule"][data-mo-edge="bottom"] { border-bottom-color: transparent !important; }
.mo [data-mo="rule"]::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--mo-rule-c, var(--rule-opener));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-settle);
  transition-delay: calc(var(--moi, 0) * 80ms);
}
.mo [data-mo="rule"][data-mo-edge="top"]::before { top: -1px; }
.mo [data-mo="rule"][data-mo-edge="bottom"]::before { bottom: -1px; }
.mo [data-mo="rule"].mo-in::before { transform: scaleX(1); }
.mo [data-mo="rule"] > * {
  opacity: 0;
  transition: opacity 0.7s var(--ease-settle);
  transition-delay: calc(var(--moi, 0) * 80ms + 0.35s);
}
.mo [data-mo="rule"].mo-in > * { opacity: 1; }

/* Reduced motion: the loader never runs, and hover transitions
   collapse to instant state changes. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* WordPress core + FurtzHub Connect inline rules (live prints them in every page head) */
img:is([sizes=auto i],[sizes^="auto," i]){contain-intrinsic-size:3000px 1500px}
.wp-block-post-content{display:flow-root}
[data-fh-requires="instagram"]{display:none !important}
