* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font, system-ui, sans-serif);
  background: var(--bg, #fff);
  color: var(--text, #111);
}
a { color: var(--primary, #2a5); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.brand-mark { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text, #111); }
.brand-mark img { display: block; height: 36px; width: auto; }
.hero-banner { display: block; max-width: 480px; width: 100%; height: auto; margin: 0 auto 1.5rem; }
.site-header nav a { margin-left: 1.5rem; text-decoration: none; font-weight: 600; }
/* Narrow viewports: nav's <a> tags are plain inline elements, so two short labels (e.g. "Shop"/"Field Notes") can end up sharing one line with not quite enough room — the browser then wraps at the space *inside* the second label instead of between the two links. Stacking nav into a column forces the break to fall between labels, never inside one. */
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { display: flex; flex-direction: column; align-items: flex-end; width: 100%; margin-top: 0.75rem; }
  .site-header nav a { margin-left: 0; margin-top: 0.5rem; }
}
main { max-width: 960px; width: 100%; flex: 1; margin: 0 auto; padding: 2rem 1.5rem; box-sizing: border-box; }
.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}
.site-footer p { margin: 0; }
.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 1.5rem;
}
.product-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.product-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
/* margin-top: auto pins price+buy-btn to the card's bottom edge regardless of how many lines the title above wraps to — combined with category-teaser's flex:1 below, this is what keeps "Shop Now" aligned across columns whose top product's title length varies, rather than a fixed height tuned to today's longest title. */
.product-card .price { font-weight: 700; margin: auto 0 0.5rem; }
.buy-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--primary, #2a5);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.longform-list { list-style: none; padding: 0; }
.longform-list li { padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
.longform-body { white-space: pre-wrap; line-height: 1.6; font-weight: 700; }
.content-branch-ctas { text-align: center; margin: 1.5rem 0; }
.content-branch-cta {
  display: inline-block;
  margin: 0 0.75rem 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
.exec-summary-well {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
}
.exec-summary-well h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.exec-summary-well p { margin: 0 0 0.75rem; line-height: 1.6; }
.exec-summary-well p:last-child { margin-bottom: 0; }
.exec-summary-link { font-weight: 700; text-decoration: none; }
.category-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
  gap: 2rem;
  justify-content: center;
  margin: 2.5rem 0;
}
.category-teaser { display: flex; flex-direction: column; text-align: center; }
.category-teaser h2 { margin-bottom: 1rem; }
.category-teaser .product-card { flex: 1; }
.story-band {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 0;
}
.story-blocks-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
/*
 * Full-bleed: breaks out of <main>'s 960px column to span the actual
 * browser viewport width, regardless of how narrow the content column is —
 * the left:50%/-50vw margin pairing is the standard trick for this (see
 * e.g. https://css-tricks.com/full-width-containers-in-limited-width-parents).
 * top/bottom:0 (rather than inset:0) sizes it to .story-band's own box,
 * which now also wraps the teaser-links paragraph beneath the grid, so the
 * image reaches down to the footer's border rather than stopping at the
 * story grid's own edge.
 */
.story-band-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.27;
  z-index: 0;
  pointer-events: none;
}
.story-block { position: relative; z-index: 1; }
.story-block p { font-weight: 700; }
.field-notes-list { display: flex; flex-direction: column; gap: 1rem; }
.field-note-card { border: 1px solid rgba(0,0,0,0.1); border-radius: 8px; padding: 1rem; }
.field-note-date { margin: 0 0 0.35rem; font-weight: 700; font-size: 0.85rem; opacity: 0.7; }
.field-note-body { margin: 0; white-space: pre-wrap; line-height: 1.6; font-weight: 700; }
.field-note-scarcity { margin: 0.75rem 0 0; font-weight: 700; font-size: 1.25rem; text-align: center; color: var(--primary, #ff6700); }

/* Chaos in Orbit's "Comms Terminal" skin — CRT/terminal aesthetic per kernel/brand.json's visualTokens. */
body.skin-terminal {
  background: var(--bg, #05070a);
  color: var(--text, #9be8ff);
  font-family: var(--font, "Courier New", monospace);
}
body.skin-terminal .site-header, body.skin-terminal .site-footer { border-color: var(--secondary, #1a2a33); }
body.skin-terminal .product-card, body.skin-terminal .longform-list li {
  border-color: var(--secondary, #1a2a33);
  background: rgba(155, 232, 255, 0.03);
}
body.skin-terminal a, body.skin-terminal .brand-mark { color: var(--primary, #5fe0ff); }
body.skin-terminal .buy-btn { background: var(--primary, #5fe0ff); color: #05070a; }
/* .field-note-card's base border (rgba(0,0,0,0.1)) is a near-black border on this skin's near-black background — effectively invisible without this override. */
body.skin-terminal .field-note-card {
  border-color: var(--secondary, #1a2a33);
  background: rgba(155, 232, 255, 0.03);
}
body.skin-terminal .field-note-scarcity {
  border-top: 1px solid var(--primary, #5fe0ff);
  border-bottom: 1px solid var(--primary, #5fe0ff);
  padding: 0.6rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* Bracketed CLI-style section headers for the homepage's category teasers (e.g. "[ FAVORITE BREWS ]") — deliberately not reusing brochure's bordered-box treatment. */
body.skin-terminal .category-teaser h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary, #5fe0ff);
  font-size: 1rem;
}
body.skin-terminal .category-teaser h2::before { content: "[ "; }
body.skin-terminal .category-teaser h2::after { content: " ]"; }
/* Console-pill CTAs into the two content branches — Out-of-Band (short-form) gets the larger "holo-display" panel treatment per its --primary modifier, Allocations (long-form) the standard-size pill from the same family. */
body.skin-terminal .content-branch-cta {
  border: 1px solid var(--primary, #5fe0ff);
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  background: rgba(155, 232, 255, 0.05);
  box-shadow: 0 0 8px rgba(95, 224, 255, 0.25);
}
body.skin-terminal .content-branch-cta--primary {
  display: block;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0 16px rgba(95, 224, 255, 0.35);
}
body.skin-terminal .exec-summary-well {
  border-color: var(--secondary, #1a2a33);
  background: rgba(155, 232, 255, 0.03);
}
body.skin-terminal .exec-summary-well h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary, #5fe0ff);
}
body.skin-terminal .exec-summary-well h2::before { content: "[ "; }
body.skin-terminal .exec-summary-well h2::after { content: " ]"; }
/* Idle CLI-prompt blinking cursor — see renderLatestTeasers' terminal-only CTA. prefers-reduced-motion respected for anyone sensitive to flashing text. */
.cli-cursor { animation: cli-blink 1s step-end infinite; }
@keyframes cli-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cli-cursor { animation: none; }
}

/*
 * "Brochure" skin — a traditional-ecommerce, graphical-storytelling layout
 * for properties like Discount Sportsman Supply: side-by-side category
 * teasers (one top item per category) instead of one flat grid, a
 * stamped-crate heading treatment, and an image-and-copy storytelling
 * band. Pure CSS (no product/brand
 * photography exists yet for these properties) — border/letter-spacing/
 * box treatments stand in for the trail-cam/stamped-crate visual tokens
 * until real imagery is ready.
 */
body.skin-brochure {
  background: var(--bg, #f5f2ea);
  color: var(--text, #2a2820);
}
/* Kernel visualTokens call for two distinct faces: stamped-crate bold sans headings (Impact/Oswald), monospace terminal-code body (loaded separately via theme.json's googleFont — see theme.ts's layout()). */
body.skin-brochure .brand-mark,
body.skin-brochure h1,
body.skin-brochure h2,
body.skin-brochure h3 {
  font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Tagline sits directly under the banner image, which already carries the stamped-crate heading face — match it instead of falling back to the monospace body font. */
body.skin-brochure .hero .tagline {
  font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  font-size: 1.1rem;
}
body.skin-brochure .site-header, body.skin-brochure .site-footer {
  border-color: var(--primary, #ff6700);
  border-width: 3px;
}
/* Top padding is deliberately much smaller than bottom: the hero-banner image itself has a chunk of built-in white margin around the wordmark, which stacks with section padding above it but not below — equal top/bottom padding here reads as unbalanced, pushed down. */
body.skin-brochure .hero {
  padding: 1.5rem 1rem 4rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
body.skin-brochure .exec-summary-well {
  border: 2px solid var(--text, #2a2820);
  border-radius: 2px;
}
body.skin-brochure .exec-summary-well h2 {
  font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.skin-brochure .category-teasers { margin: 3rem 0; }
body.skin-brochure .category-teaser h2 {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
  border: 2px solid var(--text, #2a2820);
  font-size: 1.1rem;
}
body.skin-brochure .product-card {
  border-radius: 2px;
  border-color: var(--secondary, #4a5d23);
}
body.skin-brochure .buy-btn {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.skin-brochure .story-band {
  margin: 3.5rem 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
/* Extends the background past .story-band's own margin-bottom (3.5rem) and main's own bottom padding (2rem) — both are structurally outside .story-band's box, so bottom:0 alone stops short of the footer's border. */
body.skin-brochure .story-band-bg { bottom: -5.5rem; }
body.skin-brochure .story-block h3 {
  color: var(--primary, #ff6700);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
body.skin-brochure .field-notes-list { display: flex; flex-direction: column; gap: 1.25rem; }
body.skin-brochure .field-note-card {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--secondary, #4a5d23);
  background: rgba(74, 93, 35, 0.06);
}
body.skin-brochure .field-note-date {
  margin: 0 0 0.35rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--secondary, #4a5d23);
}
body.skin-brochure .field-note-body { margin: 0; white-space: pre-wrap; line-height: 1.6; font-weight: 700; }
body.skin-brochure .field-note-scarcity {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 103, 0, 0.35);
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--primary, #ff6700);
}