/*
 * ULRIC THEME, MERCH SECTIONS: how the studio dresses its two merch
 * collections. Printed after modules/printful/assets/merch-sections.css by
 * merch_section_assets(), on /merch and the two landings.
 *   Ulric           the theme's own tokens: Newsreader, the mono, the orange
 *                   baton, cream and ink.
 *   Oregon Healing  that site's own tokens (its themes/alder/css/alder.css,
 *                   read only): greens, dawn and mint panels, Golos Text
 *                   (SIL OFL 1.1, OFL-golostext.txt beside this file), and its
 *                   isometric hairline figures (the rules below come from its
 *                   motion/figures/figures.css and alder-study-guide.css).
 * Siblings: ../../merch/{hero,door}-{ulric,oregon-healing}.php, ../../merch/_oh-fig-*.php.
 * Must never: restyle anything outside .mx-sec--*, .mx-door--* and .al-fig.
 */

@font-face{font-family:"Golos Text";font-style:normal;font-weight:500 800;font-display:swap;
  src:url("golos-text-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}

/* ======================= Ulric ======================= */
.mx-hero-u{padding-bottom:clamp(26px,5vh,48px)}
.mx-hero-u-grid{display:grid;gap:30px;align-items:center}
@media (min-width:900px){.mx-hero-u-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(40px,6vw,90px)}}
.mx-hero-u .eyebrow a{color:inherit;text-decoration:none}
.mx-hero-u .eyebrow span{color:var(--stone);margin:0 2px}
.mx-hero-u h1{margin:14px 0 18px;max-width:10em}
.mx-hero-u .lede{margin:0}
.mx-u-lines{display:flex;flex-wrap:wrap;gap:8px 22px;margin:22px 0 0;padding:0;list-style:none;
  font:500 .78rem/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.mx-u-lines li{display:inline-flex;align-items:center;gap:9px}
.mx-u-lines li::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.mx-u-ask{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:14px;color:var(--ink);font-weight:600;text-decoration:none;
  border-bottom:1px solid var(--line)}
.mx-u-pics{display:none}
@media (min-width:900px){
  .mx-u-pics{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:14px;padding:18px;
    background:var(--paper-2);border:1px solid var(--line);border-radius:calc(var(--radius) + 8px)}
  .mx-u-pics img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:var(--radius);background:#fff}
  .mx-u-pics img:first-child{grid-row:span 2;align-self:center}
}
.mx-sec--ulric .mx-req-eyebrow{margin:0}

.mx-door--ulric{position:relative;background:var(--paper-2)}
.mx-door--ulric .mx-door-name{display:flex;align-items:center;gap:14px}
.mx-door--ulric .mx-door-name::before{content:"";width:34px;height:7px;border-radius:4px;background:var(--accent);flex:none}
.mx-door-line{max-width:30em;color:var(--ink);font-size:1rem;line-height:1.5}
.mx-door--ulric .mx-door-meta{font:500 .74rem/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase}

/* ======================= Oregon Healing ======================= */
.mx-sec--oregon-healing,.mx-door--oregon-healing{
  --oh-page:#FAFAF8;--oh-dawn:#F7EFDF;--oh-paper:#E6F5EC;--oh-sand-2:#ECE3D4;--oh-ink:#0E2A1B;--oh-deep:#123C27;
  --oh-pill:#14532D;--oh-moss:#1C6B3C;--oh-brand:#3D8850;--oh-sage:#A8DEB5;--oh-body:#4A5568;--oh-muted:#5B6E66;
  --oh-line:rgba(14,42,27,.16);--oh-r:16px;--oh-display:"Golos Text","Inter",system-ui,sans-serif;
  --oh-raise:0 1px 0 rgba(0,0,0,.06),0 8px 16px -10px rgba(14,42,27,.45)}
.mx-sec--oregon-healing{color:var(--oh-ink)}
.mx-oh-hero{padding:clamp(36px,7vh,80px) 0 clamp(30px,5vh,56px);background:linear-gradient(180deg,var(--oh-dawn),var(--oh-page))}
.mx-oh-grid{display:grid;gap:18px;align-items:center}
@media (min-width:900px){.mx-oh-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(36px,5vw,80px)}}
.mx-oh-crumb{margin:0 0 14px;font:600 .82rem/1.3 var(--oh-display);color:var(--oh-moss)}
.mx-oh-hero h1{margin:0 0 18px;font:800 clamp(2.4rem,7vw,5.2rem)/.98 var(--oh-display);letter-spacing:-.035em;color:var(--oh-ink);max-width:9em}
.mx-oh-hero h1 b{font-weight:800;color:var(--oh-brand)}
.mx-oh-lede{margin:0;max-width:32em;font-size:1.05rem;line-height:1.6;color:var(--oh-body)}
.mx-oh-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.mx-oh-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 20px;border:1px solid transparent;
  border-radius:999px;font:600 15px/1.2 var(--body);text-decoration:none;white-space:nowrap;transition:background-color .18s,border-color .18s}
.mx-oh-pill--primary{background:var(--oh-pill);color:#fff;box-shadow:var(--oh-raise)}
.mx-oh-pill--ghost{border-color:var(--oh-line);color:var(--oh-ink);background:transparent}
@media (hover:hover){.mx-oh-pill--primary:hover{background:var(--oh-moss)}.mx-oh-pill--ghost:hover{border-color:var(--oh-ink)}}
.mx-oh-pill:focus-visible{outline:2px solid var(--oh-brand);outline-offset:3px}
.mx-oh-art .al-fig{max-width:300px}
@media (min-width:900px){.mx-oh-art .al-fig{max-width:520px}}

/* the section's own list, chips and request block in its greens */
.mx-sec--oregon-healing .mx-chip{border-color:var(--oh-line);color:var(--oh-ink);font-family:var(--body)}
.mx-sec--oregon-healing .mx-chip[aria-current]{background:var(--oh-pill);border-color:var(--oh-pill);color:#fff}
@media (hover:hover){.mx-sec--oregon-healing .mx-chip:hover{border-color:var(--oh-pill)}}
.mx-sec--oregon-healing .mx-chip:focus-visible{outline-color:var(--oh-brand)}
.mx-sec--oregon-healing .mx-card-title{font:700 1.08rem/1.2 var(--oh-display);letter-spacing:-.012em;color:var(--oh-ink)}
.mx-sec--oregon-healing .mx-card-pic{border-radius:var(--oh-r)}
.mx-sec--oregon-healing .mx-total{color:var(--oh-muted)}
.mx-sec--oregon-healing .mx-req{background:var(--oh-paper)}
.mx-sec--oregon-healing .mx-req-copy h2{font:800 clamp(2rem,4.5vw,3.6rem)/1.02 var(--oh-display);letter-spacing:-.03em;color:var(--oh-ink)}
.mx-sec--oregon-healing .mx-req-eyebrow{margin:0;font:600 .82rem/1.3 var(--oh-display);letter-spacing:0;text-transform:none;color:var(--oh-moss)}
.mx-sec--oregon-healing .mx-req-eyebrow::before{background:var(--oh-brand);width:22px;height:5px}
.mx-sec--oregon-healing .mx-req-lede,.mx-sec--oregon-healing .mx-req-opt{color:var(--oh-body)}
.mx-sec--oregon-healing .mx-req-asks li{border-color:var(--oh-line)}
.mx-sec--oregon-healing .mx-req-form{background:#fff;border-color:var(--oh-line);border-radius:var(--oh-r)}
.mx-sec--oregon-healing .mx-req-form input,.mx-sec--oregon-healing .mx-req-form select,.mx-sec--oregon-healing .mx-req-form textarea{border-color:var(--oh-line);border-radius:12px}
.mx-sec--oregon-healing .mx-req-form :is(input,select,textarea):focus{outline-color:var(--oh-brand)}
.mx-sec--oregon-healing .mx-req-send{background:var(--oh-pill);box-shadow:var(--oh-raise)}
.mx-sec--oregon-healing .mx-req-send:focus-visible{outline-color:var(--oh-brand)}
/* the request figure is a desktop ornament: on a phone it would push the form a screen down */
.mx-sec--oregon-healing .mx-req .al-fig{display:none}
@media (min-width:900px){.mx-sec--oregon-healing .mx-req .al-fig{display:block;max-width:340px;margin:26px 0 0}}

.mx-door--oregon-healing{background:var(--oh-paper);border-color:var(--oh-line);border-radius:var(--oh-r);color:var(--oh-ink);position:relative;overflow:hidden}
.mx-door--oregon-healing .mx-door-name{font:800 clamp(1.9rem,4.4vw,2.8rem)/1 var(--oh-display);letter-spacing:-.035em}
.mx-door--oregon-healing .mx-door-line{color:var(--oh-body)}
.mx-door--oregon-healing .mx-door-meta{color:var(--oh-moss);font-family:var(--oh-display);font-weight:600}
.mx-door--oregon-healing .mx-door-go{color:var(--oh-pill)}
.mx-door--oregon-healing .mx-door-pics img{border-radius:12px}
.mx-door--oregon-healing:focus-visible{outline-color:var(--oh-brand)}

/* ---------- Oregon Healing's isometric figures (from its figures.css) ---------- */
@property --p{syntax:"<number>";inherits:true;initial-value:1}
.al-fig{display:block;width:100%;max-width:560px;margin-inline:auto;pointer-events:none}
.al-fig__svg{display:block;width:100%;height:auto;overflow:visible}
.al-fig path,.al-fig ellipse{vector-effect:non-scaling-stroke}
.al-fig .iso-line{fill:none;stroke:rgba(14,42,27,.26);stroke-width:1px;stroke-linecap:round;stroke-linejoin:round}
.al-fig .iso-line[data-tone="hi"]{stroke:rgba(14,42,27,.55)}
.al-fig .iso-line[data-tone="mid"]{stroke:rgba(14,42,27,.32)}
.al-fig .iso-line[data-tone="lo"]{stroke:rgba(14,42,27,.24)}
.al-fig .iso-line[data-tone="faint"]{stroke:rgba(14,42,27,.14)}
.al-fig .iso-line[data-tone="lit"]{stroke:#14532D}
.al-fig .tint{fill:rgba(61,136,80,.12);stroke:none}
.al-fig .mv{
  --t:clamp(0,(var(--p,1) - var(--a,0)) / (var(--b,1) - var(--a,0)),1);
  --e:calc(var(--t) * var(--t) * (3 - 2 * var(--t)));
  transform:translate(calc((1 - var(--e)) * var(--dx,0) * 1px),calc((1 - var(--e)) * var(--dy,0) * 1px))}
.al-fig .mv.fade{opacity:calc(var(--e) * 1.6)}
.al-fig .mv .draw,.al-fig .draw.mv{stroke-dasharray:1 2;stroke-dashoffset:calc(1 - var(--e))}
.al-fig .mv.lamp-on{opacity:var(--e);transform:none}
/* played once by merch-sections.js: waiting = the empty start, playing = draws to the finished pose */
.al-fig.is-waiting{--p:0}
.al-fig.is-playing{animation:mx-fig-draw 2.6s cubic-bezier(.2,0,0,1) both}
@keyframes mx-fig-draw{from{--p:0}to{--p:1}}
@media (prefers-reduced-motion:reduce){
  .al-fig .mv{transform:none;opacity:1}
  .al-fig .mv .draw{stroke-dashoffset:0}
  .al-fig.is-playing{animation:none}
}
