/* Mountain Standard's lettering, given room. Every class starts msl-. Live text in the real font files. */
@font-face { font-family: "MTN Color"; src: url(../../fonts/MTNStandardColor-Amber.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MTN Color"; src: url(fonts/MTNStandardColor-AmberBold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "MTN Simple"; src: url(../../fonts/MTNStandardSimple-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MTN Simple"; src: url(../../fonts/MTNStandardSimple-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
/* the colour font carries its shadow colours as palettes: amber, deep amber, charcoal, cream, white, black */
@font-palette-values --msl-amber { font-family: "MTN Color"; base-palette: 0; }
@font-palette-values --msl-charcoal { font-family: "MTN Color"; base-palette: 2; }
@font-palette-values --msl-cream { font-family: "MTN Color"; base-palette: 3; }

.msl { --msl-c: #f2e8d6; --msl-a: #d2814a; --msl-rule: rgba(242, 232, 214, .26); color: var(--msl-c); padding: clamp(40px, 6vw, 96px) var(--pad) clamp(56px, 8vw, 120px); display: grid; gap: clamp(72px, 10vw, 150px); }
.msl-h { margin: 0 0 clamp(24px, 3.4vw, 48px); font-family: "MTN Display", var(--disp); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3.9rem); line-height: 1.04; letter-spacing: .005em; }

/* ---------- 1. one letter, up close ---------- */
.msl-fig { position: relative; display: grid; gap: 28px; }
.msl-g { position: relative; justify-self: center; line-height: 0; }
.msl-glyph { display: block; font-family: "MTN Color", "MTN Display", serif; font-palette: --msl-amber; font-size: min(74vw, 58svh, 560px); line-height: .8; padding: .06em .04em .1em; color: var(--msl-c); }
.msl-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--msl-a); color: #1f1d1b; font: 700 13px/26px var(--text); text-align: center; font-style: normal; }
.msl-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; align-content: center; }
.msl-labels li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: start; }
.msl-labels i { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--msl-a); color: #1f1d1b; font: 700 13px/26px var(--text); text-align: center; font-style: normal; }
.msl-labels h4 { margin: 0; font-family: "MTN Display", var(--disp); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.1; justify-self: start; }
.msl-labels p { margin: 0; grid-column: 2; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.42; color: rgba(242, 232, 214, .84); max-width: 22em; }
.msl-lines { display: none; }
@media (min-width: 900px) {
  .msl-fig { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
  .msl-l { justify-items: end; }
  .msl-l li { grid-template-columns: minmax(0, 1fr); text-align: right; }
  .msl-l h4 { justify-self: end; }
  .msl-l p { grid-column: 1; }
  .msl-labels i { display: none; }
  .msl-r li { grid-template-columns: minmax(0, 1fr); }
  .msl-r p { grid-column: 1; }
  .msl-labels { gap: clamp(48px, 12svh, 120px); }
  .msl-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  .msl-lines path { fill: none; stroke: var(--msl-a); stroke-width: 1.25; }
  .msl-dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; font-size: 0; }
}

/* ---------- 2. every letter and figure ---------- */
.msl-all { display: grid; gap: clamp(28px, 4vw, 52px); }
.msl-all .msl-h { margin-bottom: 0; }
.msl-set { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--msl-rule); }
.msl-tag { margin: 0; font-size: clamp(1rem, 1.15vw, 1.15rem); color: rgba(242, 232, 214, .84); }
.msl-row { margin: 0; display: flex; flex-wrap: wrap; gap: .1em .34em; font-family: "MTN Color", "MTN Display", serif; font-palette: --msl-amber; font-size: clamp(2.1rem, 5.4vw, 5.2rem); line-height: 1.16; }
.msl-row span { display: inline-block; min-width: .62em; text-align: center; }

/* ---------- 3. what it can do ---------- */
.msl-panel { --g: #1f1d1b; --c: #f2e8d6; background: var(--g); color: var(--c); padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px); display: grid; gap: clamp(6px, 1vw, 14px); box-shadow: inset 0 0 0 1px var(--msl-rule); transition: background .35s ease, color .35s ease; overflow: hidden; }
.msl-sample { margin: 0; font-family: "MTN Color", "MTN Display", serif; font-size: clamp(2.2rem, 8.6vw, 8.4rem); line-height: 1.08; overflow-wrap: anywhere; }
.msl-s2 { font-size: clamp(1.3rem, 3.4vw, 3.2rem); }
.msl-sample.is-plain { font-family: "MTN Simple", "MTN Display", serif; }
.msl-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 18px; }
.msl-grp { display: flex; flex-wrap: wrap; gap: 8px; }
.msl-sw { appearance: none; border: 0; width: 64px; height: 64px; background: var(--g); color: var(--c); font-family: "MTN Color", "MTN Display", serif; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--msl-rule); }
.msl-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #1f1d1b, 0 0 0 4px var(--msl-c); }
.msl-b { appearance: none; border: 0; min-height: 48px; padding: 0 18px; background: transparent; color: var(--msl-c); font: 600 16px/1 var(--text); cursor: pointer; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--msl-rule); }
.msl-b[aria-pressed="true"] { background: var(--msl-c); color: #1f1d1b; box-shadow: none; }
.msl-sw:focus-visible, .msl-b:focus-visible { outline: 2px solid var(--msl-c); outline-offset: 3px; }
.msl-note { margin: 18px 0 0; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.45; color: rgba(242, 232, 214, .84); max-width: 34em; }
@media (prefers-reduced-motion: reduce) { .msl-panel { transition: none; } }

/* ---------- the name and the G in the lettering's two layers (Brian's own two-tone method, Mountain Standard/font/web/mountain-standard.css):
   the letters over the shadow, each its own colour. The shadow moves through every colour the lettering comes in (Brian, 21:35):
   amber, deep amber, charcoal, black, white, cream. It steps through them calmly, no glow (Brian chose "Calm steps" over a white-glow version). Reduced motion: amber, still. ---------- */
@font-face { font-family: "MTN Body"; src: url(fonts/MTNStandardLayer-Body.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "MTN Body"; src: url(fonts/MTNStandardLayer-BodyBold.woff2) format("woff2"); font-weight: 700; font-display: block; }
@font-face { font-family: "MTN Shadow"; src: url(fonts/MTNStandardLayer-Shadow.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "MTN Shadow"; src: url(fonts/MTNStandardLayer-ShadowBold.woff2) format("woff2"); font-weight: 700; font-display: block; }
.sbx-tt { display: grid; font-kerning: normal; font-synthesis: none; }
.sbx-tt > span { grid-area: 1 / 1; font: inherit; letter-spacing: inherit; line-height: inherit; margin: 0; }
.sbx-tt-b { font-family: "MTN Body", "MTN Display", serif !important; position: relative; }
.sbx-tt-s { font-family: "MTN Shadow", "MTN Display", serif !important; color: #d2814a; animation: msl-cycle 30s linear infinite; }
@keyframes msl-cycle {
  0%, 12% { color: #d2814a; }      /* amber */
  17%, 29% { color: #b85929; }     /* deep amber */
  34%, 44% { color: #1f1d1b; }     /* charcoal */
  48%, 56% { color: #000; }        /* black */
  62%, 74% { color: #fff; }        /* white */
  80%, 92% { color: #f2e8d6; }     /* cream */
  100% { color: #d2814a; }
}
@media (prefers-reduced-motion: reduce) { .sbx-tt-s { animation: none !important; color: #d2814a; } }
.sbx.is-still .sbx-tt-s { animation: none !important; }
/* the name on the first screen, written out: capitals */
.sbx[data-case="mountain-standard"] .sbx-name { text-transform: uppercase; font-size: clamp(2.3rem, 11.6vw, 9.4rem); line-height: 1; letter-spacing: .01em; }
.msl-glyph.sbx-tt { color: var(--msl-c); }

/* ================= 2026-11-12: what changed since 2012 (points and upgrades), and the shadow in motion ================= */
.msl-upg { display: grid; gap: clamp(28px, 4vw, 52px); }
.msl-upg .msl-h { margin-bottom: 0; }
.msl-pts { display: grid; gap: clamp(24px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--msl-rule); }
.msl-pts[hidden] { display: none; }
.msl-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 48px); }
.msl-pt { margin: 0; display: grid; gap: 12px; justify-items: start; }
.msl-pt svg { width: 100%; max-height: min(52svh, 420px); overflow: visible; }
.msl-pt path { fill: rgba(242, 232, 214, .1); stroke: rgba(242, 232, 214, .5); stroke-width: 2; vector-effect: non-scaling-stroke; }
.msl-pt circle { fill: var(--msl-a); }
.msl-pt[data-k="now"] circle { fill: var(--msl-c); }
.msl-pt figcaption { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: clamp(1rem, 1.15vw, 1.15rem); color: rgba(242, 232, 214, .84); }
.msl-n { font-family: "MTN Simple", "MTN Display", serif; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1; color: var(--msl-c); }
.msl-pside { display: grid; gap: 14px; align-content: start; }
.msl-tot { margin: 0; font-family: "MTN Display", var(--disp); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.9rem); line-height: 1.2; max-width: 20em; }
.msl-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.msl-pk { appearance: none; border: 0; width: 44px; height: 44px; background: transparent; color: var(--msl-c); font-family: "MTN Simple", "MTN Display", serif; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--msl-rule); }
.msl-pk[aria-pressed="true"] { background: var(--msl-c); color: #1f1d1b; box-shadow: none; }
.msl-pk:focus-visible { outline: 2px solid var(--msl-c); outline-offset: 3px; }
@media (min-width: 900px) { .msl-pts { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.msl-ups { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(28px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.msl-ups li { padding: 18px 0 22px; border-top: 1px solid var(--msl-rule); display: grid; gap: 6px; align-content: start; }
.msl-ups h4, .msl-mo-i h4 { margin: 0; font-family: "MTN Display", var(--disp); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.15; }
.msl-ups p, .msl-mo-i > p { margin: 0; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.42; color: rgba(242, 232, 214, .84); max-width: 30em; }

.msl-mos { display: grid; gap: clamp(40px, 6vw, 88px); }
.msl-mo-i { display: grid; gap: 10px; }
.msl-mo-p { background: #1f1d1b; color: #f2e8d6; box-shadow: inset 0 0 0 1px var(--msl-rule); padding: clamp(28px, 6vw, 88px) clamp(18px, 4vw, 64px); margin-bottom: 8px; overflow: hidden; touch-action: pan-y; }
.msl-mo-p.is-cream { background: #f2e8d6; color: #1f1d1b; box-shadow: none; }
.msl-mo-w { margin: 0; font-size: clamp(1.5rem, 7.2vw, 7rem); line-height: 1.08; font-weight: 400; white-space: nowrap; }
.msl-mo-w .sbx-tt-s { animation: none; color: #d2814a; will-change: transform; }
/* (b) a colour passes through: the shadow layer is painted by a moving band, the letters stay as they are */
.is-pass .sbx-tt-s { color: transparent; background: linear-gradient(100deg, #d2814a 0 38%, #1f1d1b 46% 54%, #d2814a 62% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.msl-mo-i.is-on .is-pass .sbx-tt-s { animation: msl-pass 4.6s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes msl-pass { 0% { background-position: 100% 0; } 70%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
  .msl-mo-i.is-on .is-pass .sbx-tt-s { animation: none; background: none; color: #d2814a; }
  .msl-mo-w .sbx-tt-s { transform: none !important; opacity: 1 !important; }
}

/* ---- 2026-11-12, later: six shadow motions, each with a Play button ---- */
.msl-mos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(36px, 4.5vw, 64px) clamp(24px, 3vw, 48px); }
.msl-mo-p { min-height: clamp(150px, 20vw, 280px); display: grid; align-items: center; margin-bottom: 4px; padding: clamp(22px, 3.4vw, 48px) clamp(16px, 2.6vw, 40px); }
.msl-mo-p.is-nightp { background: #0c0b0a; }
.msl-mo-w { font-size: clamp(1.5rem, 3.5vw, 3.9rem); }
@media (max-width: 919px) { .msl-mo-w { font-size: clamp(1.5rem, 7.2vw, 4.6rem); } }
.msl-mo-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; align-items: start; }
.msl-mo-t > div { display: grid; gap: 6px; }
.msl-mo-t p { margin: 0; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.42; color: rgba(242, 232, 214, .84); max-width: 30em; }
.msl-play { appearance: none; border: 0; min-height: 48px; padding: 0 18px 0 14px; display: inline-flex; align-items: center; gap: 10px; background: var(--msl-c); color: #1f1d1b; font: 600 16px/1 var(--text); cursor: pointer; border-radius: 2px; white-space: nowrap; }
.msl-play i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.msl-mo-i.is-playing .msl-play { background: transparent; color: var(--msl-c); box-shadow: inset 0 0 0 1px var(--msl-rule); }
/* while it plays the mark is a pause mark, two bars, in the space the triangle had */
.msl-mo-i.is-playing .msl-play i { width: 11px; height: 14px; box-sizing: border-box; border-width: 0 4px; border-color: currentColor; }
.msl-play:focus-visible { outline: 2px solid var(--msl-c); outline-offset: 3px; }
/* the passing colour is driven by the script now, not by a looping animation */
.msl-mo-i.is-on .is-pass .sbx-tt-s, .is-pass .sbx-tt-s { animation: none; }
.is-pass .sbx-tt-s { background-position: 0% 0; }
.is-long .sbx-tt-s { color: #b85929; }
/* letter by letter */
.msl-ltrs { display: flex; flex-wrap: nowrap; }
.msl-lt { display: inline-grid; }
.msl-lt > span { will-change: transform, opacity; }
.msl-sp { display: inline-block; width: .34em; }
.is-night .sbx-tt-b { color: #f2e8d6; }
.is-night .sbx-tt-s { color: #f2e8d6; }
@media (prefers-reduced-motion: reduce) {
  .msl-play { display: none; }
  .is-pass .sbx-tt-s { background: none; color: #d2814a; }
}

/* ---- each motion word fits its own box: the word is as wide as its letters, plus room in ems for the furthest its shadow travels
   (the long late-day shadow reaches .2em left and .16em down; the cast and the light move .06em). The script sets the size. ---- */
.msl-mo-p { container-type: normal; }
.msl-mo-w { width: max-content; max-width: none; justify-self: start; padding: .1em .1em .12em; box-sizing: content-box; }
.msl-mo-w.is-long { padding-left: .28em; padding-bottom: .24em; }
.msl-mo-w.is-set { padding-top: .34em; }
/* never more than three boxes across, however wide the screen */
.msl-mos { grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 440px), 30%), 1fr)); }

/* every box is the same shape, so the boxes in a row are the same height and their captions and buttons line up (build PM, 2026-11-12) */
.msl-mo-p { aspect-ratio: 2 / 1; min-height: 0; height: auto; box-sizing: border-box; align-content: center; }
/* a card taller than its content keeps the extra room under its caption, never between the box and the caption */
.msl-mo-i { align-content: start; grid-template-rows: auto auto; }
