/* Poggy x Brands (partners host). Core tokens copied from el.css so this
   separate origin matches the main site; keep the two in step.
   The Evidence Locker: one design system for every page.
   Art direction: "Studio Continuity Department, after hours".
   Manila folders, carbon ink, red pencil for marks, blue pencil for notes.
   Light (archive paper) by default; dark is the same room with the lamps off. */

/* ------------------------------------------------------------ tokens */
:root {
  --paper: #f6f1e4;
  --manila: #e9dfc7;
  --manila-2: #ddd0b0;
  --card: #fffdf6;
  --ink: #1b1a17;
  --ink-2: #47423a;
  --ink-3: #625b4c;
  --rule: rgba(27, 26, 23, .16);
  --rule-2: rgba(27, 26, 23, .32);
  --red: #b3261e;
  --red-ink: #b3261e;
  --blue: #2c5d8a;
  --on-ink: #f6f1e4;
  --shadow: 0 1px 0 rgba(60, 45, 15, .10), 0 10px 24px -16px rgba(60, 45, 15, .55);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .12 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --stamp: "Oswald", "Arial Narrow", Impact, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 68ch;

  /* names older stylesheets and el-game.css read */
  --bg: var(--paper); --text: var(--ink); --accent: var(--red);
  --font-heading: var(--serif); --font-body: var(--sans);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --manila: #221d16;
    --manila-2: #2e271d;
    --card: #1d1914;
    --ink: #ece4d2;
    --ink-2: #c9bea7;
    --ink-3: #a3987f;
    --rule: rgba(236, 228, 210, .14);
    --rule-2: rgba(236, 228, 210, .30);
    --red: #e2665a;
    --red-ink: #e2665a;
    --blue: #86b0d8;
    --on-ink: #16130f;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 14px 28px -18px rgba(0, 0, 0, .9);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .85 0 0 0 0 .7 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red-ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; font-optical-sizing: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; font: 500 .85rem var(--mono);
}
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small type roles */
.kicker, .label {
  font: 500 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

/* ------------------------------------------------------------ masthead */
.mast { border-bottom: 1px solid var(--rule-2); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; flex-wrap: wrap; padding-block: .55rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; padding-block: .35rem; min-height: 44px; justify-content: center; }
.wm-name { font: 600 1.28rem/1 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.wm-tag { font: 500 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); margin-top: .35rem; }
.wordmark:hover .wm-name { color: var(--red-ink); }
.mast-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; margin-inline: -.3rem; }
.mast-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .3rem;
  font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
.mast-nav a:hover { color: var(--red-ink); }
.mast-nav .nav-support { color: var(--red-ink); }
.mast-nav .nav-support::before { content: ""; width: .5rem; height: .5rem; border: 1.5px solid currentColor; border-radius: 50%; margin-right: .45rem; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--rule-2); margin-top: clamp(3rem, 8vw, 6rem); padding-block: 2.2rem 2.6rem; color: var(--ink-2); font-size: .9rem; }
.foot-in { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.foot-mark { font: 600 1.1rem var(--serif); color: var(--ink); }
.foot-line { margin-top: .2rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin-inline: -.2rem; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .2rem; font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { color: var(--red-ink); }
.foot-fine, .affiliate-note { font: 400 .74rem/1.5 var(--mono); color: var(--ink-3); }
@media (min-width: 760px) {
  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
  .foot-nav { justify-content: flex-end; }
}

/* ------------------------------------------------------------ section heads */
main { counter-reset: sec; display: block; }
.sec-h, .archive-head h2, .incoming > h2, .shelves > h2 {
  font: 600 clamp(1.7rem, 3.4vw, 2.4rem)/1.05 var(--serif); letter-spacing: -.02em;
  border-top: 2px solid var(--ink); padding-top: .7rem; margin: 0;
}
.archive-head h2::before, .incoming > h2::before, .shelves > h2::before {
  counter-increment: sec; content: "\00a7\00a0" counter(sec, decimal-leading-zero);
  display: block; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--red-ink); margin-bottom: .55rem;
}
.sec-note, .incoming-note { color: var(--ink-2); max-width: 60ch; margin-top: .55rem; font-size: .98rem; }

/* ------------------------------------------------------------ buttons + fields */
.btn, .btn-watch, .capture button, .el-capture button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.15rem; border: 1.5px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  font: 500 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .btn-watch:hover, .capture button:hover, .el-capture button:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn:disabled, .capture button:disabled, .el-capture button:disabled { opacity: .6; cursor: default; }
.field, .capture input[type=email], .el-capture input[type=email] {
  flex: 1 1 13rem; min-width: 0; min-height: 46px; padding: .55rem .2rem;
  background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  font: 400 1rem var(--mono); color: var(--ink);
}
.field::placeholder, .capture input::placeholder, .el-capture input::placeholder { color: var(--ink-3); opacity: 1; }
.capture input[type=email]:focus-visible, .el-capture input[type=email]:focus-visible { outline: none; border-bottom-color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.hp, .hpx { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* the memo: email capture as an interoffice note */
.memo {
  background: var(--card); box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1.4rem;
  border-top: 3px solid var(--red); position: relative;
}
.memo-head { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; font: 500 .72rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: .8rem; border-bottom: 1px solid var(--rule); margin-bottom: .9rem; }
.memo-head b { font-weight: 500; color: var(--ink); }
.memo h2, .memo .capture-pitch strong { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); display: block; }
.memo p, .capture-pitch { color: var(--ink-2); font-size: .96rem; }
.capture-row, .el-capture .row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; align-items: end; }
.capture-done, .el-capture .done { color: var(--blue); font: 500 .9rem var(--mono); margin-top: .8rem; }


/* ------------------------------------------------------------ partners */
.px-main { padding-block: clamp(2.4rem, 7vw, 5rem) 1rem; }
.px-hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: .98; letter-spacing: -.035em; max-width: 14ch; margin-top: .9rem; }
.px-hero h1 em { font-style: italic; font-weight: 400; color: var(--red-ink); }
.px-sub { margin-top: 1.4rem; max-width: 56ch; font: 400 clamp(1.1rem, 2vw, 1.3rem)/1.5 var(--serif); color: var(--ink-2); }
.px-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: clamp(2.4rem, 6vw, 4rem); border-top: 2px solid var(--ink); }
.px-stat { padding: 1.2rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--rule); }
.px-stat strong { display: block; font: 600 clamp(2.6rem, 7vw, 4rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.px-stat span { display: block; margin-top: .6rem; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.px-lifetime { margin-top: 1.2rem; color: var(--ink-2); }
.px-lifetime strong { color: var(--ink); }
.px-contact { margin-top: clamp(2.4rem, 6vw, 4rem); max-width: 40rem; }
.px-contact h2 { font-size: 1.5rem; }
.px-contact p { margin-top: .6rem; color: var(--ink-2); }
.px-cta-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.2rem !important; }
.btn { color: var(--paper); }
.px-cta-mail { font: 500 .85rem var(--mono); color: var(--ink); word-break: break-all; }
.px-fine { font: 400 .74rem/1.5 var(--mono) !important; color: var(--ink-3) !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } }
