/*
 * INKWELL component stylesheet.
 *
 * theme.json owns global color/typography/spacing tokens. This file owns
 * every component that can't be expressed precisely through theme.json
 * alone — ported from reference.css using the same class names wherever
 * possible, so the mapping back to the approved reference stays legible.
 * See docs/IMPLEMENTATION_PLAN.md.
 */

/* ---------------------------------------------------------------------
 * 1. Base / utility
 * ------------------------------------------------------------------- */

.wrap {
	width: min(1120px, calc(100% - 34px));
	margin: auto;
	max-width: none; /* override core Group's contentSize constraint — .wrap supplies its own */
}
.micro { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.bronze, .inkwell-bronze { color: var(--wp--preset--color--bronze); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal;
}

/* Sharp corners everywhere, no exceptions (CLAUDE.md §13/§18). */
.wp-block-button__link, .input, .btn, button, .wp-block-image img,
.product, .card, .tierCard, .homeProduct, .article, .serviceRow,
.modalBox, .cookieBox, .legalMeta div { border-radius: 0 !important; }

*:focus-visible {
	outline: 2px solid var(--wp--preset--color--bronze);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------
 * 2. Header
 * ------------------------------------------------------------------- */

.inkwell-header {
	position: sticky; top: 0; z-index: 30;
	background: rgba(17,23,24,.97);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.inkwell-navrow { height: 74px; width: min(1120px, calc(100% - 34px)); gap: 18px; }
.inkwell-brand { gap: 0 !important; cursor: pointer; }
.inkwell-wordmark, .inkwell-wordmark a {
	font-family: var(--wp--preset--font-family--editorial-serif);
	font-weight: 400; letter-spacing: .14em; color: var(--wp--preset--color--paper);
	font-size: 19px; text-decoration: none; margin: 0;
}
.inkwell-subtitle {
	font-size: 10px; text-transform: uppercase; letter-spacing: .2em;
	color: #89938f; margin: 2px 0 0;
}
.inkwell-footer-wordmark, .inkwell-footer-wordmark a { font-family: var(--wp--preset--font-family--editorial-serif); font-weight: 400; letter-spacing: .14em; color: var(--wp--preset--color--paper); font-size: 19px; text-decoration: none; }

/* Desktop nav: reproduce .nav button look on core/navigation links */
.inkwell-nav .wp-block-navigation-item__content {
	color: #d2d0c8; text-transform: uppercase; letter-spacing: .08em;
	font-size: 11px; padding: 10px 8px; font-family: var(--wp--preset--font-family--body-sans);
}
.inkwell-nav .wp-block-navigation-item__content:hover,
.inkwell-nav .current-menu-item .wp-block-navigation-item__content { color: #d4b294; }
.inkwell-nav .wp-block-navigation__submenu-icon { display: none; }

.inkwell-actions { gap: 8px !important; }
.inkwell-actions-primary .wp-block-button__link { min-height: 44px; display: flex; align-items: center; }

/* Mini-cart: reproduce the round bronze bubble + latte icon */
.inkwell-mini-cart .wc-block-mini-cart__button {
	position: relative; width: 43px; height: 43px; padding: 0;
	display: grid; place-items: center;
	border: 1px solid rgba(220,215,201,.34); background: transparent;
}
.inkwell-mini-cart .wc-block-mini-cart__button:hover { border-color: var(--wp--preset--color--bronze); }
.inkwell-mini-cart svg, .inkwell-mini-cart .wc-block-mini-cart__icon { stroke: var(--wp--preset--color--latte); }
.inkwell-mini-cart .wc-block-mini-cart__badge,
.inkwell-mini-cart .wc-block-mini-cart__quantity-badge {
	position: absolute; right: -6px; top: -7px; width: 20px; height: 20px;
	border-radius: 50% !important; background: var(--wp--preset--color--bronze) !important;
	color: #fff; font-size: 10px; display: grid; place-items: center; border: 0;
}

/* Mobile nav overlay — core/navigation's own responsive menu, restyled to
   match the dark, uppercase, letter-spaced visual language rather than
   WordPress's default overlay look. This is the one deliberate addition
   beyond the reference (see docs/IMPLEMENTATION_PLAN.md §1.2). */
.inkwell-nav .wp-block-navigation__responsive-container-open {
	background: transparent; border: 1px solid rgba(220,215,201,.34);
	width: 43px; height: 43px; color: var(--wp--preset--color--latte);
}
.inkwell-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--night);
}
.inkwell-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 20px; text-transform: uppercase; letter-spacing: .08em;
	color: var(--wp--preset--color--latte); padding: 16px 0;
}
.inkwell-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--latte);
}

/* ---------------------------------------------------------------------
 * 3. Hero
 * ------------------------------------------------------------------- */

.hero { background: linear-gradient(100deg,#101617,#192123 55%,#283436); border-bottom: 1px solid var(--wp--preset--color--line); }
.heroGrid { display: grid !important; grid-template-columns: 1.08fr .92fr; min-height: 590px; gap: 0 !important; }
.heroCopy { display: flex; flex-direction: column; justify-content: center; padding: 82px 42px 78px 0; }
.eyebrow {
	display: flex; align-items: center; gap: 11px; font-size: 11px;
	letter-spacing: .16em; text-transform: uppercase; color: #bcb4a8; margin-bottom: 23px !important;
}
.eyebrow::before { content: ''; width: 46px; height: 1px; background: var(--wp--preset--color--bronze); flex-shrink: 0; }

/* ---------------------------------------------------------------------
 * 2b. Guaranteed element styles
 *
 * Confirmed live: theme.json's global element styles (styles.elements.*)
 * generate correct, plain-specificity CSS rules — checked directly
 * against the actual output of wp_get_global_stylesheet() — but
 * something loading later in the cascade on this specific WordPress.com
 * site was silently overriding two of them (H1 rendering at paragraph
 * size; the default/outline button losing its border entirely). Most
 * likely the Gutenberg plugin's own front-end styles, confirmed active
 * on this site by an earlier crash trace.
 *
 * Deliberately scoped to only the two *confirmed* problems, not a
 * blanket rewrite of every element style: H2 was directly confirmed
 * still rendering correctly in the user's own comparison screenshots,
 * and an earlier draft of this fix included a generic `a { color: ...
 * !important }` rule that would have silently overridden this file's
 * own, more specific but non-!important nav/footer-nav link-color rules
 * below (!important always wins over specificity, regardless of which
 * selector is more specific) — exactly the kind of collateral damage
 * this fix exists to prevent, not cause. Widen this section later only
 * if something else is *actually confirmed* broken, the same way these
 * two were.
 * ------------------------------------------------------------------- */

h1 {
	font-family: var(--wp--preset--font-family--editorial-serif) !important;
	font-weight: 400 !important;
	font-size: clamp(46px, 6vw, 78px) !important;
	line-height: 0.98 !important;
	letter-spacing: -0.045em !important;
	color: var(--wp--preset--color--paper) !important;
}
.wp-block-button__link {
	border-radius: 0 !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-color: rgba(220,215,201,.34) !important;
	background-color: transparent !important;
	color: var(--wp--preset--color--latte) !important;
	font-size: 10px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.09em !important;
	font-weight: 700 !important;
	min-height: 44px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}
.wp-block-button__link:hover {
	border-color: var(--wp--preset--color--bronze) !important;
}
.wp-block-button.is-style-inkwell-primary .wp-block-button__link {
	background-color: var(--wp--preset--color--bronze) !important;
	border-color: var(--wp--preset--color--bronze) !important;
	color: #fff !important;
}
.wp-block-button.is-style-inkwell-dark .wp-block-button__link {
	background-color: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink) !important;
	color: #fff !important;
}
.wp-block-button.is-style-inkwell-light .wp-block-button__link {
	background-color: transparent !important;
	border-color: var(--wp--preset--color--line-dark) !important;
	color: var(--wp--preset--color--ink) !important;
}

/* Guaranteed left-justification for button rows that should hug the left
   edge (hero, duo cards, toolkit) — belt-and-suspenders alongside the
   explicit layout:{"justifyContent":"left"} block attribute, given the
   Gutenberg plugin's layout defaults have proven unpredictable on this
   site more than once already. */
.wp-block-buttons {
	justify-content: flex-start !important;
}
/* .aboutCta's CTA is deliberately centered — higher specificity wins
   over the rule above despite both using !important. */
.aboutCta .wp-block-buttons {
	justify-content: center !important;
}

.hero h1 { margin: 0 0 24px !important; }
.lead { max-width: 670px; font-size: 15px; line-height: 1.72; color: var(--wp--preset--color--muted); }
.heroBtns { gap: 9px !important; flex-wrap: wrap; margin-top: 25px !important; }
.heroVisual { border-left: 1px solid var(--wp--preset--color--line); padding: 32px; width: 100%; }
.device { width: min(390px,86%); border: 1px solid #737c79; background: #151d1f; padding: 14px; margin: 0 auto; }
.screen { border: 1px solid var(--wp--preset--color--line); padding: 34px; min-height: 310px; }
.screen h3 { font-size: 31px; line-height: 1.05; color: var(--wp--preset--color--paper); margin: 12px 0 17px; }
.line { display: block; height: 7px; background: var(--wp--preset--color--bronze); margin: 10px 0; }
.line:nth-of-type(2) { width: 76%; background: var(--wp--preset--color--latte); }
.line:nth-of-type(3) { width: 56%; background: var(--wp--preset--color--eclipse); }

/* ---------------------------------------------------------------------
 * 4. Section backgrounds
 * ------------------------------------------------------------------- */

.section { padding: 70px 0; }
.paper { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.paper2 { background: var(--wp--preset--color--paper-2); color: var(--wp--preset--color--ink); }
.darkSec { background: #151d1f; }
.eclipse { background: var(--wp--preset--color--eclipse); }
.paper h1, .paper h2, .paper h3, .paper h4,
.paper2 h1, .paper2 h2, .paper2 h3, .paper2 h4 { color: var(--wp--preset--color--ink); }
.paper p, .paper2 p { color: inherit; }

.sectionHead { align-items: end !important; margin-bottom: 30px !important; }
.sectionHead h2 { margin: 5px 0 0 !important; }
.sectionHead p { max-width: 570px; margin: 0; font-size: 14px; line-height: 1.65; color: var(--wp--preset--color--dark-muted); }
.darkSec .sectionHead p, .eclipse .sectionHead p { color: #b3bbb8; }

.grid3 { display: grid !important; grid-template-columns: repeat(3,1fr); gap: 16px !important; }
.card { border: 1px solid var(--wp--preset--color--line-dark); padding: 25px; }
.card .num { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 37px; color: var(--wp--preset--color--bronze); margin: 0; }
.card h3 { font-size: 23px; margin: 15px 0 9px !important; }
.card p { font-size: 14px; line-height: 1.68; color: var(--wp--preset--color--dark-muted); }
a.more { display: inline-block; margin-top: 13px; color: var(--wp--preset--color--bronze); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; text-decoration: none; }
a.more:hover { text-decoration: underline; }

.duo { display: grid !important; grid-template-columns: 1fr 1fr; border: 1px solid var(--wp--preset--color--line-dark); gap: 0 !important; }
.duo > .wp-block-group { padding: 35px; }
.duo > .wp-block-group + .wp-block-group { border-left: 1px solid var(--wp--preset--color--line-dark); }
.duo h3 { font-size: 28px; margin: 9px 0 !important; }
.duo p { font-size: 14px; color: var(--wp--preset--color--dark-muted); line-height: 1.6; }

.statement { display: flex; justify-content: center; gap: 17px; flex-wrap: wrap; font-family: var(--wp--preset--font-family--editorial-serif); font-size: clamp(27px,4vw,45px); color: var(--wp--preset--color--paper); margin: 0; }
.statement span { color: var(--wp--preset--color--bronze); }

.process { display: grid !important; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--wp--preset--color--line-dark); gap: 0 !important; }
.step { padding: 24px 19px; border-bottom: 1px solid var(--wp--preset--color--line-dark); }
.step + .step { border-left: 1px solid var(--wp--preset--color--line-dark); }
.step b { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 31px; font-weight: 400; color: var(--wp--preset--color--bronze); }
.step h3 { font-size: 21px; margin: 10px 0 7px !important; }
.step p { font-size: 14px; line-height: 1.65; color: var(--wp--preset--color--dark-muted); }

/* ---------------------------------------------------------------------
 * 5. Product cards (homepage featured + shop standalone)
 * ------------------------------------------------------------------- */

.homeFeatured { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.homeProduct { border: 1px solid rgba(220,215,201,.22); background: #F7F3EB; color: var(--wp--preset--color--ink); display: grid; grid-template-columns: 200px 1fr; min-height: 260px; }
.homeProductVisual { background: linear-gradient(145deg,var(--wp--preset--color--eclipse),var(--wp--preset--color--ink)); display: grid; place-items: center; padding: 22px; overflow: hidden; }
.homeProductVisual .doc { width: 100%; max-width: 150px; aspect-ratio: 1/1; display: flex; flex-direction: column; justify-content: flex-start; padding: 16px 14px; box-sizing: border-box; }
.homeProductBody { padding: 21px; display: flex; flex-direction: column; }
.homeProductBody h3 { font-size: 24px; line-height: 1.08; margin: 7px 0 8px; }
.homeProductBody .prodIntro { margin-bottom: 10px; }
.homeProductBody .guideBadge { margin-top: 0; }
.homeProductActions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.homeProductActions .btn { flex: 1; text-align: center; }

.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.product { border: 1px solid var(--wp--preset--color--line-dark); background: #F7F3EB; color: var(--wp--preset--color--ink); display: flex; flex-direction: column; position: relative; }
.product.flagship { grid-column: 1/-1; display: grid; grid-template-columns: .86fr 1.14fr; }
.prodVisual { height: 166px; background: linear-gradient(145deg,var(--wp--preset--color--eclipse),var(--wp--preset--color--ink)); display: grid; place-items: center; }
.flagship .prodVisual { height: auto; min-height: 430px; }
.doc { width: 59%; background: var(--wp--preset--color--latte); padding: 16px; box-shadow: 0 15px 30px rgba(0,0,0,.20); margin: 0 auto; }
.flagship .doc { width: 56%; padding: 26px; }
.doc b { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 16px; display: block; }
.flagship .doc b { font-size: 21px; }
.doc i { display: block; height: 6px; background: var(--wp--preset--color--bronze); margin: 13px 0 8px; }
.doc i:nth-of-type(2) { width: 76%; background: var(--wp--preset--color--eclipse); }
.doc i:nth-of-type(3) { width: 58%; background: var(--wp--preset--color--ink); }
.prodBody { padding: 21px; display: flex; flex-direction: column; flex: 1; }
.flagship .prodBody { padding: 34px; }
.prodBody h3 { font-size: 23px; line-height: 1.08; margin: 7px 0; }
.flagship .prodBody h3 { font-size: 34px; }
.price, .homeProductBody .price, .prodBody .price { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 27px; color: #805f47; }
.priceRow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.priceRow del { text-decoration: line-through; color: #89908d; font-family: var(--wp--preset--font-family--editorial-serif); font-size: 18px; }
.priceRow ins { text-decoration: none; }
.saleLabel { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #805f47; }
.prodIntro { font-size: 14px; line-height: 1.68; color: var(--wp--preset--color--dark-muted); margin: 10px 0 13px; }
.guideBadge { display: inline-block; align-self: flex-start; border: 1px solid rgba(162,123,91,.55); background: rgba(162,123,91,.07); color: #805f47; padding: 8px 10px; margin: 2px 0 14px; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; line-height: 1.35; }
.includes { border-top: 1px solid var(--wp--preset--color--line-dark); padding-top: 13px; }
.includesTitle { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #805f47; font-weight: 700; }
.includes ul { list-style: none; padding: 0; margin: 9px 0 0; display: grid; gap: 6px; }
.includes li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.55; color: #505b5c; }
.includes li::before { content: '✓'; position: absolute; left: 0; color: var(--wp--preset--color--bronze); font-weight: 700; }
.prodActions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 18px; }
.prodActions .btn, .prodActions a { width: 100%; text-align: center; }

.inkwell-shop-filters, .filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 25px; }
.filter, .inkwell-filter { border: 1px solid var(--wp--preset--color--line-dark); background: transparent; color: var(--wp--preset--color--ink); padding: 10px 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.filter.active, .inkwell-filter.active { background: var(--wp--preset--color--ink); color: #fff; }

/* ---------------------------------------------------------------------
 * 6. Bundle ladder / toolkit / package teaser
 * ------------------------------------------------------------------- */

.guidedStrip { border: 1px solid rgba(220,215,201,.26); padding: 22px 24px; margin-bottom: 28px !important; display: grid !important; grid-template-columns: auto 1fr; gap: 18px !important; align-items: center; }
.guidedStrip strong { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 23px; font-weight: 400; color: var(--wp--preset--color--paper); }
.guidedStrip p { margin: 0; font-size: 14px; line-height: 1.68; color: #b4bcba; }

.productLadder { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 10px; }
.tierCard { border: 1px solid var(--wp--preset--color--line-dark); background: #F7F3EB; color: var(--wp--preset--color--ink); padding: 25px; display: flex; flex-direction: column; min-height: 420px; position: relative; }
.eclipse .tierCard { border-color: rgba(220,215,201,.24); }
.tierCard.premium { background: #202A2C; color: var(--wp--preset--color--latte); border-color: rgba(220,215,201,.28); }
.tierNo { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 40px; color: var(--wp--preset--color--bronze); line-height: 1; }
.tierKicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #806047; margin-top: 12px; }
.tierCard.premium .tierKicker { color: #D6B99F; }
.tierCard h3 { font-size: 27px; line-height: 1.05; margin: 8px 0; }
.tierPromise { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 18px; line-height: 1.4; color: #4D5859; margin: 5px 0 16px; }
.tierCard.premium .tierPromise { color: #C9D0CD; }
.tierQuestion { border-top: 1px solid var(--wp--preset--color--line-dark); border-bottom: 1px solid var(--wp--preset--color--line-dark); padding: 13px 0; margin: 2px 0 16px; font-size: 13px; line-height: 1.62; color: #596465; }
.tierCard.premium .tierQuestion { border-color: rgba(220,215,201,.22); color: #CED5D2; }
.tierIncludes { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.tierIncludes li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.58; color: #4E595A; }
.tierCard.premium .tierIncludes li { color: #D7DDDA; }
.tierIncludes li::before { content: '✓'; position: absolute; left: 0; color: var(--wp--preset--color--bronze); font-weight: 700; }
.tierPrice { margin-top: auto; padding-top: 20px; }
.tierPrice .current { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 28px; color: #805F47; }
.tierCard.premium .tierPrice .current { color: #E0C3AB; }
.tierPrice .compare { display: block; font-size: 11px; color: #7A8380; margin-bottom: 3px; }
.tierCard.premium .tierPrice .compare { color: #8F9A97; }
.tierActions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 13px; }

.ladderIntro { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px !important; align-items: end; margin-bottom: 28px !important; }
.ladderIntro h2 { margin: 5px 0 0 !important; }
.ladderIntro p { font-size: 14px; line-height: 1.7; color: var(--wp--preset--color--dark-muted); margin: 0; }
.eclipse .ladderIntro p { color: #B3BBB8; }
.entryPrice { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 19px; color: #D9C0AC; margin-top: 5px; }

.standaloneHead { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 58px 0 24px; padding-top: 34px; border-top: 1px solid var(--wp--preset--color--line-dark); }
.standaloneHead h2 { font-size: 32px; margin: 5px 0 0; }
.standaloneHead p { max-width: 530px; font-size: 14px; line-height: 1.68; color: var(--wp--preset--color--dark-muted); margin: 0; }

.bundleLogic { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--wp--preset--color--line-dark); border: 1px solid var(--wp--preset--color--line-dark); margin-top: 25px; }
.bundleLogic > div { background: var(--wp--preset--color--paper); padding: 18px; }
.bundleLogic strong { display: block; font-family: var(--wp--preset--font-family--editorial-serif); font-weight: 400; font-size: 18px; margin-bottom: 5px; }
.bundleLogic span { font-size: 12px; color: var(--wp--preset--color--dark-muted); line-height: 1.45; }

.integrationBox { margin-top: 20px; padding: 20px; background: #202A2C; color: var(--wp--preset--color--latte); border-left: 2px solid var(--wp--preset--color--bronze); }
.integrationBox strong { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 21px; font-weight: 400; color: var(--wp--preset--color--paper); }
.integrationBox p { font-size: 13px; line-height: 1.65; color: #BAC2BF; margin: 7px 0 10px; }
.integrationMetrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.integrationMetrics span { border: 1px solid rgba(220,215,201,.18); padding: 9px; font-size: 11px; color: #D1D6D4; }

.packageTeaser { margin-top: 26px; border: 1px solid rgba(220,215,201,.25); background: #202A2C; padding: 25px; gap: 24px !important; }
.packageTeaser h3 { font-size: 26px; color: var(--wp--preset--color--paper); margin: 5px 0 7px; }
.packageTeaser p { font-size: 14px; line-height: 1.68; color: #B9C1BE; margin: 0; max-width: 720px; }

/* ---------------------------------------------------------------------
 * 7. Freebie / lead form
 * ------------------------------------------------------------------- */

.freebie { display: grid !important; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--wp--preset--color--line-dark); gap: 0 !important; }
.freeCopy { padding: 37px; }
.freeCopy h2 { font-size: 34px; margin: 8px 0 13px !important; }
.freeCopy p { font-size: 14px; line-height: 1.68; color: var(--wp--preset--color--dark-muted); }
.freeTools { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.freeMini { border: 1px solid var(--wp--preset--color--line-dark); padding: 12px; }
.freeMini b { display: block; font-family: var(--wp--preset--font-family--editorial-serif); font-size: 15px; font-weight: 400; margin: 4px 0; }
.freeMini small { font-size: 11px; color: var(--wp--preset--color--dark-muted); }
.form { display: grid; gap: 9px; margin-top: 18px; max-width: 100%; }
.input, input.input, select.input, textarea.input {
	width: 100%; padding: 13px; border: 1px solid var(--wp--preset--color--line-dark);
	background: transparent; color: var(--wp--preset--color--ink); font-size: 14px;
	font-family: var(--wp--preset--font-family--body-sans);
}
.inlineLegal { font-size: 12px; line-height: 1.55; color: var(--wp--preset--color--dark-muted); display: flex; gap: 8px; align-items: flex-start; }
.inlineLegal input { margin-top: 2px; }
.inlineLegal a { color: #805f47; }
.freeVisual { background: linear-gradient(145deg,var(--wp--preset--color--eclipse),var(--wp--preset--color--ink)); display: grid; place-items: center; min-height: 350px; padding: 25px; }
.stack { width: 72%; position: relative; height: 260px; margin: 0 auto; }
.sheet { position: absolute; background: var(--wp--preset--color--latte); color: var(--wp--preset--color--ink); padding: 19px; width: 78%; min-height: 185px; border: 1px solid rgba(44,54,57,.15); }
.sheet:nth-child(1) { left: 4%; top: 34px; transform: rotate(-5deg); }
.sheet:nth-child(2) { right: 2%; top: 20px; transform: rotate(4deg); background: #e8e2d6; }
.sheet:nth-child(3) { left: 12%; top: 3px; }
.sheet h3 { font-size: 20px; margin: 7px 0; }
.sheet p { font-size: 11px; line-height: 1.45; margin: 0; }

/* ---------------------------------------------------------------------
 * 8. Tudástár / knowledge grid
 * ------------------------------------------------------------------- */

.knowledgeGrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px; }
.article { border: 1px solid var(--wp--preset--color--line-dark); background: #F7F3EB; padding: 24px; }
.article .tag { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #806047; margin-bottom: 6px; }
.article h3 { font-size: 22px; line-height: 1.12; margin: 9px 0; }
.article > p { font-size: 14px; line-height: 1.68; color: var(--wp--preset--color--dark-muted); }
.article details, .wp-block-details { border-top: 1px solid var(--wp--preset--color--line-dark); padding-top: 13px; margin-top: 14px; }
.article summary, .wp-block-details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--wp--preset--color--ink); }
.article details > p { font-size: 14px; line-height: 1.7; color: var(--wp--preset--color--dark-muted); }
.inkwell-knowledge-next { border-top: 1px solid var(--wp--preset--color--line-dark); padding-top: 11px; margin-top: 12px !important; font-size: 13px; color: #535e5f; }
.inkwell-knowledge-next strong { color: #805f47; }

/* ---------------------------------------------------------------------
 * 9. Subhero / services
 * ------------------------------------------------------------------- */

.subhero { padding: 78px 0 55px; background: linear-gradient(135deg,#111718,#283436); border-bottom: 1px solid var(--wp--preset--color--line); }
.subhero h1 { margin: 0 0 17px !important; }
.subhero p { max-width: 720px; color: #afb7b4; line-height: 1.65; font-size: 14px; }
.subhero .eyebrow { color: #bcb4a8; }

.serviceRows { display: grid; gap: 15px; }
.serviceRow { display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; align-items: center; border: 1px solid var(--wp--preset--color--line-dark); padding: 22px; }
.serviceRow h3 { font-size: 21px; margin: 4px 0; }
.serviceRow .serviceRowDesc, .serviceRow p { font-size: 14px; line-height: 1.6; color: var(--wp--preset--color--dark-muted); margin: 0; }
.badge { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #806047; }

/* ---------------------------------------------------------------------
 * 10. About / Rólam
 * ------------------------------------------------------------------- */

.aboutEditorial { display: grid !important; grid-template-columns: 1.12fr .88fr; gap: 42px !important; align-items: start; }
.aboutMainFlow { display: grid; gap: 28px; }
.aboutLead p { font-size: 16px; line-height: 1.85; color: var(--wp--preset--color--dark-muted); margin: 0; }
.aboutInlineBlock { padding-bottom: 22px; border-bottom: 1px solid var(--wp--preset--color--line-dark); }
.aboutInlineBlock:last-child { border-bottom: 0; padding-bottom: 0; }
.aboutInlineBlock h3 { font-size: 27px; line-height: 1.15; margin: 0 0 12px; color: var(--wp--preset--color--ink); }
.aboutInlineBlock p { font-size: 15px; line-height: 1.8; color: var(--wp--preset--color--dark-muted); margin: 0; }
.aboutPortraitCol { position: relative; }
.aboutPortrait, .aboutPortrait img { width: 100%; max-width: 430px; border: 1px solid var(--wp--preset--color--ink); display: block; margin-left: auto; }
.aboutSecondary { max-width: 860px; margin: 44px auto 0 !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 34px !important; }
.aboutBlock { padding-bottom: 26px; border-bottom: 1px solid var(--wp--preset--color--line-dark); }
.aboutBlock:last-child { border-bottom: 0; }
.aboutBlock h3 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; color: var(--wp--preset--color--ink); }
.aboutBlock p { font-size: 15px; line-height: 1.82; color: var(--wp--preset--color--dark-muted); margin: 0; }
.aboutCta { background: linear-gradient(135deg,#111718,#283436); border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.aboutCtaInner { max-width: 760px; margin: 0 auto; text-align: center; padding: 72px 0; }
.aboutCtaInner h2 { font-size: clamp(34px,4vw,48px); line-height: 1.05; color: var(--wp--preset--color--paper); margin: 0 0 18px; }

/* ---------------------------------------------------------------------
 * 11. Legal pages
 * ------------------------------------------------------------------- */

.legalWrap { max-width: 930px; margin: 0 auto; }
.legalNotice { border: 1px solid rgba(162,123,91,.45); background: rgba(162,123,91,.08); padding: 18px 20px; margin-bottom: 28px; }
.legalNotice strong { display: block; font-family: var(--wp--preset--font-family--editorial-serif); font-size: 19px; font-weight: 400; color: #805f47; margin-bottom: 6px; }
.legalNotice p { font-size: 13px; line-height: 1.65; color: var(--wp--preset--color--dark-muted); margin: 0; }
.legalMeta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 20px 0 34px; }
.legalMeta div { border: 1px solid var(--wp--preset--color--line-dark); padding: 14px; }
.legalMeta b { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #805f47; margin-bottom: 4px; }
.legalMeta span { font-size: 13px; line-height: 1.5; color: var(--wp--preset--color--ink); }
.legalSection { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--wp--preset--color--line-dark); }
.legalSection:last-child { border-bottom: 0; }
.legalSection h2 { font-size: 29px; line-height: 1.15; margin: 0 0 13px; color: var(--wp--preset--color--ink); }
.legalSection h3 { font-size: 21px; line-height: 1.2; margin: 22px 0 9px; color: var(--wp--preset--color--ink); }
.legalSection p, .legalSection li { font-size: 14px; line-height: 1.75; color: var(--wp--preset--color--dark-muted); }
.legalSection ul, .legalSection ol { padding-left: 20px; }
.legalTable { width: 100%; border-collapse: collapse; margin: 15px 0 5px; }
.legalTable th, .legalTable td { border: 1px solid var(--wp--preset--color--line-dark); text-align: left; vertical-align: top; padding: 11px; font-size: 12px; line-height: 1.55; }
.legalTable th { background: #E8E2D6; color: var(--wp--preset--color--ink); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.placeholder { border: 1px dashed rgba(162,123,91,.65); background: rgba(162,123,91,.06); padding: 10px 12px; color: #805f47 !important; }
.legalFooterNote { font-size: 11px; color: #7E8885; line-height: 1.55; margin-top: 12px; }

/* ---------------------------------------------------------------------
 * 12. Product single page (canonical "modal" replacement)
 * ------------------------------------------------------------------- */

.inkwell-product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.inkwell-product-meta span { border: 1px solid var(--wp--preset--color--line-dark); padding: 7px 9px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6a7272; }
.inkwell-guide-callout { margin-top: 20px; padding: 19px; border-left: 2px solid var(--wp--preset--color--bronze); background: #EAE3D7; font-size: 13px; line-height: 1.65; color: var(--wp--preset--color--dark-muted); }
.inkwell-guide-callout strong { font-family: var(--wp--preset--font-family--editorial-serif); font-size: 20px; font-weight: 400; display: block; margin-bottom: 6px; color: var(--wp--preset--color--ink); }

/* ---------------------------------------------------------------------
 * 13. WooCommerce Cart / Checkout blocks
 * ------------------------------------------------------------------- */

.wc-block-cart, .wc-block-checkout { font-family: var(--wp--preset--font-family--body-sans); color: var(--wp--preset--color--ink); }
.wc-block-cart-item, .wc-block-components-order-summary-item {
	border-bottom: 1px solid var(--wp--preset--color--line-dark) !important;
}
.wc-block-cart-item__title, .wc-block-components-product-name { font-family: var(--wp--preset--font-family--editorial-serif) !important; font-weight: 400 !important; }
.wc-block-cart__totals-title, .wc-block-components-totals-item__label { font-family: var(--wp--preset--font-family--editorial-serif); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--editorial-serif); font-size: 24px;
}
.wc-block-components-button, .wp-block-woocommerce-checkout-actions-block .wc-block-components-checkout-place-order-button {
	border-radius: 0 !important; background: var(--wp--preset--color--ink) !important;
	border-color: var(--wp--preset--color--ink) !important; text-transform: uppercase;
	letter-spacing: .09em; font-size: 12px !important; font-weight: 700 !important;
}
.wc-block-components-checkbox svg { border-radius: 0 !important; }
.wc-block-components-notice-banner { border-radius: 0 !important; border-left: 2px solid var(--wp--preset--color--bronze) !important; }
.wc-block-components-panel, .wc-block-components-address-card,
.wc-block-components-radio-control__option-layout, .wc-block-components-text-input input,
.wc-block-components-textarea, .wc-block-checkout__form select {
	border-radius: 0 !important;
}

/* ---------------------------------------------------------------------
 * 14. Cookie consent
 * ------------------------------------------------------------------- */

.inkwell-cookie-banner {
	position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 90;
	background: #151D1F; color: var(--wp--preset--color--latte);
	border: 1px solid rgba(220,215,201,.35); padding: 20px;
}
.inkwell-cookie-banner-inner { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.inkwell-cookie-banner h3 { font-size: 22px; margin: 0 0 6px; color: var(--wp--preset--color--paper); }
.inkwell-cookie-banner p { font-size: 12px; line-height: 1.6; color: #B8C0BD; margin: 0; }
.inkwell-cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.inkwell-cookie-modal { display: none; position: fixed; inset: 0; background: rgba(10,14,15,.86); z-index: 100; padding: 22px; overflow: auto; }
.inkwell-cookie-modal:not([hidden]) { display: block; }
.inkwell-cookie-box { max-width: 720px; margin: 40px auto; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line-dark); padding: 28px; position: relative; }
.inkwell-cookie-box h2 { font-size: 31px; margin: 0 0 10px; }
.inkwell-cookie-box p { font-size: 13px; line-height: 1.65; color: var(--wp--preset--color--dark-muted); }
.inkwell-cookie-option { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-top: 1px solid var(--wp--preset--color--line-dark); padding: 15px 0; }
.inkwell-cookie-option strong { display: block; font-family: var(--wp--preset--font-family--editorial-serif); font-weight: 400; font-size: 19px; margin-bottom: 3px; }
.inkwell-cookie-option small { font-size: 11px; line-height: 1.5; color: var(--wp--preset--color--dark-muted); }
.inkwell-cookie-toggle { width: 18px; height: 18px; }
.inkwell-close { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--wp--preset--color--ink); font-size: 25px; cursor: pointer; line-height: 1; }
.inkwell-hero-btns { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.inkwell-cookie-banner[hidden], .inkwell-cookie-modal[hidden] { display: none; }

/* Generic .btn used inside raw-HTML fragments (product cards, cookie UI) —
   mirrors the button style variations below without needing block wrapper. */
.btn, a.btn {
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid rgba(220,215,201,.34); background: transparent; color: inherit;
	min-height: 44px; padding: 0 15px; text-transform: uppercase; letter-spacing: .09em;
	font-size: 10px; font-weight: 700; text-decoration: none; cursor: pointer;
	font-family: var(--wp--preset--font-family--body-sans);
}
.btn:hover, a.btn:hover { border-color: var(--wp--preset--color--bronze); }
.btn.primary, .btn.is-style-inkwell-primary { background: var(--wp--preset--color--bronze); border-color: var(--wp--preset--color--bronze); color: #fff; }
.btn.dark, .btn.is-style-inkwell-dark { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.btn.light, .btn.is-style-inkwell-light { border-color: var(--wp--preset--color--line-dark); color: var(--wp--preset--color--ink); }

/* ---------------------------------------------------------------------
 * 15. Button block style variations
 *
 * The actual color/border/typography rules for .is-style-inkwell-* now
 * live in section 2b above (guaranteed, !important versions — see that
 * section's comment for why). This just adds the one property that
 * doesn't need !important since nothing else competes for it.
 * ------------------------------------------------------------------- */

.wp-block-button__link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------------------------------------------------------------------
 * 16. Footer
 * ------------------------------------------------------------------- */

.inkwell-footer { padding: 40px 0 20px; background: #0D1213; border-top: 1px solid var(--wp--preset--color--line); }
.inkwell-footer-grid { display: grid !important; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px !important; }
.inkwell-footer-col h4 { font-size: 17px; margin: 0 0 10px; color: var(--wp--preset--color--paper); }
.inkwell-footer-col p { color: #8e9996; font-size: 12px; max-width: 370px; line-height: 1.65; margin: 8px 0 0; }
.inkwell-footer-nav .wp-block-navigation-item__content {
	color: #AAB2AF; font-size: 12px; padding: 4px 0; text-transform: none; letter-spacing: 0;
	font-family: var(--wp--preset--font-family--body-sans);
}
.inkwell-footer-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--bronze); }
.inkwell-footer-nav .wp-block-navigation__submenu-icon { display: none; }
.inkwell-footer-cookie-btn {
	display: block; border: 0; background: none; color: #AAB2AF; font-size: 12px;
	padding: 4px 0; cursor: pointer; text-align: left; font-family: var(--wp--preset--font-family--body-sans);
}
.inkwell-footer-cookie-btn:hover { color: var(--wp--preset--color--bronze); }
.inkwell-footline { border-top: 1px solid var(--wp--preset--color--line); padding-top: 15px; margin-top: 28px !important; color: #8B9592; font-size: 10px; }

/* ---------------------------------------------------------------------
 * 17. Responsive — matches the reference's own 900px / 620px breakpoints
 * exactly, which in turn also cover the 768/390/320 test widths required
 * by CLAUDE.md §15 (nothing new happens strictly at 1024px — the
 * reference has no breakpoint there, so 1024 renders as "desktop").
 * ------------------------------------------------------------------- */

@media (max-width: 900px) {
	.heroGrid, .freebie { grid-template-columns: 1fr !important; }
	.heroCopy { padding-right: 0; }
	.heroVisual { border-left: 0; border-top: 1px solid var(--wp--preset--color--line); min-height: 380px; }
	.grid3, .process { grid-template-columns: 1fr 1fr !important; }
	.products, .homeFeatured, .productLadder { grid-template-columns: 1fr; }
	.product.flagship { grid-column: auto; grid-template-columns: 1fr; }
	.flagship .prodVisual { min-height: 300px; }
	.serviceRow { grid-template-columns: 140px 1fr; }
	.serviceRow .btn { grid-column: 1/-1; }
	.inkwell-footer-grid { grid-template-columns: 1fr 1fr !important; }
	.freeTools { grid-template-columns: 1fr; }
	.guidedStrip { grid-template-columns: 1fr !important; }
	.aboutEditorial, .aboutSecondary { grid-template-columns: 1fr !important; }
	.aboutPortrait, .aboutPortrait img { margin: 24px auto 0; }
	.homeProduct { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.wrap { width: calc(100% - 26px); }
	.inkwell-actions-primary { display: none; }
	.section { padding: 54px 0; }
	.heroCopy { padding: 60px 0; }
	.grid3, .process, .knowledgeGrid, .duo, .inkwell-footer-grid { grid-template-columns: 1fr !important; }
	.duo > .wp-block-group + .wp-block-group,
	.step + .step { border-left: 0; border-top: 1px solid var(--wp--preset--color--line-dark); }
	.prodActions { grid-template-columns: 1fr; }
	.serviceRow { grid-template-columns: 1fr; }
	.sectionHead { align-items: flex-start !important; flex-direction: column; }
	.freeCopy { padding: 27px; }
	.checkoutGrid { grid-template-columns: 1fr !important; }
	.legalMeta { grid-template-columns: 1fr; }
	.aboutSecondary { gap: 24px !important; }
	.inkwell-cookie-banner-inner { grid-template-columns: 1fr; }
}

/* Checkout two-column proportions (verified/adjusted against real markup
   during the boot test — see docs/KNOWN_ISSUES.md if class names below
   don't match the installed WooCommerce version exactly). */
.checkoutGrid { display: grid; grid-template-columns: 1fr .78fr; gap: 24px; align-items: start; }
.wp-block-woocommerce-checkout .wc-block-checkout__main,
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; }
