/*
Theme Name: Ori-nota
Template: newsite-base
Description: Ori-nota's brand layer on the Newsite Base theme: the wordmark, warm-paper touches, pencil underline and anything genuinely Ori-nota-only. Everything shared (security, checkout protection, speed) lives in the base theme.
Version: 0.1.3
Text Domain: orinota
*/

/* Newsreader ships as one weight (400): never let the browser fake a bolder serif; Figtree has real weights. */
body { font-synthesis-weight: none; }

/* Wordmark. The base prints the site name in .nsb-brand__word and offers no filter for it, so it is redrawn
 * here on the same markup: "ori-" upright in ink, "nota" italic in brick red, in the serif. The real text
 * stays in the page (and in the link's aria-label) but is not drawn. With a custom logo image set, none of this applies. */
.nsb-brand__word { font-size: 0; line-height: 1; letter-spacing: -0.02em; font-weight: 400; font-family: var(--wp--preset--font-family--evidence); }
.nsb-brand__word::before,
.nsb-brand__word::after { font-size: 1.6rem; }
.nsb-brand__word::before { content: "ori-"; font-style: normal; color: var(--wp--preset--color--contrast); }
.nsb-brand__word::after { content: "nota"; font-style: italic; color: var(--wp--preset--color--cta); }
/* On the ink footer band: paper and blush instead (brick red on ink is too dim). */
.nsb-footer .nsb-brand__word::before { color: var(--wp--preset--color--on-accent); }
.nsb-footer .nsb-brand__word::after { color: var(--wp--preset--color--highlight); }
@media (max-width: 781px) {
	.nsb-brand__word::before, .nsb-brand__word::after { font-size: 1.45rem; }
}

/* Logo C2 (owner, 23 Nov 2026): the printer mark left of the wordmark. The base prints assets/brand/mark.svg
 * inline in .nsb-brand__mark (header and footer); here it gets its size, and on the ink footer its colours flip
 * (paper sheet, light bar) so the bar doesn't vanish into the band. */
.nsb-brand__mark svg { width: 30px; }
.nsb-footer .nsb-brand__mark svg rect:first-of-type { fill: #faf7f0; stroke: none; }
.nsb-footer .nsb-brand__mark svg rect:last-of-type { fill: #efe9de; }
.nsb-footer .nsb-brand__mark svg circle { stroke: #5aa8ff; }
@media (max-width: 781px) { .nsb-brand__mark svg { width: 27px; } }

/* Footer: the line under the logo in Newsreader italic. */
.nsb-footer__tagline { font-family: var(--wp--preset--font-family--evidence); font-style: italic; font-size: 1.15rem; line-height: 1.45; }

/* Pencil underline: Ori-nota's highlighter. A thin brick-red band under the words, not a filled block. */
:root mark,
:root .nsb-hl {
	background: linear-gradient(transparent 88%, var(--wp--preset--color--cta) 88% 96%, transparent 96%);
	color: inherit;
	padding: 0;
}

/* Trust-line icons the base set does not have. */
.nsb-ico--return { --nsb-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 7H5v-4M5 7a8 8 0 1 1-1.5 7%22/%3E%3C/svg%3E"); }
.nsb-ico--phone { --nsb-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%227%22 y=%222.5%22 width=%2210%22 height=%2219%22 rx=%222%22/%3E%3Cpath d=%22M11 18.5h2%22/%3E%3C/svg%3E"); }

/* Picture placeholder (orinota_img() while a photo is not shot yet): fills its container, says what shot is needed. */
.or-ph {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	width: 100%; height: 100%; min-height: 120px;
	background: var(--wp--preset--color--surface);
	border: 1px dashed var(--wp--preset--color--border);
	text-align: center; padding: 0.75rem;
}
.or-ph__t { font-size: 13px; line-height: 1.4; color: var(--wp--preset--color--contrast-soft); }

/* Cart drawer + cart page: ink header with the blush count, ink shipping band. Brick red stays on the buy button.
 * :root:root so these win whatever order the base cart.css loads in. */
:root:root {
	--nsb-cart-head: var(--wp--preset--color--accent);
	--nsb-cart-head-ink: var(--wp--preset--color--on-accent);
	--nsb-cart-badge: var(--wp--preset--color--accent);
	--nsb-cart-badge-ink: var(--wp--preset--color--highlight);
	--nsb-cart-shadow: -16px 0 48px -12px color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
}
.nsb-drawer__head { border-bottom: 0; padding-block: 0.65rem; }
.nsb-drawer__title span { color: var(--wp--preset--color--highlight); opacity: 1; }
.nsb-drawer__close:focus-visible { outline-color: var(--wp--preset--color--highlight); }
/* Cart page: the ink bar. The slide-in cart loads cart.css after this file, so its bar is set on its own. */
.nsb-cart--page .nsb-cart__note { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.nsb-cart--page .nsb-cart__note .nsb-ico { color: var(--wp--preset--color--highlight); }
.nsb-cart--drawer .nsb-cart__note { background: var(--wp--preset--color--muted); color: var(--wp--preset--color--accent); }
.nsb-cart--drawer .nsb-cart__note .nsb-ico { color: var(--wp--preset--color--accent); }
.nsb-cart--page .nsb-sum { background: var(--wp--preset--color--panel); box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent); }
.nsb-sum__title, .nsb-extras__title { letter-spacing: -0.01em; }
.nsb-sum__saved { font-family: var(--wp--preset--font-family--evidence); font-style: italic; font-weight: 500; font-size: 1.05rem; }
.nsb-cart__empty p { font-family: var(--wp--preset--font-family--evidence); font-style: italic; font-size: 1.35rem; }

/* Order tracking: ink progress line, blush "now" dot ringed in ink, delivered badge blush on ink. */
.nsb-track__progress::after { background: var(--wp--preset--color--accent); }
.nsb-track__stage.is-done .nsb-track__dot { background: var(--wp--preset--color--accent); }
.nsb-track__stage.is-now .nsb-track__dot { background: var(--wp--preset--color--highlight); border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent); }
.nsb-track__event.is-latest::before { background: var(--wp--preset--color--accent); }
:root .nsb-track__badge--delivered { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--highlight); }
.nsb-track__eta--estimate { border-left: 4px solid var(--wp--preset--color--cta); }

/* Checkout (base checkout.css): ink step discs with blush numbers (blush only on ink), the cart's
 * warm summary card and shadow, a faint tint on the chosen shipping/payment option. */
:root:root {
	--nsb-co-step: var(--wp--preset--color--accent);
	--nsb-co-step-ink: var(--wp--preset--color--highlight);
	--nsb-co-panel: var(--wp--preset--color--panel);
	--nsb-co-picked-tint: color-mix(in srgb, var(--wp--preset--color--surface) 55%, var(--wp--preset--color--panel));
}
body.nsb-co .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent); }
body.nsb-co .wc-block-components-checkout-step__title { font-family: var(--wp--preset--font-family--display, inherit); }
body.nsb-co .nsb-co-saved { font-weight: 500; font-size: 1.05rem; }
