/* ---------- Nib — Fountain pens & inks 144 (store) ----------
   THE STRUCTURAL MOVE: the page alternates contained / full-bleed the whole way
   down, and the SAME narrow centred text-only block is used TWICE — once before
   the eight-up grid and once after the banner — as the spacer between the two
   merchandise runs. Every band that is not a product grid runs edge to edge, so
   the two contained grids read as islands with big empty gutters at both ends.
   Indigo lands in exactly three places — the hero slab, the banner link and the
   short rule under the overlay heading — and everything else is paper, ink and
   one warm-grey hairline under each section heading. Tiles carry no ground and
   no border at all: the product photographs sit straight on the paper. */
body.t-nib {
  background: #f6f3ec;
  color: #3a352d;
  --nb-blue: #242c55;
  --nb-lift: #97a0d2;
  --bg-flat: #f6f3ec;
  --surface: #f6f3ec;
  --surface-2: #efeade;
  --line: #ded8c9;
  --line-strong: #c7c0ad;
  --heading: #141210;
  --text: #3a352d;
  --muted: #767065;
  --header-bg: #f6f3ec;
  --radius: 0;
  --shadow: none;
}

/* flat paper chrome — no blur, nothing glassy, so the bar reads as the head of
   a printed page rather than as app furniture */
body.t-nib .sf-header, body.t-nib .sf-head,
body.t-nib .sf-footer, body.t-nib .sf-foot, body.t-nib .sf-cats {
  background: #f6f3ec; border-color: #ded8c9;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.t-nib .sf-name { font-family: var(--sf-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }

/* THE STAGE CARRIES THE BAR — the nav is the only thing that interrupts the
   first screen. Scoped by :has so the cart, search and product pages, which
   have no hero to float over, keep their ordinary solid header. */
body.t-nib:has(.sc-hero) .sf-header { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
body.t-nib:has(.sc-hero) .sf-name, body.t-nib:has(.sc-hero) .sf-navlink,
body.t-nib:has(.sc-hein) .sf-cart, body.t-nib:has(.sc-hero) .sf-cart, body.t-nib:has(.sc-hero) .theme-toggle { color: #f6f3ec; }
/* the magnifier and the category rail would both land underneath a floating
   bar, and the landing page has no search field by design */
body.t-nib:has(.sc-hero) .sf-searchbtn, body.t-nib:has(.sc-hero) .sf-cats { display: none; }
/* nothing is sticky on the landing page, so an anchor offset only opens a gap */
body.t-nib .sc-hero, body.t-nib .sc-products, body.t-nib .sc-buygrid,
body.t-nib .sc-richtext, body.t-nib .sc-about-overlay, body.t-nib .sc-contact-split { scroll-margin-top: 0; }

/* INDIGO — a flat slab, never an outline, and only ever on a control */
body.t-nib .btn.brand { background: var(--nb-blue); border-color: var(--nb-blue); color: #f6f3ec; box-shadow: none; font-weight: 600; letter-spacing: 0.03em; padding: 15px 32px; }

/* full viewport, three slides cross-fading, copy held hard LEFT off a wide
   gutter and nothing at all in the right half */
body.t-nib .sc-hero { min-height: 100vh; padding: 150px 20px 104px clamp(20px, 7vw, 108px); }
body.t-nib .sc-hero h1 { font-family: var(--sf-serif); font-weight: 400; font-size: clamp(38px, 6.4vw, 82px); line-height: 1.03; letter-spacing: -0.02em; max-width: 13ch; margin-bottom: 20px; }

/* one warm hairline under every section heading — the page's only rule */
body.t-nib .sc-h2 { font-family: var(--sf-serif); font-weight: 400; color: var(--heading); font-size: clamp(21px, 2.8vw, 32px); letter-spacing: -0.01em; text-align: left; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }

/* THE DOUBLED SPACER — the same narrow imageless column used on both sides of
   the merchandise, with more air above and below than anything else gets. No
   heading rule here: this block is prose, not a section head. */
body.t-nib .sc-richtext { max-width: 620px; padding: 124px 20px 118px; }
body.t-nib .sc-richtext .sc-h2 { text-align: center; border-bottom: 0; padding-bottom: 0; margin-bottom: 20px; }
body.t-nib .sc-richtext p { color: var(--text); font-size: 17px; line-height: 1.95; }

/* THE HINGE — one gapped row of six, sitting straight under the stage */
body.t-nib .sc-strip-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
body.t-nib .sc-strip-img { border: 0; background: #efeade; }

/* THE CONTAINED ISLANDS — four across, big empty gutters at both ends, so the
   full-bleed bands either side read as hard interruptions */
body.t-nib .sc-products, body.t-nib .sc-buygrid, body.t-nib .sc-contact-split { padding: 104px 20px 112px; }
body.t-nib .product-grid, body.t-nib .sc-buy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 26px; padding-bottom: 0; }
body.t-nib .product-card, body.t-nib .product-card .ph, body.t-nib .sc-buy-media { background: transparent; border: 0; }
body.t-nib .product-card .p, body.t-nib .sc-buy-p { font-family: var(--sf-serif); font-size: 17px; color: var(--heading); }

/* full-bleed, with the type burned across it */
body.t-nib .sc-banner { margin: 0 calc(50% - 50vw); min-height: 58vh; display: flex; align-items: center; justify-content: center; }
body.t-nib .sc-banner h2 { font-family: var(--sf-serif); font-weight: 400; font-size: clamp(26px, 3.9vw, 48px); line-height: 1.14; }

/* the page's only overlay — the third and last place indigo appears, as a short
   lifted rule under the heading rather than a full-width hairline */
body.t-nib .sc-about-overlay .sc-h2 { text-align: center; display: inline-block; border-bottom: 2px solid var(--nb-lift); padding-bottom: 12px; }

body.t-nib .sc-contact-split { border-top: 1px solid var(--line); gap: 64px; }

@media (max-width: 860px) {
  body.t-nib .sc-strip-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.t-nib .product-grid, body.t-nib .sc-buy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* NIGHT — the cotton rag goes to printer's black, the ink inverts to warm bone,
   and the indigo lifts to a chalk blue because at #242c55 it would disappear
   into the ground it is meant to sit on. */
html[data-theme="dark"] body.t-nib {
  background: #131210;
  color: #c9c3b6;
  --nb-blue: #8d99d6;
  --nb-lift: #8d99d6;
  --bg-flat: #131210;
  --surface: #131210;
  --surface-2: #1d1b17;
  --line: #2d2a24;
  --line-strong: #413d35;
  --heading: #f4f0e7;
  --text: #c9c3b6;
  --muted: #8a847a;
  --header-bg: #131210;
}
html[data-theme="dark"] body.t-nib .sf-header, html[data-theme="dark"] body.t-nib .sf-head,
html[data-theme="dark"] body.t-nib .sf-footer, html[data-theme="dark"] body.t-nib .sf-foot,
html[data-theme="dark"] body.t-nib .sf-cats { background: #131210; border-color: #2d2a24; }
html[data-theme="dark"] body.t-nib .btn.brand { color: #101322; }
html[data-theme="dark"] body.t-nib .sc-strip-img { background: #1d1b17; }
html[data-theme="dark"] body.t-nib .sc-contact-split { border-top-color: #2d2a24; }
