/* Northfold theme: editorial, paper-like, square edges */
:root {
  --ink: #17241F;
  --paper: #FBF8F1;
  --accent: #2F6B4F;
  --ochre: #C98A3C;
  --tint: #EAE6DA;
  --line: #D9D2C4;
  --muted: #6E7A72;
  --surface: #FFFFFF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 600; line-height: 1.08; font-variation-settings: "opsz" 72, "SOFT" 0, "WONK" 0; }
h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.015em; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 21px; font-family: var(--sans); font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 90; background: var(--ink); color: var(--paper); padding: 10px 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 100px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section--dark .eyebrow { color: var(--ochre); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }
.section--dark .lede { color: #C3CFC7; }

/* buttons: square, bordered */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }
.btn--full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* announcement + header */
.announce { background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: .02em; }
.announce .container { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; text-align: center; }
.announce i { color: var(--ochre); }
.header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: -.01em; }
.wordmark svg { width: 26px; height: 26px; }
.menu { display: flex; gap: 26px; margin-inline: auto; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; padding-bottom: 3px; border-bottom: 1.5px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--accent); }
.header__tools { display: flex; align-items: center; gap: 6px; }
.tool { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; text-decoration: none; font-size: 17px; }
.tool:hover { color: var(--accent); }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: var(--paper); font-size: 11px; font-weight: 600; display: grid; place-items: center; border-radius: 9px; }
.burger { display: none; }
@media (max-width: 920px) {
  .burger { display: inline-grid; }
  .menu { position: fixed; inset: 0 0 0 auto; width: min(330px, 86vw); flex-direction: column; gap: 6px; margin: 0; padding: 92px 28px 28px; background: var(--paper); border-left: 1px solid var(--line); transform: translateX(104%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; z-index: 60; }
  .menu.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .menu a { font-size: 22px; font-family: var(--serif); }
  .menu__close { position: absolute; top: 20px; right: 18px; }
}
.menu__close { display: none; }
@media (max-width: 920px) { .menu__close { display: inline-grid; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero__meta { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.hero__meta b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.hero__media img { width: 100%; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--paper); padding: 26px clamp(16px, 2vw, 28px); display: flex; gap: 14px; align-items: flex-start; }
.fact i { color: var(--accent); font-size: 18px; margin-top: 3px; }
.fact b { display: block; font-size: 16px; }
.fact span { color: var(--muted); font-size: 14px; }

/* product grid */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__frame { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.card__frame img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__frame img + img { opacity: 1; }
.card__pages { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }
.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.card__name { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.card__name a { text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__sub { color: var(--muted); font-size: 14px; margin: 0; }
.price { font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; margin-left: 8px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split--flip .split__media { order: 2; }
@media (max-width: 880px) { .split--flip .split__media { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks i { color: var(--accent); margin-top: 5px; font-size: 13px; }

/* bundle band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 880px) { .band { grid-template-columns: 1fr; } }
.band h2 { color: var(--paper); }
.band__price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 24px 0 28px; }
.band__price strong { font-family: var(--serif); font-size: 52px; font-weight: 600; }
.band__price span { color: var(--ochre); font-weight: 600; }
.band__list { columns: 2; gap: 24px; list-style: none; padding: 0; margin: 0 0 28px; color: #C3CFC7; }
@media (max-width: 520px) { .band__list { columns: 1; } }
.band__list li { break-inside: avoid; padding: 4px 0 4px 22px; position: relative; }
.band__list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 1.5px; background: var(--ochre); }

/* faq */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--accent); font-size: 14px; transition: transform .2s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .rte { padding-bottom: 22px; color: var(--muted); max-width: 70ch; }

/* newsletter */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 880px) { .signup { grid-template-columns: 1fr; } }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1 1 240px; min-height: 54px; padding: 0 18px; border: 1.5px solid var(--line); background: var(--surface); }
.field-row input:focus { border-color: var(--ink); outline: none; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); background: var(--surface); }
.field textarea { min-height: auto; }
.note { background: var(--tint); padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.note--error { background: #F6E3DC; color: #7A2E12; }
.fine { color: var(--muted); font-size: 14px; }

/* product page */
.product { padding-block: clamp(26px, 4vw, 48px) clamp(50px, 7vw, 90px); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.product__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(26px, 4.5vw, 70px); align-items: start; }
@media (max-width: 900px) { .product__grid { grid-template-columns: 1fr; } }
.viewer__main { border: 1px solid var(--line); background: var(--tint); aspect-ratio: 1; overflow: hidden; }
.viewer__main img { width: 100%; height: 100%; object-fit: cover; }
.viewer__strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.viewer__strip button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.viewer__strip button[aria-current="true"] { border-color: var(--ink); }
.viewer__strip img { width: 100%; height: 100%; object-fit: cover; }
.product__title { margin-bottom: 10px; font-size: clamp(34px, 4.2vw, 50px); }
.product__price { font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; font-weight: 500; }
.product__form { display: grid; gap: 12px; margin-bottom: 16px; }
.product__form select { min-height: 54px; border: 1.5px solid var(--line); padding: 0 14px; background: var(--surface); }
.consent-line { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.consent-line i { margin-top: 4px; color: var(--accent); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { color: var(--accent); font-size: 13px; transition: transform .2s; }
.accordion details[open] summary i { transform: rotate(45deg); }
.accordion .rte { padding-bottom: 20px; color: var(--muted); }

/* cart */
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line img { width: 92px; height: 92px; object-fit: cover; border: 1px solid var(--line); }
.line__name { font-family: var(--serif); font-size: 20px; font-weight: 600; text-decoration: none; }
.line__meta { color: var(--muted); font-size: 14px; }
.qty { width: 74px; min-height: 44px; border: 1.5px solid var(--line); padding: 0 10px; background: var(--surface); }
.totals { border: 1px solid var(--line); padding: 28px; position: sticky; top: 100px; background: var(--surface); }
.totals__row { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.consent-box { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--tint); padding: 14px; margin: 18px 0; }
.consent-box input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.empty { text-align: center; padding-block: 40px; }
.empty i { font-size: 42px; color: var(--accent); margin-bottom: 16px; }

/* collection toolbar + pagination */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; color: var(--muted); font-size: 15px; }
.toolbar select { min-height: 44px; border: 1.5px solid var(--line); padding: 0 14px; background: var(--surface); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; padding: 0 12px; }
.pager .now { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* rich text + pages */
.page-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.measure { max-width: 760px; margin: 0 auto; }
.rte { overflow-wrap: anywhere; }
.rte h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.5em; }
.rte h3 { margin-top: 1.5em; }
.rte ul, .rte ol { padding-left: 1.2em; }
.rte li { margin-bottom: .4em; }
.rte a { color: var(--accent); }
.rte table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.rte td, .rte th { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.info-list i { color: var(--accent); margin-top: 5px; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 3vw, 36px); }

/* footer */
.footer { background: var(--ink); color: #C3CFC7; padding-block: clamp(50px, 6vw, 80px) 26px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer .wordmark { color: var(--paper); margin-bottom: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(26px, 4vw, 54px); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(251,248,241,.14); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.policy-links { display: flex; gap: 8px 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0; }
.pay { display: flex; gap: 10px; align-items: center; font-size: 22px; color: #9FB0A6; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- website additions ---- */
.badge[hidden] { display: none; }
button.line__remove { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--muted); font-size: 14px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 12px; box-shadow: 0 22px 50px -26px rgba(23,36,31,.5); max-width: min(460px, calc(100vw - 32px)); transform: translateY(140%); opacity: 0; transition: transform .28s ease, opacity .28s ease; }
.toast.is-visible { transform: none; opacity: 1; }
.toast img { width: 56px; height: 70px; object-fit: cover; border: 1px solid var(--line); }
.toast b { display: block; font-size: 14px; }
.toast span { display: block; font-size: 14px; color: var(--muted); }
.toast .btn { min-height: 42px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.toast .tool { width: 34px; height: 34px; }
@media (max-width: 520px) { .toast { left: 16px; right: 16px; bottom: 16px; } .toast img { display: none; } }
.upsell { display: flex; gap: 14px; align-items: center; margin-top: 20px; background: var(--tint); padding: 16px 18px; flex-wrap: wrap; }
.upsell i { color: var(--accent); font-size: 19px; }
.upsell div { flex: 1 1 200px; }
.upsell b { display: block; }
.upsell span { color: var(--muted); font-size: 14px; }
.checkout-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-panel h2 { font-size: 22px; margin-bottom: 8px; }
.checkout-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.checkout-row .btn { min-height: 42px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.search-count { text-align: center; color: var(--muted); margin-bottom: 26px; min-height: 1.6em; }
.faq-page h2 { margin-top: 1.8em; }
.legal-card { border: 1px solid var(--line); background: var(--surface); padding: clamp(22px, 4vw, 48px); }
.legal-card > :first-child { margin-top: 0; }
.rte .table-wrap { overflow-x: auto; margin: 1.2em 0; }
.rte .table-wrap table { display: table; min-width: 460px; }
