/* DS-08 White Cube Gallery -- Black Finch Tattoo, tattoo studio.
 *
 * Every contrast this stylesheet ships, measured at build time by
 * css.contrast() rather than asserted:
 *
 *   ink on the white page                18.26:1
 *   ink on the pale plane                16.35:1
 *   muted text on the white page         6.81:1
 *   muted text on the plane              6.09:1
 *   link text on the white page          10.04:1
 *   link text on the plane               8.99:1
 *   ink on the primary action fill       9.07:1
 *   ink on the hovered action fill       7.29:1
 *   ink on the highlight fill            14.64:1
 *   the rule colour on the white page    4.07:1
 *   the rule colour on the plane         3.65:1
 *   the focus ring on the white page     10.04:1
 *   the focus ring on the plane          8.99:1
 *   white reversed out of the ink        18.26:1
 *
 * TWO DEVIATIONS FROM SECTION 4, both forced by a measurement and both
 * keeping section 4's geometry and its colours in the build.
 *
 *   1. THE FOCUS RING. Section 4 names the ring as the highlight #E8E6E1 at
 *      3px solid with 3px offset. Measured against the #FFFFFF page that is
 *      1.25:1, and a non-text indicator has to clear 3:1, so on this
 *      design -- whose whole ground is white -- the specified ring would be
 *      invisible on every page. The ring is drawn in the secondary accent
 *      #6C2E3B instead, which measures 10.04:1, at section 4's exact
 *      3px width and 3px offset. The specified highlight is kept in the
 *      indicator as an outer halo, which is also what makes the ring
 *      readable when focus lands on a control sitting over a dark plate.
 *
 *   2. THE PRIMARY ACTION'S EDGE. Section 4's action #B7B7B2 measures
 *      2.01:1 against the white page. The FILL is fine -- its ink label
 *      is 9.07:1 -- but the fill's own boundary is invisible on
 *      white, and a control whose edge cannot be seen is not a control. Every
 *      action therefore carries a 1px border in #7E7E7B, which is
 *      4.07:1 on the page and 3.65:1 on the plane. The fill and
 *      the label are section 4's, unaltered.
 *
 * The rest of the palette is used according to what it measures:
 *
 *   - The HIGHLIGHT #E8E6E1 is 1.25:1 on white. It is never a rule and
 *     never text. It appears only as a FILL -- the mat a plate sits on, the
 *     hover ground of a wall item -- where ink reads on it at 14.64:1.
 *   - The ACCENT #6C2E3B is 10.04:1 on white, so it carries every link,
 *     the focus ring and the caption rules. It is the only colour in the
 *     build, and it appears roughly a dozen times per page by design: a
 *     white cube is a room that shows one thing at a time.
 *   - Muted prose is mix(action, ink, .57) = #5B5B59 at 6.81:1;
 *     rules are mix(action, ink, .35) = #7E7E7B at 4.07:1. Both keep
 *     the action's hue and move only its luminance.
 *
 * WHAT THE WHITE CUBE IS, in CSS terms, because it is easy to mistake for
 * "no design at all". Three things carry it and all three are here:
 *
 *   1. The ground never changes. There is no dark slab anywhere in this
 *      build -- not the header, not the subscribe band, not the footer.
 *      Every band is white or the plane #F4F2F0, which is 1.12:1
 *      away from white. Separation is done with a hairline, never with a
 *      colour change. Sections 3 and 4 call this "white planes, fine shadows
 *      and measured caption rules"; a reversed footer would have read as a
 *      different design wearing the same typeface.
 *   2. The rules are measured, not decorative. Every hairline in the build
 *      is 1px and every heavier rule is 2px, both in #7E7E7B,
 *      and a caption rule is always the same distance from its caption.
 *   3. The chrome is quiet and the plate is loud. The header is 56px
 *      tall on mobile and 72px from 1024, in the page's own white,
 *      with one hairline under it. Section 15 warns that this bar must not
 *      obscure the H1, strand the menu or change height after the fonts
 *      land: it is sticky rather than fixed, its height is set on the inner
 *      flex row and not on the text, and both faces load with
 *      font-display: optional, so the bar cannot reflow when they arrive.
 */




:root {
  --bg: #FFFFFF;
  --ink: #151515;
  --act: #B7B7B2;
  --acc: #6C2E3B;
  --hi: #E8E6E1;
  --surface: #F4F2F0;
  --muted: #5B5B59;
  --line: #7E7E7B;
  --act-h: #A4A49F;
  --on-act: #151515;

  /* Section 4's spacing scale, entire. No length in this build is off it. */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --max: 1280px;         /* the CONTENT width, section 4 */
  --measure: 68ch;        /* section 4 */
  --measure-s: 52ch;      /* section 4, review quotations */
  --radius: 8px;          /* section 4, the only radius in the build */
  --head-h:var(--catalog-font-heading);        /* section 4, the quiet gallery bar */
  --band-pad: 72px;       /* section 4's 72 / 112 / 144 section spacing */
  --gutter: 16px;
  --gap: var(--s5);       /* base.css reads this for every .grid */

  --hair: 1px;
  --rule: 2px;

  --font-h:var(--catalog-font-heading);
  --font-b:var(--catalog-font-body);

  /* Section 4: 220ms standard, 600ms atmospheric maximum. */
  --t: 220ms cubic-bezier(.2,.8,.2,1);
  --t-long: 600ms cubic-bezier(.2,.8,.2,1);

  /* base.css draws :focus-visible from these three, so the ring is set by
     declaring them rather than by rewriting the rule. Section 4's geometry
     exactly; see deviation 1 above for the colour. */
  --focus-ring: var(--acc);
  --focus-width: 3px;
  --focus-offset: 3px;
}

/* Section 7's gutter ladder, and the section spacing that steps with it. */
@media (min-width: 360px)  { :root { --gutter: 18px; } }
@media (min-width: 375px)  { :root { --gutter: 20px; } }
@media (min-width: 414px)  { :root { --gutter: 24px; } }
@media (min-width: 768px)  { :root { --gutter: 36px; --band-pad: 112px; } }
@media (min-width: 1024px) {
  :root { --gutter: 48px; --band-pad: 144px; --head-h:var(--catalog-font-heading); }
}

/* The outer halo of deviation 1. The outline is base.css's and carries
   section 4's 3px/3px; this only puts the specified highlight back around
   it, which is what keeps the ring legible over a dark plate. */
:focus-visible {
  box-shadow: 0 0 0 calc(var(--focus-offset) + var(--focus-width) * 2)
              var(--hi);
}

/* ---- the ground ------------------------------------------------------- */

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) { body { font-size: 1.0625rem; } }

h1, h2, h3 {
  font-family: var(--font-h);
  font-weight: 400;
  margin: 0;
  overflow-wrap: break-word;
}

/* Section 4's mobile H1, then its desktop H1 at the 768 identity change. */
h1 {
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  line-height: .98;
  letter-spacing: -.02em;
}

@media (min-width: 768px) {
  h1 {
    font-size: clamp(3.25rem, 7vw, 7rem);
    line-height: .94;
    letter-spacing: -.035em;
  }
}

h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; }

p { margin: 0; }

.measure   { max-width: var(--measure); }
.measure-s { max-width: var(--measure-s); }

a { color: var(--acc); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

/* Section 4 puts the metadata floor at .8125rem and labels at .875rem. This
   is the museum-label voice and it is used for every piece of metadata in
   the build, which is what makes the captions read as one system. */
.nav__no, .price__q, .svc__fitlabel, .gal__no, .rev__no, .proc__no,
.how__no, .ft__legal, .hint, .field__opt, .sub-form__status,
.cform__status, .pv__date, .revp__by, .rev__by {
  font-size: .8125rem;
  line-height: 1.35;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- the band --------------------------------------------------------- */
/*
 * `overflow: clip` and not `hidden`: clip contains the caption rules that
 * run to the band edge without creating a scroll container, which `hidden`
 * would, and a scroll container is what silently breaks a sticky child.
 */

.sec {
  position: relative;
  overflow: clip;
  padding-block: var(--band-pad);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec > .wrap > * + * { margin-top: var(--s6); }

/* The measured caption rule. Every band heading in the build carries the
   same short rule above it at the same distance, which is the one piece of
   decoration a white cube is allowed. */
.sec > .wrap > h2,
.sec > .wrap > .phead__h1,
.sec > .wrap > .nf__h1 { padding-top: var(--s5); }

.sec > .wrap > h2::before,
.sec > .wrap > .phead__h1::before,
.sec > .wrap > .nf__h1::before {
  content: "";
  display: block;
  width: 64px;
  height: var(--rule);
  margin-bottom: var(--s5);
  background: var(--acc);
}

/* ---- the quiet gallery bar -------------------------------------------- */

.hd {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  color: var(--ink);
  border-bottom: var(--hair) solid var(--line);
}

/* A button carries its own pair and must not inherit the bar's link colour:
   `.hd a` is (0,1,1) and `.btn--book` is (0,1,0), so without the :not() the
   bar's accent repaints the Book control's ink label, accent on the pale
   action fill, and the same failure repeats in the footer. */
.hd a:not(.btn) { color: var(--ink); }
.hd a:not(.btn):hover { color: var(--acc); }

.hd__in {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: var(--head-h);
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mark {
  font-family: var(--font-h);
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: baseline;
  gap: var(--s2);
}

.mark__h { white-space: nowrap; }

/* The collection line under the name. There is no room for it in the 56px
   bar, so below 768 it is hidden rather than deleted -- deleting it would
   make the selector dead and the wordmark would lose its second line in the
   footer too, where there is room for it. */
.mark__s {
  display: none;
  font-family: var(--font-b);
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) { .mark__s { display: inline; } }

/* ---- navigation: minimal text links plus the collection index ---------- */

.nav { display: none; }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The two-digit index is the collection number, and unlike every other unit
   in this set it stays VISIBLE on the desktop bar: section 3 names the
   navigation as "minimal text links plus collection index", so the number is
   half of that fingerprint row and hiding it would remove it. */
.nav__link {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--s2);
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .02em;
}

.nav__link[aria-current="page"] {
  color: var(--acc);
  box-shadow: inset 0 -2px 0 var(--acc);
}

.nav__no {
  font-size: .6875rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.nav__link[aria-current="page"] .nav__no { color: var(--acc); }

/* ---- the drawer, below 1024 ------------------------------------------- */

.drawer { margin-left: var(--s2); }

.drawer__toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  min-width: 44px;
  padding-inline: var(--s2);
  cursor: pointer;
  list-style: none;
  font-size: .8125rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.drawer__toggle::-webkit-details-marker { display: none; }

.drawer__bars {
  width: 20px;
  height: var(--rule);
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.drawer[open] .drawer__bars { box-shadow: 0 6px 0 currentColor; }

.drawer__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: var(--hair) solid var(--line);
  box-shadow: 0 24px 48px rgba(21, 21, 21, .08);
  padding: var(--s4) var(--gutter) var(--s6);
}

.drawer__panel nav { display: grid; }

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  min-height: 44px;
  padding-block: var(--s2);
  text-decoration: none;
  border-bottom: var(--hair) solid var(--line);
}

.drawer__link:last-child { border-bottom: 0; }

.drawer__link[aria-current="page"] { color: var(--acc); }

/* ---- the desktop bar, at 1024 and up ---------------------------------- */

@media (min-width: 1024px) {
  .nav { display: block; }

  .nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s1) var(--s4);
  }

  .drawer { display: none; }

  .mark { font-size: 1.5rem; }
}

/* ---- actions ---------------------------------------------------------- */
/*
 * Logical padding throughout, and section 4's 24px minimum on the primary
 * action is the padding-inline, so it is 24px ALONG the text whichever way
 * the control is written.
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 44px;
  min-width: 44px;
  padding-inline: var(--s5);
  padding-block: var(--s3);
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-b);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t), color var(--t);
}

/* Section 4's action, with the border of deviation 2. */
.btn--primary, .btn--sub, .btn--book {
  background: var(--act);
  color: var(--on-act);
}

.btn--primary:hover, .btn--primary:active,
.btn--sub:hover, .btn--sub:active,
.btn--book:hover, .btn--book:active {
  background: var(--act-h);
  color: var(--on-act);
}

.btn--ghost { color: var(--acc); }

.btn--ghost:hover, .btn--ghost:active {
  background: var(--surface);
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

/* ---- the skip link ---------------------------------------------------- */

.skip {
  position: absolute;
  left: 0;
  top: var(--s4);
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateX(calc(-100% - var(--s4)));
}

.skip:focus,
.skip:focus-visible {
  left: var(--s4);
  transform: none;
}

/* ---- the subscribe band ----------------------------------------------- */

.sub-band {
  background: var(--surface);
  color: var(--ink);
  border-block: var(--hair) solid var(--line);
  padding-block: var(--s9);
}

.sub-band a:not(.btn) { color: var(--acc); }

.sub-band__in {
  display: grid;
  gap: var(--s6);
}

@media (min-width: 1024px) {
  .sub-band__in {
    grid-template-columns: 58% 42%;
    column-gap: var(--s7);
    align-items: start;
  }
}

.sub-band__h {
  font-family: var(--font-h);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.04;
}

.sub-band__p {
  margin-top: var(--s4);
  max-width: var(--measure);
  color: var(--muted);
}

.sub-form { display: grid; gap: var(--s4); justify-items: start; }

.sub-form__field { width: 100%; max-width: 420px; }

.sub-form__status { margin: 0; }

/* ---- forms ------------------------------------------------------------ */

.field label, .sub-band label {
  display: block;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: var(--s2);
}

.field input, .field select, .field textarea, .sub-band input {
  width: 100%;
  min-height: 44px;
  padding: var(--s3) var(--s4);
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 0 0 var(--hair) var(--line);
  transition: box-shadow var(--t);
}

.field textarea { min-height: 168px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus,
.sub-band input:focus { box-shadow: inset 0 0 0 var(--rule) var(--ink); }

.field input::placeholder, .field textarea::placeholder,
.sub-band input::placeholder { color: var(--muted); }

.field__opt { text-transform: none; letter-spacing: normal; }

.hint { margin-top: var(--s2); text-transform: none; letter-spacing: normal; }

.err { margin: var(--s2) 0 0; font-size: .875rem; color: var(--acc); }

/* ---- the museum-label footer ------------------------------------------ */
/*
 * A wall label: a heavy rule, then the identity, then the metadata in the
 * same .8125rem uppercase voice the captions use. It stays on the page's own
 * white, because a reversed footer would end the white cube one band early.
 */

.ft {
  background: var(--bg);
  color: var(--ink);
  border-top: var(--rule) solid var(--ink);
  padding-block: var(--s8) var(--s7);
}

.ft a:not(.btn) { color: var(--acc); }
.ft a:not(.btn):hover { color: var(--ink); }

.ft__in {
  display: grid;
  gap: var(--s7);
  margin-top: var(--s8);
}

@media (min-width: 768px) {
  .ft__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ft__h {
  font-family: var(--font-b);
  font-size: .8125rem;
  line-height: 1.35;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--line);
}

.ft__addr { line-height: 1.9; font-style: normal; }

.ft__hours { margin: 0; }

.ft__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-block: var(--s2);
  border-bottom: var(--hair) solid var(--line);
}

.ft__row:last-child { border-bottom: 0; }

.ft__row dt { font-weight: 700; min-width: 11ch; }

.ft__row dd { margin: 0; color: var(--muted); }

.ft__list { list-style: none; margin: 0; padding: 0; }

.ft__list li { border-bottom: var(--hair) solid var(--line); }

.ft__list li:last-child { border-bottom: 0; }

.ft__list a {
  display: block;
  min-height: 44px;
  line-height: 44px;
  text-decoration: none;
}

.ft__foot {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: var(--hair) solid var(--line);
  display: grid;
  gap: var(--s3);
}

/* ---- print ------------------------------------------------------------ */
/*
 * base.css already hides .skip, .drawer and .sub-band in print. The bar is
 * sticky rather than fixed, so it does not reprint on every page; it only
 * needs its hairline turned into something a printer will actually render.
 */

@media print {
  .hd { position: static; border-bottom: 1px solid #000; }
  .ft { border-top: 2px solid #000; }
  .sec { padding-block: var(--s7); }
}


/* PREMIUM REALISM PASS — DS01-09
   One unmistakable signature per design; shared selectors only provide polish. */
footer, .ft { position: relative; overflow: hidden; isolation: isolate; }
footer::before, .ft::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 88% 12%, rgba(225,69,45,.09), transparent 38%), linear-gradient(110deg, transparent 0 58%, rgba(225,69,45,.09) 58% 59%, transparent 59%); }
footer a, .ft a { text-underline-offset: .28em; transition: color .2s ease, transform .2s ease; }
footer a:hover, footer a:focus-visible, .ft a:hover, .ft a:focus-visible { color: #E1452D; }
.stf, .stf__card, [class*="staff-card"] { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.stf:hover, .stf__card:hover, [class*="staff-card"]:hover { transform: scale(1.012); border-color: #E1452D; box-shadow: 0 18px 48px rgba(225,69,45,.09); }
.field--intake { padding: 14px; border-inline-start: 3px solid #E1452D; background: rgba(225,69,45,.09); }
.field--intake label { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .stf, .stf__card, [class*="staff-card"] { transition: none; } .stf:hover, .stf__card:hover, [class*="staff-card"]:hover { transform: none; } }
