/* Boy's Club design tokens.
   Every color, font, size, space and duration lives here.
   No hard-coded values anywhere else. */

:root {
  /* Color. Photobook skin: white and almost black only.
     The earlier palette is archived outside the site, in library/site_retired_20261130. */
  --color-paper: #FFFFFF;
  --color-ink: #1A1B1D;
  --color-black: #000000;   /* full black, for the Origins statement */
  --color-null: #C9C9C9;    /* sold out button: flat grey, nothing to press */
  --color-quiet: #1A1B1D;
  --color-rule: #1A1B1D;
  --color-sea: #1A1B1D;
  --color-on-image: #FFFFFF;
  --color-todo: #1A1B1D;
  --hover-opacity: 0.5;
  --quiet-opacity: 0.5;   /* secondary text, e.g. FOUNDER */

  /* Type rule. One sans, one small size, regular weight, almost black.
     Labels are numbers or one word. No long names, no explanations. */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
  --size-xs: 11px;
  --size-s: 11px;
  --size-m: 11px;
  --size-l: 11px;
  --size-xl: 11px;
  --size-story: 14px;   /* Logbook and Origins copy */
  --size-piece-name: 14pt;    /* product page bold title line */
  --size-piece-copy: 12pt;    /* product page description and fabric line */
  --size-piece-label: 12pt;   /* product page price, size and button labels */
  --piece-copy-reach: 96pt;   /* product copy runs this far past the right edge of Add to cart */
  --size-statement: 12pt;   /* Origins statement and join line */
  --weight-light: 300;      /* Helvetica Neue Light; falls back to regular where the light cut is missing */
  --size-caption: 12pt;   /* Origins photo caption, bold caps */
  --size-title: 98pt;   /* one exception: the piece number on the product page */
  --leading-tight: 1.4;
  --leading-body: 1.6;
  --weight-regular: 400;
  --weight-medium: 400;
  --tracking-small: 0.04em;
  --tracking-caps: 0.12em;
  --measure: 50ch;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 104px;
  --space-8: 168px;
  --gutter: 16px;
  --page-margin: var(--gutter);
  --nav-height: 56px;
  --nav-pad-top: 24px;
  --piece-gap: 48px;   /* product page: gallery to text and buttons */
  --rule-width: 1px;
  --field-height: 44px;
  --note-width: 160px;
  --thumb-width: 72px;
  --mark-height: calc(22px * 1.4 * 1.3);  /* nav logo: 22px, +40%, then +30% */
  --mark-height-hero: clamp(140px, 22vw, 300px);   /* home logo, large and centered */
  --mark-opacity-hero: 0.9;              /* home logo and Volume 01 label */
  --drawer-width: min(420px, 100vw);
  --size-cursor: 11px;
  --size-bag: 15px;
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M3 2v17l4.5-4.5 3 6.5 2.5-1-3-6.5H16z' fill='%23000' fill-opacity='.98'/%3E%3C/svg%3E") 3 2, auto;   /* all black arrow, 98% opacity */
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M3 2v17l4.5-4.5 3 6.5 2.5-1-3-6.5H16z' fill='%23fff'/%3E%3C/svg%3E") 2 2, pointer;   /* clickable: all white arrow, a little smaller */
  --cursor-opacity: 0.9;

  /* Origins stack (desktop). Hover nudge picks 1 to 3 px and 1 to 3 deg at random. */

  /* Image sizes for the album */
  --portrait-width: min(56vw, 260px, 22svh);   /* Origins photo, small in lots of white; shrinks on short screens so the page fits */
  --social-box: 36px;      /* social button tap area (portfolio size) */
  --social-glyph: 24px;
  --social-gap: 20px;   /* raises the Origins photo above center */
  --feed-size: min(86vw, 64svh);   /* Home feed photo: the box each full-frame photo fits inside */
  /* Page entrance (Collection, Logbook, Origins): each piece rises in on its own, one after another. */
  --tempo-enter: 700ms;
  --enter-rise: 8px;
  --stagger-nav: 60ms;     /* between nav items */
  --stagger-image: 70ms;   /* between photos */
  --stagger-text: 40ms;    /* between lines of words */
  --stagger-gap: 80ms;     /* pause between nav, photos and words */
  --tempo-snap: 910ms;   /* end of the home feed: glide into the hero before the loop resets (eased 30% longer) */
  --tempo-feed: 560ms;        /* hover, 30% slower */
  --tempo-feed-back: 450ms;             /* tab on hover */
  --tempo-color: 235ms;       /* hover, 30% slower */
  --tempo-color-back: 190ms;   /* quick black and white to color on hover */
  --album-large: 100%;
  --album-medium: 72%;
  --album-small: 44%;
  --hero-height: 100svh;
  --parallax: 0.25;   /* home photo moves at a quarter of scroll speed */
  --hero-focus: 51% 82%;   /* girl and dog in frame. 82% sits the photo about 124px lower than before on a laptop screen, so her head clears the top. Phones crop the sides instead. */
  --gallery-ratio: 1194 / 1600;   /* v1 product window, about 3:4 */
  --piece-image-max: calc(100svh - var(--nav-height) - var(--nav-pad-top) - var(--space-5));

  /* Photo treatment */
  --washed: grayscale(0.35) contrast(0.82) brightness(1.08);
  --washed-opacity: 0.86;

  /* Motion */
  --tempo-still: 2400ms;
  /* Motion runs forward at --tempo-*, and back (close, hover off) 20% faster at --tempo-*-back. */
  --tempo-thrill: 270ms;
  --tempo-thrill-back: 215ms;
  --tempo-drawer: 350ms;       /* bag opening, 30% slower than 270ms */
  --tempo-drawer-back: 280ms;  /* bag closing, 30% slower than 215ms */
  --tempo-hover: 350ms;        /* links and buttons on hover, 30% slower than the bag */
  --tempo-hover-back: 280ms;
  --ease-hover: cubic-bezier(0.45, 0, 0.25, 1);   /* hover: eases in gently, settles smoothly */
  --ease-still: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Gallery curve: flows out quickly, then eases gently to rest. Same curve both ways. Used by most motion on the site. */
  --ease-gallery: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-thrill: var(--ease-gallery);

  /* Landing sequence, like dominoes: each step starts before the last one lands.
     grey holds 400ms, photo fades up over 2600ms, logo starts 55% into the photo,
     nav + subtitle start 40% into the logo. Ends about 4.8s after load.
     Ease-out everywhere: moves right away, glides a long way to rest, never sticks. */
  --color-loading: #ECECEA;   /* light grey the landing page opens on */
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);   /* long, soft glide to rest */
  --ease-hero: cubic-bezier(0.45, 0, 0.15, 1);    /* hero fade: eased start, long soft settle */
  --beat: 400ms;              /* grey before the photo starts */
  --tempo-hero: 1490ms;   /* hero photo fade, 20% faster than 1860ms */
  --logo-at: 425ms;       /* logo starts this long after the photo; COLLECTION 01 line follows it */
  --tempo-logo: 1800ms;
  --tempo-ui: 2200ms;
  --overlap-ui: 0.4;          /* nav + subtitle start this far into the logo */

  /* Layers */
  --layer-media: 0;
  --layer-content: 1;
  --layer-nav: 10;
  --layer-drawer: 20;
  --layer-over-drawer: 25;   /* the B mark stays above the open bag */
  --layer-cursor: 30;
  --color-scrim: rgba(26, 27, 29, 0.24);
}

@media (min-width: 768px) {
  :root {
    --page-margin: var(--space-5);
    --nav-height: 64px;
    --note-width: 200px;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-margin: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tempo-still: 0ms;
    --tempo-thrill: 0ms;
    --tempo-thrill-back: 0ms;
    --tempo-drawer: 0ms;
    --tempo-drawer-back: 0ms;
    --tempo-hover: 0ms;
    --tempo-hover-back: 0ms;
    --tempo-feed: 0ms;
    --tempo-snap: 0ms;
    --tempo-feed-back: 0ms;
    --tempo-color-back: 0ms;
    --tempo-hero: 0ms;
    --tempo-color: 0ms;
    --tempo-logo: 0ms;
    --tempo-ui: 0ms;
    --beat: 0ms;
  }
}
