/* Fonts are served from this site, so pages make no requests to Google. Barlow and Barlow Condensed, SIL Open Font License 1.1. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Bearproof — gritty noir. One type family (Barlow), no color accent. */
:root {
  /* color */
  --night: #0B0B0A;   /* page */
  --smoke: #161614;   /* hover, raised */
  --ash:   #2A2926;   /* rules, frames */
  --dim:   #9C988F;   /* secondary text */
  --fog:   #CFCAC0;   /* body text */
  --bone:  #E8E3D7;   /* headlines, paper */
  --ink:   #111110;   /* text on paper */

  /* type: Barlow Condensed for display + labels, Barlow for reading */
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --d1: clamp(56px, 9vw, 140px);
  --d2: clamp(36px, 5vw, 64px);
  --d3: 24px;
  --body: 16px;
  --small: 14px;
  --label: 13px;

  /* space */
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(56px, 8vw, 110px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--night); }
body { margin: 0; color: var(--fog); font: 400 var(--body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; background-image: var(--grain); opacity: .07; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }

/* ---------- type (the only text styles) ---------- */
.d1, .d2, .d3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; color: var(--bone); line-height: .92; }
.d1 { font-size: var(--d1); }
.d2 { font-size: var(--d2); }
.d3 { font-size: var(--d3); line-height: 1; }
.label { font-family: var(--cond); font-weight: 600; font-size: var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.small { font-size: var(--small); }
.dim { color: var(--dim); }
a.label { text-decoration: none; color: var(--bone); border-bottom: 1px solid var(--ash); padding-bottom: 2px; }
a.label:hover { border-color: var(--bone); }

/* ---------- layout ---------- */
.wrap { padding: 0 var(--gutter); }
.sec { padding: var(--section) var(--gutter) 0; }
.rule { border-top: 1px solid var(--ash); }
.sec-head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-top: 18px; margin-bottom: 34px; }
.sec-head p { max-width: 60ch; margin: 14px 0 0; }
@media (max-width: 640px) { .sec-head { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- header / footer ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand svg { width: 76px; height: 76px; }
.brand-lg svg { width: 112px; height: 112px; }
@media (max-width: 640px) { .brand svg { width: 52px; height: 52px; } }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--bone); }
@media (max-width: 760px) { .nav a:not(:first-child) { display: none; } }

.site-footer { margin-top: var(--section); padding: 34px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer ul { list-style: none; margin: 10px 0 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer .fine { grid-column: 1 / -1; padding-top: 18px; margin: 0; }
@media (max-width: 640px) { .site-footer { grid-template-columns: 1fr; } }

/* ---------- black & white stills (placeholders for photography) ---------- */
.still { position: relative; overflow: hidden; background-color: #1b1b19; }
.still::before, .still::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.still::before { background-image: var(--grain); opacity: .45; mix-blend-mode: overlay; }
.still::after { box-shadow: inset 0 0 140px rgba(0,0,0,.85); }
.still { background-image: radial-gradient(80% 70% at 60% 35%, rgba(255,255,255,.16), transparent 70%), linear-gradient(180deg, #4a4946, #262523 55%, #0d0d0c); }
.still.hi { background-image: radial-gradient(90% 70% at 40% 25%, rgba(255,255,255,.28), transparent 70%), linear-gradient(180deg, #6d6b67, #3a3936 55%, #121211); }
.still > svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.still > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.still .label { position: absolute; z-index: 2; left: 14px; bottom: 10px; max-width: 80%; font-size: 11px; color: rgba(232,227,215,.5); }

/* ---------- hero: one framed film still ---------- */
.frame { margin: 0 var(--gutter); border: 1px solid var(--ash); padding: 8px 10px; }
.frame-edge { display: flex; justify-content: space-between; padding: 0 2px 8px; }
.frame-edge:last-child { padding: 8px 2px 0; }
.hero .still { aspect-ratio: 21 / 9; min-height: 380px; }
.hero-title { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding: 36px var(--gutter) 0; }
.hero-title p { max-width: 44ch; margin: 0 0 8px; }
@media (max-width: 760px) { .hero .still { aspect-ratio: 3 / 4; } .hero-title { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- file card (origin) ---------- */
.file { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.file .still { aspect-ratio: 4 / 3; }
.file .d2 { margin-bottom: 18px; }
.file p { max-width: 54ch; }
.file dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; margin: 22px 0 0; padding-top: 16px; }
.file dd { margin: 0; font-size: var(--small); }
@media (max-width: 760px) { .file { grid-template-columns: 1fr; } }

/* ---------- standard ---------- */
.std { display: grid; grid-template-columns: repeat(3, 1fr); }
.std > div { padding: 22px 22px 0 0; }
.std .d3 { margin: 8px 0 6px; }
@media (max-width: 900px) { .std { grid-template-columns: 1fr 1fr; } }

/* ---------- prose pages ---------- */
.prose { max-width: 70ch; padding: 0 var(--gutter); }
.prose h2 { margin: 1.8em 0 .5em; }
.prose a { color: var(--bone); text-underline-offset: 3px; }
.page-hero .still { aspect-ratio: 21 / 7; min-height: 260px; }
.page-hero .d1 { padding: 30px var(--gutter) 40px; }

/* ---------- looks ---------- */
.look-attitude { margin: 14px 0 0; max-width: 46ch; font-size: 20px; line-height: 1.4; color: var(--fog); }
.look-index { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; padding: 14px; background: #050505; border: 1px solid var(--ash); }
.look-card { text-decoration: none; }
.look-card .still { aspect-ratio: 4 / 5; margin-bottom: 8px; }
.look-card .d3 { display: block; margin-top: 4px; font-size: clamp(14px, 1.6vw, 24px); overflow-wrap: anywhere; }
.look-card:hover .still { outline: 2px solid var(--bone); outline-offset: 3px; }
.look-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.look-image::after { box-shadow: none; background: linear-gradient(180deg, transparent 35%, rgba(5,5,5,.55) 60%, rgba(5,5,5,.88) 100%); }
.look-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 22px 20px; list-style: none; counter-reset: ov; columns: 2; column-gap: 20px; color: #fff; font: 600 13px/1.35 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.look-overlay li { counter-increment: ov; break-inside: avoid; padding: 3px 0; }
.look-overlay li::before { content: counter(ov, decimal-leading-zero) "  "; opacity: .6; }
.look-image { aspect-ratio: 4 / 5; position: sticky; top: 24px; }
.look-items { list-style: none; counter-reset: it; margin: 0; padding: 0; border-top: 1px solid var(--ash); }
.look-items li { counter-increment: it; display: grid; grid-template-columns: 34px 52px 1fr auto auto; gap: 2px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--ash); }
.look-items li::before { content: counter(it, decimal-leading-zero); grid-row: span 2; font: 600 var(--label)/1 var(--cond); color: var(--dim); }
.look-items .it-name { color: var(--bone); }
.look-items .it-icon { grid-row: span 2; width: 44px; height: 44px; color: var(--bone); align-self: center; }
.look-items .it-desc { grid-column: 3; font-size: var(--small); }
.look-items a { grid-column: 5; grid-row: 1 / span 2; align-self: center; }
/* "$25 or less" box (tools/apply_price_badges.py): white, just left of the Amazon button */
.look-items .u25 { grid-column: 4; grid-row: 1 / span 2; align-self: center; background: #fff; color: var(--ink); font: 700 11px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; white-space: nowrap; }
.look-items .u25[hidden] { display: none; }
.look-items li:has(.buy-alt:not([hidden])) .buy { grid-row: 1; align-self: end; }
.look-items .buy-alt { grid-row: 2; align-self: start; }
/* Item color square (index.html script sets --sw): a small square in front of the color name in each gear description,
   showing the linked product's main color. With the colorway strip, the only color on the site. */
.look-items .it-desc[style*="--sw"]::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -.05em; background: var(--sw); border: 1px solid rgba(255,255,255,.35); box-sizing: border-box; }
@media (max-width: 1000px) { .look-index { grid-template-columns: repeat(4, minmax(0, 1fr)); } .look-card .d3 { font-size: clamp(13px, 3.6vw, 24px); } }
@media (max-width: 480px) { .look-index { gap: 8px; padding: 10px; } }
/* Amazon search placeholders (not yet a specific product): greyed out until replaced */
.look-items a[href*="amazon.com/s?"] { color: var(--dim); opacity: .5; border-bottom-style: dashed; }
.look-items a.soldout { pointer-events: none; cursor: default; text-decoration: none; border-bottom: 0; }
.look-tabs { display: flex; gap: 24px; margin-bottom: 14px; }
.look-tabs button { font-family: var(--cond); font-weight: 600; font-size: var(--label); letter-spacing: .12em; text-transform: uppercase; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 4px 0; cursor: pointer; }
.look-tabs button:hover { color: var(--fog); }
.look-tabs button[aria-selected="true"] { color: var(--bone); border-color: var(--bone); }
.look-tabs button:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
.look-books { list-style: none; counter-reset: bk; margin: 0; padding: 0; border-top: 1px solid var(--ash); }
.look-books li { counter-increment: bk; display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--ash); }
.look-books li::before { content: counter(bk, decimal-leading-zero); grid-row: span 2; font: 600 var(--label)/1 var(--cond); color: var(--dim); }
.look-books .it-name { color: var(--bone); }
.look-books .it-desc { grid-column: 2; font-size: var(--small); }
.look-books a { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.look-books li:has(a + a) { grid-template-columns: 34px 1fr auto auto; }
.look-books a + a { grid-column: 4; }
@media (max-width: 760px) { .look-body { grid-template-columns: 1fr; } .look-image { position: relative; top: auto; } }
.ast { text-decoration: none; color: inherit; font-size: .6em; vertical-align: super; line-height: 0; margin-left: 1px; }
.mission-disclaimer { font-size: var(--small); color: var(--dim); max-width: 60ch; border-top: 1px solid var(--ash); padding-top: 12px; margin-top: 18px; }
.site-footer .disclaimer { padding-top: 10px; text-transform: none; letter-spacing: 0; font-size: var(--label); color: var(--dim); max-width: 72ch; }
.gender-toggle { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; gap: 4px; }
.gender-toggle button { width: 26px; height: 26px; padding: 0; border: 1px solid #fff; background: rgba(5,5,5,.35); color: #fff; font: 600 12px/1 var(--cond); letter-spacing: .04em; cursor: pointer; }
.gender-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.gender-toggle button:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
/* Colorway: the look's lead color and two accents as one strip, 60/30/10, as wide as M/F/N. A key, not a control.
   The only color on the site (STYLE-BRIEF.md, COLORWAYS.md). */
.colorway { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; width: 86px; height: 26px; border: 1px solid rgba(255,255,255,.7); box-sizing: border-box; }
.colorway span { background: var(--sw); }
.look-card .colorway { top: 8px; left: 8px; width: 58px; height: 14px; }

/* ---------- look pages (site/<look>/index.html, built by tools/build_look_pages.py) ---------- */
.look-notes { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 18px 0 0; max-width: 64ch; color: var(--fog); }
.look-notes .label { padding-top: 2px; }
.look-pager { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter) var(--section); border-top: 1px solid var(--ash); }
.look-pager a { color: var(--bone); text-decoration: none; }
.look-pager a:hover { text-decoration: underline; }
