/* ---------- paper — ink on cream, editorial caps, hard square edges ---------- */
body.t-paper .sf-name { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; font-size: 15px; }
body.t-paper .sf-hero { text-align: left; padding: 64px 0; }
body.t-paper .sf-hero h1 { text-transform: uppercase; letter-spacing: 0.01em; font-weight: 800; line-height: 1.02; }
body.t-paper .sf-hero p { max-width: 46ch; margin-left: 0; }
body.t-paper .product-card { border-radius: 0; }
body.t-paper .product-card .ph { border-radius: 0; }
body.t-paper .product-card .t { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; font-weight: 700; }
body.t-paper .btn.brand { border-radius: 0; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; box-shadow: none; }
body.t-paper .sf-announce { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; }
body.t-paper .sf-cart .badge { border-radius: 0; }

/* ============================================================
   paper — the WEBSITE face of the theme: ink on cream, oversized
   uppercase display type, hard square edges, a masonry work grid.
   Every rule is prefixed `body.t-paper`, which sits on the SAME
   element as .ws-body/.ws-sidebar and so outranks them by one type
   unit — no !important anywhere.
   ============================================================ */
/* Feeds the vars .ws-* already read, and PINS the ink: --heading/--text/--muted
   otherwise flip white under html[data-theme="dark"], which THEME_BOOT can set
   on a website page — white headings on a cream ground. Scoped to .ws-body so a
   SHOP on this theme keeps its day/night switching. */
body.t-paper.ws-body { --bg: #f7f5ef; --fg: #55535c; --heading: #33323c; --text: #55535c; --muted: #85838d; }

/* nav — small uppercase caps riding the hero's cream */
body.t-paper .ws-nav { background: color-mix(in srgb, #efece2 92%, transparent); border-bottom: 0; }
body.t-paper .ws-brand { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; font-size: 14px; }
body.t-paper .ws-nav-links { gap: 30px; }
body.t-paper .ws-nav-links a { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 700; opacity: 0.7; }
body.t-paper .ws-nav-links a:hover, body.t-paper .ws-nav-links a.on { opacity: 1; color: #33323c; }
body.t-paper .ws-nav-links a.on { border-bottom: 2px solid currentColor; padding-bottom: 4px; }

/* buttons — flat, square, tracked caps. No border, no shadow. */
body.t-paper.ws-body .btn.brand { border: 0; box-shadow: none; border-radius: 0; background: #33323c; color: #f7f5ef;
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; font-weight: 700; padding: 16px 28px; }
body.t-paper.ws-body .btn.brand:hover { background: #4a4955; }

/* hero — the scrim dissolves (see Hero in renderWebSections.tsx), the artwork
   sits to the right on its own cream, the type goes huge and dark on the left */
/* `darken` dissolves the artwork's own paper into the hero's cream — generated
   art never comes back on a consistent white, so matching a colour can't work.
   Anything lighter than the ground becomes the ground; the ink stays ink. */
body.t-paper .ws-hero { --hero-a: transparent; --hero-b: transparent;
  background-color: #efece2; background-size: auto 76%; background-position: right 4vw bottom; background-repeat: no-repeat;
  background-blend-mode: darken; min-height: 88vh; }
body.t-paper .ws-hero-inner { padding: 60px 22px 76px; }
body.t-paper .ws-hero h1 { color: #33323c; text-shadow: none; text-transform: uppercase; font-weight: 800;
  font-size: clamp(40px, 8.4vw, 104px); line-height: 0.95; letter-spacing: -0.01em; max-width: 9ch; margin-bottom: 22px; }
body.t-paper .ws-hero p { color: #6a6872; text-shadow: none; max-width: 33ch; font-size: clamp(15px, 1.4vw, 17px); }
body.t-paper .ws-hero-cta.btn.brand { background: #33323c; color: #f7f5ef; box-shadow: none; }
body.t-paper .ws-hero-cta.btn.brand:hover { background: #4a4955; }

/* sections — flat cream, hairline separated, never a brand wash */
body.t-paper .ws-section { background: transparent; padding: 92px 0; border-top: 1px solid #e2ded0; }
/* matches the zebra rule's shape so it still outranks it after the :not() arms
   pushed that selector to four classes */
body.t-paper .ws-section:nth-child(even):not(.ws-cta):not(.ws-shoplink) { background: transparent; }
body.t-paper .ws-hero + .ws-section { border-top: 0; }
body.t-paper .ws-h2 { text-align: left; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800;
  font-size: clamp(18px, 2.1vw, 23px); margin: 0 0 10px; }
body.t-paper .ws-sub { text-align: left; margin: 0 0 44px; max-width: 48ch; }
/* the narrow sections (faq, contact) are a 760px centred box by default, which
   puts their headings on a different left edge to every other section. Widen
   them to the standard container — `margin: 0 auto` then lands them on the
   shared edge — and cap the reading width on the content instead. */
body.t-paper .ws-narrow { max-width: 1120px; }

/* work grid — real masonry (columns), square edges, mixed crops */
body.t-paper .ws-gallery-grid { display: block; column-count: 3; column-gap: 26px; }
body.t-paper .ws-gallery-item { break-inside: avoid; margin: 0 0 26px; }
/* same trick per tile, so nine drawings read as one sheet instead of nine
   mismatched white rectangles. Greyscale first: `darken` alone keeps a warm
   paper's low blue channel, which leaves a visible yellow box. */
body.t-paper .ws-gallery-item img { border-radius: 0; aspect-ratio: 3 / 4; transition: opacity 0.2s;
  filter: grayscale(1); mix-blend-mode: darken; }
body.t-paper .ws-gallery-item:nth-child(3n + 2) img { aspect-ratio: 1; }
body.t-paper .ws-gallery-item:nth-child(4n + 3) img { aspect-ratio: 4 / 5; }
body.t-paper .ws-gallery-item img:hover { opacity: 0.82; }

/* disciplines rail — a slim band of tracked micro-caps under the hero, standing
   in for the reference's filter row */
body.t-paper .ws-richtext { padding: 0; background: transparent; border-top: 0; }
body.t-paper .ws-richtext .ws-container { padding-top: 26px; padding-bottom: 26px; }
body.t-paper .ws-richtext p { margin: 0; text-transform: uppercase; letter-spacing: 0.26em;
  font-size: 10.5px; font-weight: 700; color: #7c7a83; }

/* services — left aligned, small tracked titles */
body.t-paper .ws-features-grid { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 42px 32px; }
body.t-paper .ws-feature { text-align: left; padding: 0; }
body.t-paper .ws-feature-icon { color: #33323c; margin-bottom: 16px; }
body.t-paper .ws-feature-icon .ws-ico { width: 30px; height: 30px; }
body.t-paper .ws-feature h3 { text-transform: uppercase; letter-spacing: 0.13em; font-size: 12.5px; font-weight: 800; margin: 0 0 9px; }
body.t-paper .ws-feature p { color: #7c7a83; font-size: 14.5px; }

/* studio — square media, roomier split */
body.t-paper .ws-story-grid { gap: 64px; }
body.t-paper .ws-story-media img { border-radius: 0; aspect-ratio: 4 / 5; }
body.t-paper .ws-story-copy h2 { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; font-size: clamp(18px, 2vw, 22px); }
body.t-paper .ws-story-copy p { color: #63616b; }

/* quotes — a rule above each, no cards */
body.t-paper .ws-quote { background: transparent; border: 0; border-top: 2px solid #33323c; border-radius: 0; box-shadow: none; padding: 20px 0 0; }
body.t-paper .ws-quote blockquote { color: #46454e; font-size: 16px; }
body.t-paper .ws-quote blockquote::before { content: none; }
body.t-paper .ws-quote figcaption { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; font-weight: 700; }

/* faq */
body.t-paper .ws-faq-list { border-top: 1px solid #e2ded0; }
body.t-paper .ws-faq-item { border-bottom: 1px solid #e2ded0; }
body.t-paper .ws-faq-item summary { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; font-weight: 800; padding: 22px 4px; }
body.t-paper .ws-faq-item summary::after { color: #33323c; }
body.t-paper .ws-faq-item p { color: #63616b; }

/* closing band — solid ink, the one dark surface on the page */
body.t-paper .ws-cta { background: #33323c; border-top: 0; }
body.t-paper .ws-cta-inner { text-align: left; max-width: 1120px; }
body.t-paper .ws-cta-inner h2 { color: #f7f5ef; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; font-size: clamp(22px, 3vw, 34px); max-width: 20ch; }
body.t-paper .ws-cta-inner p { color: #c9c6be; max-width: 54ch; }
body.t-paper .ws-cta .btn.brand { background: #f7f5ef; color: #33323c; }
body.t-paper .ws-cta .btn.brand:hover { background: #ffffff; }

/* commission form — square fields, tracked labels, visible focus */
body.t-paper .ws-form { margin: 0; max-width: 560px; }
body.t-paper .ws-field label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; font-weight: 700; }
body.t-paper .ws-field input, body.t-paper .ws-field textarea, body.t-paper .ws-field select { border-radius: 0; border: 1px solid #ded9c9; background: #fffefb; }
body.t-paper .ws-field input:focus, body.t-paper .ws-field textarea:focus, body.t-paper .ws-field select:focus { outline: 2px solid #33323c; outline-offset: -2px; border-color: #33323c; }

/* everything else square, so a merchant adding a section keeps the look */
body.t-paper .ws-video-frame { border-radius: 0; box-shadow: none; }

/* rates — flat, left-aligned, hairline cards. The 40px default price wraps
   "From R14 000" onto two lines inside a column this width. */
body.t-paper .ws-pricing-grid { max-width: 1120px; gap: 26px; }
/* flex column + margin-top:auto keeps the three buttons on one line even though
   the feature lists are different lengths */
body.t-paper .ws-plan { border-radius: 0; border: 1px solid #e2ded0; background: transparent; text-align: left; padding: 32px 28px;
  display: flex; flex-direction: column; }
body.t-paper .ws-plan .btn.brand { margin-top: auto; }
body.t-paper .ws-plan h3 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11.5px; font-weight: 800; margin: 0 0 16px; }
body.t-paper .ws-plan-amt { font-size: clamp(21px, 2.1vw, 26px); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
body.t-paper .ws-plan-period { font-size: 12px; }
body.t-paper .ws-plan ul { display: block; margin-bottom: 26px; }
body.t-paper .ws-plan li { color: #63616b; font-size: 14px; }
body.t-paper .ws-plan li::before { color: #33323c; }
body.t-paper .ws-member-photo img { border-radius: 0; }
body.t-paper .ws-footer { border-top: 1px solid #e2ded0; padding: 34px 0; }
body.t-paper .ws-footer .ws-container { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; }

/* media queries add no specificity, so the responsive rules are mirrored here */
@media (max-width: 900px) {
  body.t-paper .ws-gallery-grid { column-count: 2; }
  body.t-paper .ws-side-nav a { letter-spacing: 0.18em; }
}
@media (max-width: 760px) {
  body.t-paper .ws-section { padding: 62px 0; }
  /* art drops below the copy instead of sitting behind it */
  /* the art is square, so its rendered height equals its width — the bottom
     padding has to exceed background-size or the mane sits under the button */
  body.t-paper .ws-hero { min-height: auto; background-size: 82% auto; background-position: center bottom; align-items: flex-start; }
  body.t-paper .ws-hero-inner { padding: 76px 22px 88vw; }
  body.t-paper .ws-hero h1 { font-size: clamp(34px, 12vw, 56px); max-width: 12ch; }
  body.t-paper .ws-hero p { max-width: 100%; }
  body.t-paper .ws-nav-links a { opacity: 1; }
  body.t-paper .ws-nav-links a.on { border-bottom: 0; padding-bottom: 12px; }
  body.t-paper .ws-story-grid { gap: 30px; }
}
@media (max-width: 560px) {
  body.t-paper .ws-gallery-grid { column-count: 1; }
}


/* paper — night. The toggle in the site's own menu flips to this; the preference is
   stored per site, so it never reaches the dashboard or another template. */
html[data-theme="dark"] body.t-paper.ws-body { --bg: #201f22; --fg: #b8b4ac; --heading: #f2efe6; --text: #b8b4ac; --muted: #8d8a83; }
html[data-theme="dark"] body.t-paper .ws-nav { background: color-mix(in srgb, #201f22 92%, transparent); border-bottom-color: #33323a; }
html[data-theme="dark"] body.t-paper .ws-section { border-top-color: #33323a; }
html[data-theme="dark"] body.t-paper .ws-story-copy p,
html[data-theme="dark"] body.t-paper .ws-feature p,
html[data-theme="dark"] body.t-paper .ws-faq-item p,
html[data-theme="dark"] body.t-paper .ws-richtext p { color: #b8b4ac; }
html[data-theme="dark"] body.t-paper .ws-quote { background: #2a2930; border-color: #33323a; }
html[data-theme="dark"] body.t-paper .ws-quote blockquote { color: #b8b4ac; }
html[data-theme="dark"] body.t-paper .ws-plan { background: #2a2930; border-color: #33323a; }
html[data-theme="dark"] body.t-paper .ws-faq-list, html[data-theme="dark"] body.t-paper .ws-faq-item { border-color: #33323a; }
html[data-theme="dark"] body.t-paper .ws-field input,
html[data-theme="dark"] body.t-paper .ws-field textarea,
html[data-theme="dark"] body.t-paper .ws-field select { background: #2a2930; border-color: #33323a; color: #f2efe6; }
html[data-theme="dark"] body.t-paper .ws-footer { border-top-color: #33323a; }
html[data-theme="dark"] body.t-paper .ws-cta { background: #0f0f12; }
html[data-theme="dark"] body.t-paper .ws-gallery-cap strong { color: #f2efe6; }
html[data-theme="dark"] body.t-paper .ws-side { background: #201f22; border-right-color: #33323a; }
