/*
 * origen · mazatapecmushrooms.com
 * 1. Concept: a single-origin coffee bag. The home page is the front of the bag: an illustration window, the cultivar
 *    name and an origin fact panel (region, altitude, lineage, flushes, grow time), with the featured kit on a hang tag.
 * 2. Type: Young Serif (a warm 1960s-style book serif, for names and headings) + Karla (a grotesque with character,
 *    for text and the small-caps label rows).
 * 3. Palette: kraft #e6d8bd, label paper #fbf7ef, espresso ink #261a14, cherry red #8f2f2a, slate blue #3d5a73.
 * 4. Layout signature: bag front with a crimped top seal and a ruled fact panel; "Choose your size" shelf of three bags
 *    of different heights with order buttons; articles as the back of the bag: a "Label facts" box and numbered panels.
 * 5. Finishing detail: the heat-seal crimp line and the hang tag with a punched hole and string.
 */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/youngserif-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/youngserif-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/karla-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/karla-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Karla"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/karla-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Karla"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/karla-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --kraft: #e6d8bd;
  --kraft-2: #d9c7a5;
  --paper: #fbf7ef;
  --ink: #261a14;
  --ink-2: #5b4a3e;
  --red: #8f2f2a;
  --slate: #3d5a73;
  --rule: #261a14;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kraft); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 5; }
.skip:focus { left: 1rem; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }

/* ---- header: the top seal of the bag ---- */
.seal { background: var(--ink); color: var(--paper); border-bottom: 6px dashed var(--kraft); }
.seal-row { max-width: var(--wrap); margin: 0 auto; padding: .7rem 16px; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--paper); text-decoration: none; }
.brand img { width: 40px; height: 40px; background: var(--paper); border-radius: 50%; padding: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tabs { display: none; }
.tabs a { color: var(--paper); text-decoration: none; font-size: .9rem; padding: .3rem .1rem; border-bottom: 2px solid transparent; }
.tabs a:hover { border-bottom-color: var(--kraft-2); }
.tabs a[aria-current] { border-bottom-color: #d96b5f; }
.menu summary { cursor: pointer; list-style: none; border: 1px solid var(--paper); padding: .3rem .8rem; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--paper); color: var(--ink); }
.menu nav { position: absolute; left: 0; right: 0; margin-top: .7rem; background: var(--ink); border-top: 1px solid #4a3a30; padding: .5rem 16px 1rem; z-index: 4; }
.menu nav a { display: flex; gap: .8rem; color: var(--paper); text-decoration: none; padding: .55rem 0; border-bottom: 1px solid #3a2c24; }
.m-no { font-family: var(--serif); color: #d9a79f; }
@media (min-width: 980px) {
  .tabs { display: flex; gap: 1.2rem; flex-wrap: wrap; }
  .menu { display: none; }
}

.kicker { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.checked { margin: .6rem 0 0; font-size: .85rem; color: var(--ink-2); }
.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; padding: .6rem 1rem; border: 2px solid var(--red); }
.btn:hover { background: var(--ink); border-color: var(--ink); }

/* ---- home: the front of the bag ---- */
.counter { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 16px 2rem; display: grid; gap: 1.5rem; }
.bag { background: var(--paper); border: 2px solid var(--ink); position: relative; }
.bag-crimp { height: 18px; border-bottom: 2px solid var(--ink); background: var(--kraft-2);
  border-image: none; }
.bag-crimp::after { content: ""; display: block; height: 8px; margin: 4px 10px 0; border-top: 2px dotted var(--ink); }
.bag-face { padding: 1rem; display: grid; gap: 1rem; }
.window { margin: 0; border: 2px solid var(--ink); border-radius: 50% 50% 0 0 / 18% 18% 0 0; overflow: hidden; }
.window img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; }
.namecard { text-align: left; }
.eyebrow { margin: 0 0 .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.namecard h1 { display: flex; flex-direction: column; }
.h1-main { font-size: clamp(3rem, 13vw, 6.4rem); line-height: .95; letter-spacing: -.01em; }
.h1-sub { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .32em; text-transform: uppercase; color: var(--red); margin-top: .5rem; }
.tagline { margin: .9rem 0 0; font-size: 1.05rem; color: var(--ink-2); max-width: 34em; }
.origin { margin: 0; border-top: 3px solid var(--ink); }
.origin div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--ink); }
.origin div:last-child { border-bottom-width: 3px; }
.origin dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-top: .15rem; }
.origin dd { margin: 0; font-size: .95rem; line-height: 1.45; }

.hangtag { background: var(--paper); border: 2px solid var(--ink); padding: 2.2rem 1rem 1rem; position: relative; align-self: start; }
.hangtag::before { content: ""; position: absolute; top: .7rem; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--kraft); }
.hang-string { display: none; }
.hang-head { margin: 0 0 .7rem; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hang-note { margin: .9rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--ink-2); border-top: 1px dashed var(--ink); padding-top: .7rem; }

@media (min-width: 760px) {
  .bag-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "window window" "name facts"; padding: 1.25rem; column-gap: 2rem; row-gap: 1.5rem; }
  .window { grid-area: window; border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
  .window img { aspect-ratio: 16 / 7; }
  .namecard { grid-area: name; }
  .h1-main { font-size: clamp(3rem, 6.4vw, 5rem); }
  .origin { grid-area: facts; align-self: start; }
}
@media (min-width: 1100px) {
  .counter { grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; padding-top: 2.5rem; }
  .hangtag { margin-top: 4.5rem; transform: rotate(2deg); }
  .hang-string { display: block; position: absolute; top: -4.5rem; left: 50%; height: 5.4rem; border-left: 2px solid var(--ink); }
}

/* ---- home: choose your size ---- */
.sizes { background: var(--ink); color: var(--paper); padding: 2.5rem 0 0; }
.sizes-head { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sizes-head .kicker { color: #e8a59b; }
.sizes-head h2 { font-size: clamp(2rem, 6vw, 3rem); }
.sizes-head p { max-width: 40em; }
.sizes-head a { color: var(--paper); }
.shelf { list-style: none; max-width: var(--wrap); margin: 1.5rem auto 0; padding: 0 16px; display: grid; gap: 1.25rem; align-items: end; }
.minibag { display: flex; }
.mb-face { background: var(--kraft); color: var(--ink); border: 2px solid var(--paper); border-top: 14px solid var(--kraft-2); padding: 1rem; width: 100%; display: flex; flex-direction: column; gap: .5rem; position: relative; }
.mb-face::before { content: ""; position: absolute; top: -9px; left: 8px; right: 8px; border-top: 2px dotted var(--ink); }
.mb-vol { margin: 0; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--red); }
.mb-name { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.mb-face img { width: 150px; height: 150px; object-fit: contain; background: var(--paper); border: 1px solid var(--ink); align-self: center; margin: .3rem 0; }
.mb-spec { margin: 0; border-top: 2px solid var(--ink); }
.mb-spec div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--ink); font-size: .88rem; line-height: 1.35; }
.mb-spec dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: .1rem; }
.mb-spec dd { margin: 0; }
.mb-for { margin: .2rem 0 0; font-style: italic; font-size: .92rem; }
.mb-buy { margin: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; padding-top: .4rem; }
.mb-price { font-family: var(--serif); font-size: 1.4rem; }
.mb-shop { font-size: .8rem; color: var(--ink-2); }
.minibag .btn { text-align: center; }
.sizes::after { content: ""; display: block; height: 14px; margin-top: 0; background: var(--kraft-2); border-top: 2px solid var(--paper); }
@media (min-width: 760px) {
  .shelf { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .minibag .mb-face { min-height: 36rem; }
  .minibag-xl .mb-face { min-height: 40rem; border-top-width: 22px; }
  .sizes::after { margin-top: -2px; }
}

/* ---- home: back of the bag + contents ---- */
.back { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 16px 1rem; }
.back-head { margin-bottom: 1.25rem; }
.back-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.inside { max-width: var(--wrap); margin: 0 auto; padding: 1rem 16px 3rem; }
.inside-title { font-size: 1.6rem; margin-bottom: .8rem; }
.inside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.inside a { display: grid; grid-template-columns: 3rem 1fr; column-gap: .75rem; padding: .9rem; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; height: 100%; }
.inside a:hover { border-color: var(--red); }
.in-no { grid-row: span 2; font-family: var(--serif); font-size: 1.8rem; color: var(--red); line-height: 1; }
.in-name { font-weight: 700; }
.in-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
@media (min-width: 760px) { .inside ol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .inside ol { grid-template-columns: repeat(4, 1fr); } .inside a { grid-template-columns: 1fr; } .in-no { grid-row: auto; margin-bottom: .4rem; } }

/* ---- panels (back of the bag) ---- */
.panels { display: grid; gap: 1rem; min-width: 0; }
.panel { background: var(--paper); border: 2px solid var(--ink); padding: 1.25rem 1rem 1rem; position: relative; min-width: 0; }
.panel-intro { border-width: 2px 2px 6px; font-size: 1.1rem; }
.panel-intro p:first-child { margin-top: 0; }
.panel-no { position: absolute; top: -2px; right: -2px; margin: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 1.15rem; line-height: 1; padding: .45rem .6rem; }
.prose { max-width: none; }
.prose > * { max-width: 42rem; }
.prose h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); padding-right: 3rem; margin: 0 0 .75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.4rem 0 .4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--red); }
.prose strong { font-weight: 700; }
.prose > :last-child { margin-bottom: 0; }
.prose blockquote { margin: 1rem 0; padding: .3rem 0 .3rem 1rem; border-left: 4px solid var(--slate); }
.prose figure { margin: 1rem 0; }
.prose figure img { width: 160px; }
.prose hr { border: 0; border-top: 2px dashed var(--ink); margin: 1.5rem 0; }
.table { max-width: none; overflow-x: auto; margin: 0 0 1.1rem; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.table table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.4; }
.table th, .table td { text-align: left; vertical-align: top; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--ink); }
.table thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; border-bottom-width: 2px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; }

/* ---- article: back side ---- */
.art-head { background: var(--paper); border-bottom: 2px solid var(--ink); }
.art-head-row { max-width: var(--wrap); margin: 0 auto; padding: 1.75rem 16px 1.5rem; }
.art-tab { display: inline-flex; gap: .6rem; align-items: center; margin: 0 0 .8rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tab-no { background: var(--red); color: #fff; font-family: var(--serif); letter-spacing: 0; padding: .15rem .45rem; font-size: 1rem; }
.art-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 20em; }
.art-note { margin: .9rem 0 0; display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--slate); color: var(--slate); padding: .25rem .6rem; }
.art-head .checked { display: block; }
.art-body { max-width: var(--wrap); margin: 0 auto; padding: 1.75rem 16px 2rem; display: grid; gap: 1.25rem; }
.facts { background: var(--paper); border: 2px solid var(--ink); padding: .8rem 1rem 1rem; align-self: start; }
.facts-title { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; border-bottom: 8px solid var(--ink); padding-bottom: .3rem; }
.facts-sub { margin: .3rem 0 0; font-size: .8rem; font-weight: 700; border-bottom: 3px solid var(--ink); padding-bottom: .3rem; }
.facts ol { list-style: none; margin: 0; padding: 0; }
.facts li { border-bottom: 1px solid var(--ink); }
.facts a { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; padding: .45rem 0; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.facts a:hover { color: var(--red); }
.f-no { font-weight: 700; color: var(--red); }
@media (min-width: 980px) {
  .art-body { grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; }
  .panel { padding: 1.6rem 1.75rem 1.5rem; }
}
.next { max-width: var(--wrap); margin: 0 auto; padding: 0 16px 3rem; }
.next-head { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.next a { display: flex; gap: .8rem; align-items: baseline; background: var(--paper); border: 2px solid var(--ink); padding: .8rem 1rem; color: var(--ink); text-decoration: none; height: 100%; }
.next a:hover { border-color: var(--red); }
.next-no { font-family: var(--serif); font-size: 1.4rem; color: var(--red); }
.next-name { font-size: .95rem; line-height: 1.35; }
@media (min-width: 760px) { .next ol { grid-template-columns: repeat(3, 1fr); } }

/* ---- product cards: small bag labels ---- */
.products { max-width: none; display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); } }
.product-feature { max-width: 34rem; margin: 1.25rem 0; }
.pcard { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; background: var(--kraft); border: 2px solid var(--ink); padding: .75rem; }
.pcard-img img { width: 96px; height: 96px; object-fit: contain; background: var(--paper); border: 1px solid var(--ink); }
.pcard-label { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pcard-net { margin: 0; display: flex; justify-content: space-between; gap: .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; }
.pcard-name { font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { color: var(--red); }
.pcard-meta { margin: 0; display: flex; gap: .6rem; align-items: baseline; }
.pcard-price { font-family: var(--serif); font-size: 1.25rem; }
.pcard-shop { font-size: .8rem; color: var(--ink-2); }
.pcard .btn { margin-top: auto; align-self: start; font-size: .88rem; padding: .45rem .8rem; }
.pcard-single { grid-template-columns: 1fr; background: var(--paper); }
.pcard-single .pcard-img img { width: 100%; height: auto; aspect-ratio: 1; }
.hangtag .pcard { border: 0; padding: 0; background: none; }
.hangtag .pcard-img img { max-width: 260px; margin: 0 auto; }
@media (min-width: 640px) { .product-feature .pcard-single { grid-template-columns: 160px 1fr; } }

/* ---- footer ---- */
.foot { background: var(--ink); color: var(--paper); border-top: 6px dashed var(--kraft); }
.foot-row { max-width: var(--wrap); margin: 0 auto; padding: 2rem 16px 2.5rem; display: grid; gap: 1.5rem; }
.foot-name { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-family: var(--serif); font-size: 1.3rem; }
.foot-name img { background: var(--paper); border-radius: 50%; padding: 2px; }
.foot-note { margin: 0; font-size: .9rem; max-width: 36em; opacity: .9; }
.foot-pub { display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.foot-pub img { flex: none; }
.foot-pub p { margin: 0; }
.foot a { color: var(--paper); }
@media (min-width: 760px) { .foot-row { grid-template-columns: 1.3fr 1fr; align-items: center; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 1099px) { .hangtag { transform: none; } }
