/* Jarroz site layer (2026). Loaded after theme.css. Restyles every public page (md-*) and draws the home page (jh-*). */
:root {
  --jz-paper: #F4EFE6;
  --jz-paper-2: #EBE3D5;
  --jz-card: #FFFCF6;
  --jz-pine: #13302B;
  --jz-pine-2: #1D4A41;
  --jz-ink: #1B1A17;
  --jz-muted: #5F5A50;
  --jz-line: #DDD3C2;
  --jz-line-2: #C9BCA6;
  --jz-clay: #B9482A;
  --jz-clay-2: #9A3A20;
  --jz-saffron: #E2A53A;
  --jz-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --jz-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --md-primary: var(--jz-pine);
  --md-primary-dark: #0C211D;
  --md-primary-soft: var(--jz-pine-2);
  --md-primary-container: #DCE8E2;
  --md-secondary: var(--jz-clay);
  --md-secondary-dark: var(--jz-clay-2);
  --md-on-secondary: #fff;
  --md-tertiary: var(--jz-pine);
  --md-surface: var(--jz-paper);
  --md-surface-container: var(--jz-card);
  --md-outline: var(--jz-line);
  --md-outline-strong: var(--jz-line-2);
  --md-on-surface: var(--jz-ink);
  --md-on-surface-variant: var(--jz-muted);
  --md-radius: 10px;
  --md-radius-lg: 14px;
  --md-radius-xl: 22px;
  --md-font: var(--jz-sans);
  --md-max: 1240px;
  --tone: var(--jz-pine);
  --tone-soft: #DCE8E2;
  --tone-ink: var(--jz-pine);
}

/* goal tones (earth pigments) */
.jz-tone[data-tone="ember"]  { --tone: #B9482A; --tone-soft: #F4DED3; --tone-ink: #8A3218; }
.jz-tone[data-tone="teal"]   { --tone: #1E6F68; --tone-soft: #D8EAE6; --tone-ink: #154F4A; }
.jz-tone[data-tone="indigo"] { --tone: #3F4A8A; --tone-soft: #E0E2F1; --tone-ink: #2D3566; }
.jz-tone[data-tone="bronze"] { --tone: #8C6420; --tone-soft: #F1E5CC; --tone-ink: #654712; }
.jz-tone[data-tone="mint"]   { --tone: #2F7A5B; --tone-soft: #DAEDE3; --tone-ink: #215841; }
.jz-tone[data-tone="sage"]   { --tone: #5B6B33; --tone-soft: #E6EAD6; --tone-ink: #424E23; }
.jz-tone[data-tone="rose"]   { --tone: #A3485B; --tone-soft: #F3DEE2; --tone-ink: #7A3141; }
.jz-tone[data-tone="sky"]    { --tone: #2F6481; --tone-soft: #DAE7EE; --tone-ink: #214A60; }
.jz-tone[data-tone="clay"]   { --tone: #9B5531; --tone-soft: #F1E0D4; --tone-ink: #723C20; }
.jz-tone[data-tone="lagoon"] { --tone: #1F6B7A; --tone-soft: #D7E9ED; --tone-ink: #154F5A; }
.jz-tone[data-tone="sun"]    { --tone: #A86A12; --tone-soft: #F6E6C8; --tone-ink: #7A4C0A; }
.jz-tone[data-tone="cobalt"] { --tone: #13302B; --tone-soft: #DCE8E2; --tone-ink: #13302B; }

.md-body { background: var(--jz-paper); font-family: var(--jz-sans); color: var(--jz-ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--jz-serif); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
.md-body :focus-visible { outline: 3px solid var(--jz-saffron); outline-offset: 3px; }
.md-container { width: min(var(--md-max), calc(100% - 40px)); max-width: none; margin-inline: auto; padding-inline: 0; }
.md-skip { position: absolute; left: -9999px; }
.md-skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--jz-pine); color: #fff; padding: 10px 14px; border-radius: 8px; }

/* buttons + inputs */
.md-btn { border-radius: 8px; min-height: 48px; padding: 0 22px; font-weight: 700; font-size: 15px; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; transition: background .18s ease, box-shadow .18s ease, color .18s ease; }
.md-btn--gold { background: var(--jz-clay); color: #fff; box-shadow: 0 2px 0 var(--jz-clay-2); }
.md-btn--gold:hover { background: var(--jz-clay-2); }
.md-btn--teal { background: var(--jz-pine); color: #fff; }
.md-btn--teal:hover { background: #0C211D; }
.md-btn--ghost { background: transparent; color: var(--jz-ink); box-shadow: inset 0 0 0 1.5px var(--jz-ink); }
.md-btn--ghost:hover { background: var(--jz-ink); color: var(--jz-paper); }
.md-input { border-radius: 8px; border: 1.5px solid var(--jz-line-2); background: var(--jz-card); min-height: 48px; padding: 0 16px; font: inherit; }
.md-input:focus { border-color: var(--jz-pine); outline: none; box-shadow: 0 0 0 4px rgba(19, 48, 43, .12); }

/* header */
.md-sticky { position: sticky; top: 0; z-index: 50; }
.jz-ribbon { background: var(--jz-pine); color: #D9E4DE; font-size: 13px; letter-spacing: .02em; }
.jz-ribbon .md-container { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.jz-ribbon b { color: var(--jz-saffron); font-weight: 700; }
.md-header { background: rgba(244, 239, 230, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--jz-line); box-shadow: none; }
.md-header__bar { min-height: 72px; align-items: center; column-gap: 20px; }
.md-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--jz-ink); font-family: var(--jz-serif); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.md-logo::before { content: none; }
.jz-mark { width: 38px; height: 38px; flex: none; }
.md-nav-desktop { gap: 4px; }
@media (min-width: 1024px) { .md-nav-desktop { margin-left: 28px; } }
.md-nav-link { color: var(--jz-ink); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.md-nav-link:hover { background: var(--jz-paper-2); }
.md-icon-btn { border-radius: 8px; }

/* product cards: label on a jar */
.md-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.md-product-card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--jz-card); border: 1px solid var(--jz-line); border-radius: 120px 120px 14px 14px; overflow: hidden; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.md-product-card:hover { border-color: var(--tone); box-shadow: 0 18px 36px -26px rgba(27, 26, 23, .55); }
.md-product-card__media { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 34px 22px 12px; background: radial-gradient(closest-side at 50% 58%, var(--tone-soft), transparent 100%); }
.md-product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.md-product-card:hover .md-product-card__media img { transform: translateY(-4px); }
.md-product-card__badge { display: none; }
.md-product-card__body { margin: 0 14px 14px; padding: 14px 14px 12px; border-top: 2px solid var(--tone); display: flex; flex-direction: column; gap: 6px; flex: 1; text-align: center; }
.md-product-card__body h2 { font-size: 26px; line-height: 1.05; margin: 0; }
.md-product-card__body h2 a { color: inherit; text-decoration: none; }
.md-product-card__body h2 a::after { content: ""; position: absolute; inset: 0; }
.md-product-card .md-chip { align-self: center; order: -1; margin: 0; background: none; border: 0; padding: 0; color: var(--tone-ink); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.md-product-card__go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--jz-muted); }
.md-product-card:hover .md-product-card__go { color: var(--tone-ink); }

/* inner pages */
.md-main { padding-top: 44px; padding-bottom: 80px; }
.md-page-title { font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.md-bc { font-size: 14px; color: var(--jz-muted); }
.md-pager a, .md-pager span { border-radius: 8px; }
.md-pager .is-current { background: var(--jz-pine); color: #fff; }

/* footer */
.md-footer { background: var(--jz-ink); color: #B8B1A3; border: 0; padding: 64px 0 28px; }
.md-footer a { color: #EFE8DA; }
.md-footer a:hover { color: var(--jz-saffron); }
.md-footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--jz-serif); font-size: 40px; line-height: 1; color: #fff; margin: 0 0 16px; }
.md-footer .md-kicker { background: none; padding: 0; border-radius: 0; color: var(--jz-saffron); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.md-footer__cats { columns: 2; column-gap: 28px; }
.md-footer__cats a { display: block; padding: 3px 0; text-decoration: none; }
.md-copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: 14px; }

/* ---------------- home ---------------- */
.jh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jh-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--jz-clay); }
.jh-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

.jh-hero { position: relative; padding: 56px 0 0; border-bottom: 1px solid var(--jz-line); background:
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(27, 26, 23, .045) 39px 40px), var(--jz-paper); }
.jh-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: end; }
.jh-hero__copy { padding-bottom: 64px; }
.jh-hero h1 { font-size: clamp(52px, 7.2vw, 104px); line-height: .92; margin: 0 0 24px; }
.jh-hero h1 em { font-style: italic; color: var(--jz-clay); }
.jh-lead { font-size: 19px; color: var(--jz-muted); max-width: 33rem; margin: 0 0 30px; }
.jh-search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 16px; background: var(--jz-card); border: 1.5px solid var(--jz-ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--jz-ink); }
.jh-search:focus-within { box-shadow: 5px 5px 0 var(--jz-clay); border-color: var(--jz-clay); }
.jh-search__icon { color: var(--jz-muted); display: grid; }
.jh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; min-height: 44px; }
.jh-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.jh-quick > span { font-weight: 700; color: var(--jz-muted); margin-right: 4px; }
.jh-quick a { text-decoration: none; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--tone); color: var(--tone-ink); background: var(--jz-card); font-weight: 700; }
.jh-quick a:hover { background: var(--tone); color: #fff; }

/* the jar: an arched window holding a few products */
.jh-jar { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 70px 30px 0; border-radius: 280px 280px 0 0; background: var(--jz-pine); color: #E3ECE7; overflow: hidden; }
.jh-jar::before { content: ""; position: absolute; inset: 18px 18px 0; border: 1px solid rgba(255, 255, 255, .18); border-bottom: 0; border-radius: 262px 262px 0 0; pointer-events: none; }
.jh-jar__lid { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-family: var(--jz-serif); font-size: 22px; font-style: italic; color: var(--jz-saffron); white-space: nowrap; }
.jh-jar__shelf { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 22px; border-bottom: 10px solid #0C211D; }
.jh-jar__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.jh-jar__item img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .35)); transition: transform .3s ease; }
.jh-jar__item:hover img { transform: translateY(-6px); }
.jh-jar__item span { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; }
.jh-jar__label { position: relative; margin: 22px auto 26px; max-width: 320px; padding: 14px 18px; background: var(--jz-paper); color: var(--jz-ink); border-radius: 4px; text-align: center; font-size: 14px; line-height: 1.45; }
.jh-jar__label strong { display: block; font-family: var(--jz-serif); font-weight: 400; font-size: 24px; line-height: 1.1; margin-bottom: 4px; }

.jh-ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--jz-line); }
.jh-ledger div { padding: 22px 24px; border-left: 1px solid var(--jz-line); }
.jh-ledger div:first-child { border-left: 0; padding-left: 0; }
.jh-ledger dt { font-family: var(--jz-serif); font-size: 46px; line-height: 1; color: var(--jz-ink); }
.jh-ledger dd { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--jz-muted); }

.jh-main { padding: 0; }
.jh-section { padding: 100px 0 0; }
.jh-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: end; margin-bottom: 40px; }
.jh-head h2 { font-size: clamp(40px, 5vw, 68px); line-height: .98; margin: 0; }
.jh-head p:not(.jh-kicker) { margin: 0; font-size: 18px; color: var(--jz-muted); max-width: 34rem; }
.jh-head--solo { grid-template-columns: 1fr; }

/* goals: apothecary drawers */
.jh-drawers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--jz-ink); border-left: 1.5px solid var(--jz-ink); }
.jh-drawers li { border-right: 1.5px solid var(--jz-ink); border-bottom: 1.5px solid var(--jz-ink); }
.jh-drawer { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 190px; padding: 18px 20px 20px; text-decoration: none; color: var(--jz-ink); background: var(--jz-card); transition: background .2s ease, color .2s ease; }
.jh-drawer__no { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--jz-muted); }
.jh-drawer .ci { margin-top: 18px; background: var(--tone-soft) !important; color: var(--tone-ink) !important; }
.jh-drawer h3 { margin: 14px 0 2px; font-size: 27px; line-height: 1.02; }
.jh-drawer p { margin: 0; font-size: 14px; font-weight: 700; color: var(--tone-ink); }
.jh-drawer__knob { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; color: var(--jz-ink); transition: transform .2s ease; }
.jh-drawer:hover { background: var(--tone); color: #fff; }
.jh-drawer:hover .jh-drawer__no, .jh-drawer:hover p, .jh-drawer:hover .jh-drawer__knob { color: #fff; }
.jh-drawer:hover .ci { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
.jh-drawer:hover .jh-drawer__knob { transform: rotate(-45deg); }

/* method */
.jh-method { margin-top: 100px; padding: 92px 0; background: var(--jz-pine); color: #D3E0DA; }
.jh-method .jh-kicker { color: var(--jz-saffron); }
.jh-method h2 { color: #fff; }
.jh-method .jh-head p:not(.jh-kicker) { color: #B5C8BF; }
.jh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .2); counter-reset: s; }
.jh-steps li { counter-increment: s; padding: 30px 30px 6px 0; }
.jh-steps li + li { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .2); }
.jh-steps li::before { content: counter(s, upper-roman) "."; display: block; font-family: var(--jz-serif); font-style: italic; font-size: 52px; line-height: 1; color: var(--jz-saffron); margin-bottom: 20px; }
.jh-steps h3 { margin: 0 0 10px; font-size: 30px; color: #fff; line-height: 1.05; }
.jh-steps p { margin: 0; color: #B5C8BF; }

/* closing */
.jh-close { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 48px; background: var(--jz-saffron); border-radius: 14px; color: var(--jz-ink); }
.jh-close h2 { margin: 0 0 8px; font-size: clamp(36px, 4vw, 54px); line-height: 1; }
.jh-close p { margin: 0; font-size: 18px; }
.jh-close .jh-search { max-width: none; }
.jh-note { margin: 28px 0 100px; padding: 18px 0 0; border-top: 1px solid var(--jz-line); color: var(--jz-muted); font-size: 14px; max-width: 64rem; }
.jh-note strong { color: var(--jz-ink); }

@media (max-width: 1040px) {
  .jh-hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .jh-hero__copy { padding-bottom: 32px; }
  .jh-jar { min-height: 0; max-width: 560px; width: 100%; margin-inline: auto; }
  .jh-drawers { grid-template-columns: repeat(2, 1fr); }
  .jh-head, .jh-close { grid-template-columns: 1fr; }
  .jh-steps { grid-template-columns: 1fr; }
  .jh-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
}
@media (max-width: 640px) {
  .jz-ribbon .md-container span:last-child { display: none; }
  .jh-hero { padding-top: 36px; }
  .jh-jar { padding: 60px 16px 0; border-radius: 200px 200px 0 0; }
  .jh-jar::before { border-radius: 190px 190px 0 0; inset: 10px 10px 0; }
  .jh-ledger dt { font-size: 34px; }
  .jh-ledger div { padding: 16px 12px; }
  .jh-drawer { min-height: 160px; padding: 14px; }
  .jh-drawer h3 { font-size: 22px; }
  .jh-section { padding-top: 68px; }
  .jh-method { margin-top: 68px; padding: 64px 0; }
  .jh-close { padding: 28px; }
  .jh-search { box-shadow: 3px 3px 0 var(--jz-ink); }
  .jh-search .md-btn { padding: 0 14px; }
  .md-product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .md-product-card { border-radius: 80px 80px 12px 12px; }
  .md-product-card__body { margin: 0 8px 10px; padding: 10px 4px 8px; }
  .md-product-card__body h2 { font-size: 21px; }
  .md-footer__cats { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .jh-jar__item img, .md-product-card__media img, .jh-drawer, .jh-drawer__knob, .md-btn { transition: none !important; }
}
