/* The painted skin for the pages the live theme still draws in the painted lab: the directories, the Academy, the blog
   and the glossary, the legal and service pages. The live kit is built on tokens
   (theme/assets/css/kit.css: the grounds, the card and its shadow, the line), so the skin gives those tokens the
   paper's values, and every page of the site reads as one site while its template, its type scale and its behaviour
   stay the live ones. Loaded only where no painted template draws the page (functions.php, after the live styles, while
   gsp_on() is false); the lab is light only, so the document says so (data-theme="light", the same file's filter). */

:root {
  color-scheme: light;
  --ground: #FBFAF7;
  --panel: #FFFDF9;
  --line: #E7E1D8;
  --k-warm: #F5EFE6;
  --k-wall: #F2EBE1;
  --k-card: #FFFDF9;
  --k-card-sh: 0 1px 2px rgba(70, 50, 36, .06), 0 14px 30px -24px rgba(80, 52, 40, .5);
  --k-sh: 0 1px 2px rgba(70, 50, 36, .06), 0 14px 30px -16px rgba(80, 52, 40, .34);
  --k-sh-lg: 0 2px 4px rgba(70, 50, 36, .05), 0 40px 80px -40px rgba(80, 52, 40, .42);
  --k-sh-up: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 40px -16px rgba(80, 52, 40, .36);
}
body { background: #FBFAF7; }
/* the paper's grain, as the painted pages wear it */
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .34  0 0 0 .15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .45; }
.k-hero, section.k-hero { background: transparent; }
/* the buttons and the chips as the painted pages draw them: pills */
.k-btn, .k-btn-sm { border-radius: 999px; }
/* the cards and the rows a little rounder, as the paper's */
.dr-card, .dr-row { border-radius: 20px; }

/* ---------- a post's cover: one of the theme's paintings by its topic, the topic's painted object on it ---------- */
.gs-cover.gsp-cover { position: relative; overflow: hidden; background: #E9E2D6; }
.gsp-cover .gsp-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); transform-origin: var(--at, 50% 62%); }
.gsp-cover.gs-cover-lg .gsp-cover-art { transform: scale(1.3); }
/* the painted object only where the cover is large enough to hold it */
.gsp-cover:not(.gs-cover-lg, .gs-cover-hero) .gsp-cover-spot { display: none; }
.gsp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 12, .16) 0%, transparent 34%, transparent 62%, rgba(20, 16, 12, .22) 100%); pointer-events: none; }
.gsp-cover .gsp-cover-spot { position: absolute; right: 7%; bottom: 10%; z-index: 1; width: 26%; max-width: 120px; height: auto; filter: drop-shadow(0 10px 12px rgba(40, 26, 16, .35)); }
.gsp-cover .gs-cover-cat, .gsp-cover .gs-cover-min { z-index: 2; }
.gsp-cover .gs-cover-cat { background: rgba(255, 253, 249, .9); color: #16161A; }
.gsp-cover .gs-cover-min { padding: 6px 9px; border-radius: 7px; background: rgba(255, 253, 249, .9); color: #16161A; text-shadow: none; }

/* ---------- one paper: no striped bands, no hero wash ---------- */
.k-g-warm { --k-g: transparent; }
.k-sec + .k-sec { padding-top: 0; }
.gs-hero, .ac-hero { background: none; border-bottom: 0; }

/* ---------- what the tokens do not reach: the boarding pass, the night sections, the skies, the demo's greys ---------- */
.gs-cta-top { background: #1B1714; color: #F3EDE5; }
.gs-cta-plane { fill: #1B1714; }
.gs-cta-btn { border-radius: 999px; background: #0B0B0F; box-shadow: 0 10px 24px -12px rgba(11, 11, 15, .65); }
:root { --k-navy-1: #1B1714; --k-navy-2: #231E1A; --k-navy-3: #231E1A; --k-navy-g: linear-gradient(#231E1A, #1B1714); --k-navy-line: #3A322C; --k-on-navy: #D8D0C6; --k-navy-eye: #F2C46B; --k-navy-mute: #A89F94; }
.k-navy-card { background: #15110F; box-shadow: 0 0 0 1px #3A322C; }
/* a page that closes on the night section meets the footer without the footer's own painted band */
body:has(.k-finale) .site-foot { margin-top: 0; }
body:has(.k-finale) .sf-band { display: none; }
.k-hero-sky { background: url(../art/runway.webp) 50% 62% / cover; }
.k-hero-sky img { visibility: hidden; }
.gsd { --sunk: #F8F3EC; --chip: #F3EDE5; --line: #EAE2D7; }

/* ---------- a post wears its topic's line (functions.php gsp_cover_topic()): cold email the outreach line, AI the AI line ---------- */
body.gsp-l-out { --ai: #F0432B; --k-ai-ink: #C2311A; --k-ai-soft: #FFEFEA; }
body.gsp-l-ai { --ai: #12995F; --k-ai-ink: #0B7A4B; --k-ai-soft: #E7F5EC; }

/* ---------- /affiliate/: the pass to the GTM Surf House on a painting, and no Sample chips ---------- */
/* the pass's sunset was drawn in the markup (theme/pages/affiliate/parts/surf.html), which the painted look never does:
   the harbour painting's coast at dusk takes its place, cut to the sea and the hills right of the pier, darkened under
   the house's name so it reads; and the painted pages carry no Sample chip (DECISIONS.md, the look) */
.pg-affiliate .af-pass-art { background: #2A2140 url(../art/harbour.webp) 100% 69.8% / auto 1024% no-repeat; }
.pg-affiliate .af-pass-art svg { display: none; }
.pg-affiliate .af-pass-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22, 16, 30, .62) 0%, rgba(22, 16, 30, .25) 46%, transparent 72%); }
.pg-affiliate .af-pass-art > :not(svg) { position: relative; }
.pg-affiliate .k-sample { display: none; }

/* ---------- the directories' sticky row of chips: the paper itself, not a band ---------- */
/* it sat over the paper's grain in a lighter white between two rules, a stripe across the page: the paper's ground, the
   same grain in it and no rules, so at rest it is the page and stuck under the nav it is the page's paper going by */
.dr-cats { border-top-color: transparent; border-bottom-color: transparent; background: #FBFAF7; backdrop-filter: none; }
.dr-cats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .34  0 0 0 .15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .45; pointer-events: none; }
