/* ==========================================================================
   PICK LAYERS - shared design system (inner pages)
   Tokens, base, header/footer, buttons and reusable pieces.
   Page-specific layouts live in each page's own <style>.
   ========================================================================== */
:root {
  --ink: #0e0e0c; --paper: #f3f0e8; --orange: #ff5b14; --yellow: #ffd23f;
  --bg: #f3f0e8; --fg: #0e0e0c; --alt: #e6e2d7; --card: #f3f0e8; --mut: #5b5850;
  --inv-bg: #0e0e0c; --inv-fg: #f3f0e8; --inv-mut: #c9c5b8;
  --display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --wrap: 1320px; --gutter: clamp(20px, 4vw, 56px); --section: clamp(90px, 11vw, 170px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1); --r: 26px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0e0e0c; --fg: #f3f0e8; --alt: #171714; --card: #1b1b18; --mut: #b7b3a6;
  --inv-bg: #1b1b18;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Layout + surfaces */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.alt { background: var(--alt); }
.inv { background: var(--inv-bg); color: var(--inv-fg); }          /* dark block that softens in dark mode */
.ink { background: var(--ink); color: var(--paper); }              /* always black */
.hot { background: var(--orange); color: var(--ink); }             /* always orange */
.sun { background: var(--yellow); color: var(--ink); }             /* always yellow */
.inv p { color: var(--inv-mut); }
.ink p { color: #c9c5b8; }
.hot p, .sun p { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.94; }
h1 { font-size: clamp(46px, 7.4vw, 128px); line-height: 0.92; }
h2 { font-size: clamp(38px, 5.6vw, 92px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.035em; line-height: 1.04; }
h1 em, h2 em, h3 em { font-style: normal; background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); }
.inv em, .ink em, html[data-theme="dark"] h1 em, html[data-theme="dark"] h2 em, html[data-theme="dark"] h3 em { background: none; color: var(--orange); }
.hot em { background: none; color: var(--paper); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
p { color: var(--mut); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.statement { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.tag::before { content: ''; width: 10px; height: 10px; background: var(--orange); border-radius: 2px; }
.hot .tag::before { background: var(--ink); }
.tag.warn::before { background: var(--yellow); }
.big-num { font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.82; }

/* Buttons + links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 26px; border-radius: 14px; border: 2px solid var(--fg); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--orange); color: var(--ink); box-shadow: 0 0 0 var(--fg); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.btn:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--fg); }
.btn:active { transform: none; box-shadow: 0 0 0 var(--fg); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-fg { background: var(--fg); color: var(--bg); }
.btn-fg:hover { box-shadow: 6px 6px 0 var(--orange); }
.inv .btn, .ink .btn { border-color: var(--paper); }
.inv .btn:hover, .ink .btn:hover { box-shadow: 6px 6px 0 var(--paper); }
.hot .btn, .sun .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hot .btn:hover, .sun .btn:hover { box-shadow: 6px 6px 0 var(--paper); }
.ulink { font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid currentColor; padding-bottom: 4px; display: inline-flex; gap: 8px; transition: color 0.3s, gap 0.3s var(--ease); }
.ulink:hover { color: var(--orange); gap: 14px; }
.hot .ulink:hover { color: var(--paper); }

/* Reusable pieces */
.box { border: 2px solid var(--fg); border-radius: var(--r); background: var(--card); padding: clamp(24px, 3vw, 40px); }
.inv .box, .ink .box { border-color: var(--paper); background: transparent; }
.box.lift { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s, color 0.4s; }
.box.lift:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 var(--fg); }
.inv .box.lift:hover, .ink .box.lift:hover { box-shadow: 8px 8px 0 var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 14px; border: 2px solid currentColor; border-radius: 100px; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
a.chip:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-3px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; margin-bottom: 26px; }
.crumbs a:hover { color: var(--orange); }
.crumbs span::before { content: '/'; margin-right: 8px; opacity: 0.5; }
.duo { position: relative; overflow: hidden; border: 2px solid var(--fg); border-radius: var(--r); background: var(--ink); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.duo::after { content: ''; position: absolute; inset: 0; background: var(--orange); mix-blend-mode: multiply; pointer-events: none; }
.duo.sun-tone::after { background: var(--yellow); }
.duo.plain::after { display: none; }
.ill { width: 100%; height: 100%; }
.ill-t { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; fill: currentColor; }
.ill-b { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; fill: currentColor; }
.marquee { overflow: hidden; border-block: 2px solid var(--ink); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: pl-slide 34s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: '✳'; font-size: 0.6em; }
@keyframes pl-slide { to { transform: translateX(-50%); } }

/* Author byline (links to the founder page) */
.byline { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border: 2px solid currentColor; border-radius: 100px; max-width: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
a.byline:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 currentColor; }
.byline img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid currentColor; background: var(--ink); }
.byline span { display: block; line-height: 1.25; }
.byline .by-k { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.byline .by-n { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.byline .by-r { font-size: 13px; opacity: 0.8; }
.snippet { border: 2px solid var(--fg); border-left: 10px solid var(--orange); border-radius: 16px; padding: 22px 26px; background: var(--card); max-width: 820px; }
.snippet p { color: var(--fg); font-size: 18px; line-height: 1.55; }
.inv .snippet, .ink .snippet { background: transparent; border-color: var(--paper); border-left-color: var(--orange); }
.inv .snippet p, .ink .snippet p { color: var(--paper); }

/* FAQ accordion */
.faq-item { border: 2px solid var(--fg); border-radius: 18px; margin-bottom: 14px; background: var(--card); overflow: hidden; transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.faq-item.is-open { box-shadow: 8px 8px 0 var(--fg); transform: translate(-4px, -4px); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; text-align: left; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.03em; line-height: 1.15; }
.faq-q i { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--fg); position: relative; transition: background 0.3s, transform 0.5s var(--ease); }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--fg); transform: translate(-50%, -50%); }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.is-open .faq-q i { background: var(--orange); transform: rotate(180deg); }
.is-open .faq-q i::before, .is-open .faq-q i::after { background: var(--ink); }
.is-open .faq-q i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p { padding: 0 26px 26px; max-width: 680px; }
.inv .faq-item, .ink .faq-item { background: transparent; border-color: var(--paper); }
.inv .faq-item.is-open, .ink .faq-item.is-open { box-shadow: 8px 8px 0 var(--paper); }
.inv .faq-q i, .ink .faq-q i { border-color: var(--paper); }
.inv .faq-q i::before, .inv .faq-q i::after, .ink .faq-q i::before, .ink .faq-q i::after { background: var(--paper); }

/* Chrome */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0%)); animation: pl-theme 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes pl-theme { to { clip-path: circle(160vmax at var(--vx, 50%) var(--vy, 0%)); } }

/* Header: text colour before scrolling depends on the hero under it */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--paper); transition: background 0.4s, color 0.4s, border-color 0.4s; border-bottom: 2px solid transparent; }
body[data-hero-tone="light"] .header { color: var(--fg); }
body[data-hero-tone="orange"] .header, body[data-hero-tone="yellow"] .header { color: var(--ink); }
.header.is-solid, body[data-hero-tone] .header.is-solid { background: var(--bg); color: var(--fg); border-color: var(--fg); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -0.05em; }
.logo svg { width: 34px; height: 34px; }
.logo .bar { fill: currentColor; }
.logo .pick { fill: var(--orange); transition: transform 0.5s var(--ease); }
body[data-hero-tone="orange"] .header:not(.is-solid) .logo .pick { fill: var(--paper); }
.logo:hover .pick { transform: translateX(-8px); }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 15px; font-weight: 600; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.4s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.actions { display: flex; align-items: center; gap: 12px; }
.header .btn { padding: 12px 18px; border-color: currentColor; }
body[data-hero-tone="orange"] .header:not(.is-solid) .btn { background: var(--ink); color: var(--paper); }
.icon-btn { width: 46px; height: 46px; border: 2px solid currentColor; border-radius: 12px; display: grid; place-items: center; position: relative; transition: transform 0.4s var(--ease); }
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); }
.theme-btn svg { width: 20px; height: 20px; transition: transform 0.7s var(--ease); }
html[data-theme="dark"] .theme-btn svg { transform: rotate(180deg); }
.menu-btn { display: none; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 25px; }
.menu-open .menu-btn i:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--orange); color: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter); transform: translateY(-101%); transition: transform 0.7s var(--ease); }
.menu-open .mobile-menu { transform: none; }
.menu-open .header, body[data-hero-tone] .menu-open .header { color: var(--ink); background: transparent; border-color: transparent; }
.mobile-menu a { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 11vw, 52px); letter-spacing: -0.05em; line-height: 1.1; }

/* Footer */
.footer { padding: 70px 0 30px; background: var(--ink); color: var(--paper); }
.footer p { color: #c9c5b8; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 54px; }
.foot-top p { font-size: 15px; max-width: 300px; margin-top: 18px; }
.footer h4 { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.footer li { margin-bottom: 9px; font-size: 15.5px; }
.footer li a:hover { color: var(--orange); }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(243, 240, 232, 0.2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #a9a598; }

@media (max-width: 1024px) {
  .nav, .header .btn { display: none; }
  .menu-btn { display: grid; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  ::view-transition-new(root) { animation: none; clip-path: none; }
}
