/* =========================================================
   SANTA'S WISHLIST: GIFT GUIDE SKIN
   The Holiday 2026 "Santa's Gift Guide" campaign design system
   (v0.1), laid over base-web-style.css and wishlist.css (his
   ask, 2026-11-19: "use the base as the main source components
   ... and then use this as the skin").

   Base still supplies every component: the card, the option
   rows, the inputs, the buttons, the ball card. This sheet only
   re-dresses them for the campaign: the pine ground, colour,
   type, the keyline frame, gold buttons, and the snow
   (js/snow.js draws the flakes; this styles them).

   Everything is scoped to .gg-skin (on <main>), so taking that
   class off puts the page back to plain base.

   Tokens: its own --gg-*. The one base token it sets is
   --spi-accent, which base keeps for exactly this ("a skin maps
   this onto its brand color"): it drives base's focus rings and
   accents. No other --spi-* token is touched.
   ========================================================= */

/* The campaign's display font, from the Santa Book art (his file,
   2026-11-19). It lives in ../fonts/ next to this sheet; on the live
   site it goes up to the CDN beside the skin, in a fonts/ folder.
   LICENCE: the font file says "freeware and can be used freely for
   any noncommercial purpose" (designer unknown). Storm needs to
   clear that before it goes on stormbowling.com. */
@font-face {
  font-family: 'Santas Sleigh Full';
  src: url("../fonts/santas-sleigh-full.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Montserrat, the text font, from this folder rather than Google Fonts
   (audit F-10, 2026-11-24): Google's own variable file for Latin text,
   one file for every weight the skin uses (400 to 800), so no stylesheet
   or connection to Google holds up the first paint. SIL Open Font License. */
@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

.gg-skin {
  /* Palette, from the design system */
  --gg-pine: #133835;         /* pine-900: the ground */
  --gg-pine-frost: #20514C;   /* pine-700: snowflakes on pine */
  --gg-teal: #008377;         /* teal-600: eyebrows and accents on light */
  --gg-teal-ink: #007B70;     /* the letter's teal words on its paper: 4.83:1 (teal-600 is 4.36, under AA for 17px text; audit F-09, 2026-11-24) */
  --gg-gold: #ECBD61;         /* gold-400: the primary button, highlights */
  --gg-gold-hover: #F5D48F;
  --gg-cranberry: #BD2C34;    /* cranberry-600 */
  --gg-snow: #FFFFFF;
  --gg-mist-text: #B9CFCB;    /* quiet text on pine */
  --gg-paper: #FBF7F0;        /* the letter's paper */
  --gg-ink-soft: #3D5A56;     /* second text on light grounds */
  --gg-ink-muted: #4A6662;    /* labels on light grounds */
  --gg-rule-on-paper: rgba(19, 56, 53, 0.14);
  --gg-strip: rgba(19, 56, 53, 0.06);   /* the poster's spec strip */
  --gg-meter-off: #E3E1DA;    /* an unlit meter segment on paper */
  /* js/letter.js reads these when it draws the poster, so the page
     and the downloaded picture use the same colours. */

  /* The artwork's display face (preloaded in index.html, so it's in
     before the titles paint) and the text face. */
  --gg-font-display: 'Santas Sleigh Full', serif;
  --gg-font-text: 'Montserrat', system-ui, sans-serif;

  /* Text on the ground it sits on. Pine here; the light ball
     card, the letter paper and a picked option row switch these. */
  --gg-text: var(--gg-snow);
  --gg-text-2: #D9E6E3;
  --gg-muted: var(--gg-mist-text);
  --gg-eyebrow: var(--gg-gold);
  --gg-link: var(--gg-gold);
  --gg-line: rgba(255, 255, 255, 0.3);
  --spi-accent: var(--gg-gold);

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--gg-pine);
  color: var(--gg-text);
  font-family: var(--gg-font-text);
  overflow-x: clip;
}

/* On the stand-alone prototype the skin's <main> is the whole
   page, so the page behind it is pine too (no white flash when
   a phone over-scrolls). Inside the store's page the <main> isn't
   a child of <body>, and this doesn't apply. */
body:has(> .gg-skin) {
  background: #133835;
}

/* ---------------------------------------------------------
   Type: Santa's Sleigh titles, Montserrat everything else
--------------------------------------------------------- */
.gg-skin .spi-h1,
.gg-skin .spi-h2 {
  font-family: var(--gg-font-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--gg-text);
}

/* Santa's Sleigh has tall capitals and a very small lowercase, so
   it's set about a third bigger than a regular display face to read
   at the same size. */
.gg-skin .spi-h1 {
  font-size: clamp(56px, 12vw, 116px);
  line-height: 1;
}

.gg-skin .spi-h2 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.1;
}

/* Product and shop names: the design system's product-name style */
.gg-skin .spi-h3 {
  font-family: var(--gg-font-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gg-text);
}

.gg-skin .spi-body {
  font-family: var(--gg-font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gg-text-2);
}

.gg-skin .spi-meta {
  color: var(--gg-muted);
}

/* Field and group labels: the quiet caps label */
.gg-skin .spi-eyebrow {
  font-family: var(--gg-font-text);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gg-muted);
}

/* Eyebrows: teal on the light card */
.gg-skin .mm-ball-meta {
  letter-spacing: 0.18em;
  color: var(--gg-eyebrow);
}

.gg-skin a:not(.btn) {
  color: var(--gg-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gg-skin a:not(.btn):hover {
  color: var(--gg-gold-hover);
}

/* ---------------------------------------------------------
   The page title, centred, with the 4-point sparkles the
   design system scatters around display titles
--------------------------------------------------------- */
.gg-skin .spi-section-header {
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.gg-skin .spi-section-header .spi-h1 {
  position: relative;
}

.gg-skin .spi-section-header .spi-h1::before,
.gg-skin .spi-section-header .spi-h1::after {
  content: "";
  position: absolute;
  background: var(--gg-snow);
  -webkit-mask: url("../assets/sparkle.svg") center / contain no-repeat;
  mask: url("../assets/sparkle.svg") center / contain no-repeat;
  animation: gg-twinkle 2.6s ease-in-out infinite alternate;
}

.gg-skin .spi-section-header .spi-h1::before {
  width: 0.42em;
  height: 0.42em;
  left: -0.42em;
  top: -0.2em;
}

.gg-skin .spi-section-header .spi-h1::after {
  width: 0.26em;
  height: 0.26em;
  right: -0.3em;
  bottom: 0.05em;
  animation-delay: -1.3s;
}

@keyframes gg-twinkle {
  from { opacity: 0.45; scale: 0.7; }
  to   { opacity: 1;    scale: 1; }
}

/* ---------------------------------------------------------
   After the first step the page title steps down, so the
   question sits higher (B6). The step's own title (h2) is
   the big one there.
--------------------------------------------------------- */
.gg-skin[data-step]:not([data-step="start"]) .spi-h1 {
  font-size: clamp(40px, 7vw, 64px);
}

.gg-skin[data-step]:not([data-step="start"]) .spi-section-header {
  margin-bottom: 24px;
}

/* The progress dots, in gold */
.gg-skin .mm-progress {
  color: var(--gg-gold);
}

/* The first step's question titles: the second one is the
   product-name size, so the page has one display title. */
.gg-skin .mm-optional {
  color: var(--gg-muted);
}

/* ---------------------------------------------------------
   The little letter on the first step (B1): the paper, the
   airmail edge, a stamp, teal script, ruled lines, and the
   ball as a teal dot.
--------------------------------------------------------- */
.gg-skin .mm-mini-letter {
  border-radius: 6px;
  background: var(--gg-paper);
  box-shadow: 0 10px 24px rgba(17, 20, 20, 0.35);
}

.gg-skin .mm-mini-letter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(-55deg,
    var(--gg-cranberry) 0 8px, transparent 8px 13px,
    var(--gg-teal) 13px 21px, transparent 21px 26px,
    var(--gg-gold) 26px 34px, transparent 34px 39px);
}

.gg-skin .mm-mini-stamp {
  background: var(--gg-teal);
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: -3px;
}

.gg-skin .mm-mini-greeting,
.gg-skin .mm-mini-signoff {
  font-family: var(--gg-font-display);
  color: var(--gg-teal);
}

.gg-skin .mm-mini-line {
  background: var(--gg-rule-on-paper);
}

.gg-skin .mm-mini-ball {
  background: radial-gradient(circle at 35% 30%, var(--gg-gold-hover), var(--gg-teal) 55%, var(--gg-pine) 100%);
}

.gg-skin .mm-hero-lead {
  color: var(--gg-text);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Option rows (base .layout-step): the category-tab look.
   Outlined at rest, solid white once picked.
--------------------------------------------------------- */
.gg-skin .layout-step {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  background: transparent;
  color: var(--gg-text);
}

.gg-skin .layout-step:hover {
  border-color: var(--gg-snow);
}

.gg-skin .layout-step.active {
  --gg-text: var(--gg-pine);
  --gg-muted: var(--gg-ink-soft);
  border-color: var(--gg-snow);
  background: var(--gg-snow);
}

.gg-skin .mm-option-label {
  font-weight: 700;
}

.gg-skin .mm-option input[type="radio"] {
  accent-color: var(--gg-pine);
}

/* ---------------------------------------------------------
   Inputs (base .spi-input): white fields on pine. 16px text
   so phones don't zoom in when a field is tapped.
--------------------------------------------------------- */
.gg-skin .spi-input {
  min-height: 48px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  background: var(--gg-snow);
  font-family: var(--gg-font-text);
  font-size: 16px;
  color: var(--gg-pine);
}

.gg-skin .spi-input::placeholder {
  color: var(--gg-ink-muted);
}

.gg-skin .spi-input:hover,
.gg-skin .spi-input:focus-visible {
  border-color: var(--gg-gold);
}

.gg-skin .spi-input[aria-invalid="true"] {
  border-color: var(--gg-cranberry);
}

/* The age question's two lists, and the news box, on pine */
.gg-skin select.spi-input {
  cursor: pointer;
}

.gg-skin .mm-check {
  color: var(--gg-text-2);
}

.gg-skin .mm-check input {
  accent-color: var(--gg-gold);
}

.gg-skin .mm-young {
  color: var(--gg-text);
  font-weight: 600;
}

.gg-skin .mm-field-error {
  color: #FFE3E4;
  font-weight: 700;
}

/* ---------------------------------------------------------
   Buttons (base .btn): gold is the one primary per view,
   white outline is secondary.
   The !important flags match base's own: base shrinks every
   .btn under 1024px with !important, and .btn.default carries
   it too, so these only apply at all with the same flag.
--------------------------------------------------------- */
.gg-skin .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 28px !important;
  font-family: var(--gg-font-text);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.gg-skin .btn:not(.default) {
  border: 2px solid var(--gg-snow);
  background: transparent;
  color: var(--gg-snow);
}

.gg-skin .btn:not(.default):hover {
  background: var(--gg-snow);
  color: var(--gg-pine);
}

.gg-skin .btn.default {
  background-color: var(--gg-gold) !important;
  color: var(--gg-pine) !important;
  font-weight: 800 !important;
}

.gg-skin .btn.default:hover {
  background-color: var(--gg-gold-hover) !important;
  color: var(--gg-pine) !important;
}

/* ---------------------------------------------------------
   The ball card (base .spi-card-rec) stays a light card: it
   carries the reaction data and the category colours, which
   are drawn for a light ground. The design system floats
   products with a soft natural shadow, so it gets one.
--------------------------------------------------------- */
.gg-skin .spi-card-rec {
  --gg-text: var(--gg-pine);
  --gg-text-2: var(--gg-ink-soft);
  --gg-muted: var(--gg-ink-muted);
  --gg-eyebrow: var(--gg-teal);
  --gg-link: var(--gg-teal);
  --gg-line: #E3E8E7;
  --spi-accent: var(--gg-teal);
  border: 0;
  border-radius: 12px;
  color: var(--gg-text);
  box-shadow: 0 18px 40px rgba(17, 20, 20, 0.35);
}

/* ---------------------------------------------------------
   The letter to Santa (letter.js): paper with airmail edging
   (cranberry, teal, gold) and a perforated Storm stamp, after
   Chewy Claus's letter. Light ground, so the text switches.
   The ball card sits inside it, a white card on the paper.
--------------------------------------------------------- */
.gg-skin .mm-letter-paper {
  --gg-text: var(--gg-pine);
  --gg-text-2: var(--gg-ink-soft);
  --gg-muted: var(--gg-ink-muted);
  --gg-eyebrow: var(--gg-teal);
  --gg-link: var(--gg-teal);
  --gg-line: var(--gg-rule-on-paper);
  --spi-accent: var(--gg-teal);
  overflow: hidden;
  border-radius: 12px;
  background: var(--gg-paper);
  color: var(--gg-pine);
  box-shadow: 0 18px 40px rgba(17, 20, 20, 0.35);
}

.gg-skin .mm-letter-paper::before,
.gg-skin .mm-letter-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(-55deg,
    var(--gg-cranberry) 0 16px, transparent 16px 26px,
    var(--gg-teal) 26px 42px, transparent 42px 52px,
    var(--gg-gold) 52px 68px, transparent 68px 78px);
}

.gg-skin .mm-letter-paper::before { top: 0; }
.gg-skin .mm-letter-paper::after { bottom: 0; }

/* Perforations: a ring of holes round a solid middle */
.gg-skin .mm-letter-stamp {
  rotate: 4deg;
  background: radial-gradient(circle, transparent 2.5px, var(--gg-teal) 3px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 2px 3px rgba(17, 20, 20, 0.18));
}

.gg-skin .mm-letter-stamp::before,
.gg-skin .mm-letter-stamp::after {
  content: "";
  position: absolute;
}

.gg-skin .mm-letter-stamp::before {
  inset: 5px;
  background: var(--gg-teal);
  outline: 1.5px solid rgba(255, 255, 255, 0.7);
  outline-offset: -6px;
}

.gg-skin .mm-letter-stamp::after {
  inset: 16px;
  background: var(--gg-snow);
  -webkit-mask: url("../assets/flake-2.svg") center / contain no-repeat;
  mask: url("../assets/flake-2.svg") center / contain no-repeat;
}

.gg-skin .mm-letter-greeting {
  font-family: var(--gg-font-display);
  font-size: clamp(46px, 7vw, 62px);
  line-height: 1.1;
  color: var(--gg-teal-ink);
}

.gg-skin .mm-letter-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--gg-pine);
}

.gg-skin .mm-letter-text strong {
  font-weight: 700;
  color: var(--gg-teal-ink);
}

.gg-skin .mm-letter-wish {
  font-size: 18px;
}

.gg-skin .mm-letter-signoff {
  font-family: var(--gg-font-display);
  font-size: 38px;
  line-height: 1.15;
  color: var(--gg-teal-ink);
}

.gg-skin .mm-letter-signoff span {
  font-size: clamp(36px, 11vw, 54px);
}

/* The ball card on the paper: white, with a lighter shadow */
.gg-skin .mm-letter .spi-card-rec {
  box-shadow: 0 8px 22px rgba(17, 20, 20, 0.12);
}

/* In the letter the category colours step back (B4): the chip
   is neutral and the meters are the campaign teal, so the
   letter keeps to the campaign's palette. */
.gg-skin .mm-letter .mm-ball[data-category] {
  --mm-cat: var(--gg-teal);
  --mm-cat-tint: var(--gg-meter-off);
}

.gg-skin .mm-letter .mm-ball[data-category] .mm-cat-chip {
  color: var(--gg-pine);
}

/* The specs toggle: base's accordion, in the text face */
.gg-skin .mm-specs summary {
  padding: 14px 0;
  font-family: var(--gg-font-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gg-pine);
}

.gg-skin .mm-specs summary:hover {
  color: var(--gg-teal);
}

.gg-skin .mm-specs details {
  border-top: 1px solid var(--gg-line);
  border-bottom: 0;
}

.gg-skin .mm-specs .spi-accordion-body {
  padding: 0 0 4px;
}

/* Write your letter, on pine */
.gg-skin .mm-sign .spi-h3 {
  font-family: var(--gg-font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.1;
}

/* After the letter: a note if sharing fell back to downloading, and
   the quiet Change my wish / Start over, gold text on pine. */
.gg-skin .mm-letter-note,
.gg-skin .mm-download-hint {
  color: var(--gg-text-2);
}

.gg-skin .mm-text-button {
  font-family: var(--gg-font-text);
  font-size: 15px;
  font-weight: 600;
  color: var(--gg-gold);
}

.gg-skin .mm-text-button:hover {
  color: var(--gg-gold-hover);
}

/* ---------------------------------------------------------
   Snow (js/snow.js). A layer behind the content, clipped to
   <main>. Its sky is one screen tall and sticks while the page
   scrolls, so the flakes are always falling where you are.
   Each flake is one of his nine snowflake drawings, used as a
   mask and painted the design system's frost tone.
--------------------------------------------------------- */
.gg-snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}

.gg-snow-sky {
  position: sticky;
  top: 0;
  height: 100vh;
}

.gg-flake {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  opacity: var(--o);
  animation: gg-fall var(--fall) linear var(--delay) infinite;
}

.gg-flake > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gg-pine-frost);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation:
    gg-sway var(--sway-time) ease-in-out var(--delay) infinite alternate,
    gg-spin var(--spin-time) linear var(--delay) infinite;
}

.gg-flake[data-shape="1"] > span { -webkit-mask-image: url("../assets/flake-1.svg"); mask-image: url("../assets/flake-1.svg"); }
.gg-flake[data-shape="2"] > span { -webkit-mask-image: url("../assets/flake-2.svg"); mask-image: url("../assets/flake-2.svg"); }
.gg-flake[data-shape="3"] > span { -webkit-mask-image: url("../assets/flake-3.svg"); mask-image: url("../assets/flake-3.svg"); }
.gg-flake[data-shape="4"] > span { -webkit-mask-image: url("../assets/flake-4.svg"); mask-image: url("../assets/flake-4.svg"); }
.gg-flake[data-shape="5"] > span { -webkit-mask-image: url("../assets/flake-5.svg"); mask-image: url("../assets/flake-5.svg"); }
.gg-flake[data-shape="6"] > span { -webkit-mask-image: url("../assets/flake-6.svg"); mask-image: url("../assets/flake-6.svg"); }
.gg-flake[data-shape="7"] > span { -webkit-mask-image: url("../assets/flake-7.svg"); mask-image: url("../assets/flake-7.svg"); }
.gg-flake[data-shape="8"] > span { -webkit-mask-image: url("../assets/flake-8.svg"); mask-image: url("../assets/flake-8.svg"); }
.gg-flake[data-shape="9"] > span { -webkit-mask-image: url("../assets/flake-9.svg"); mask-image: url("../assets/flake-9.svg"); }

@keyframes gg-fall {
  from { transform: translate3d(0, calc(-1 * var(--size) - 20px), 0); }
  to   { transform: translate3d(var(--drift), calc(100vh + 20px), 0); }
}

@keyframes gg-sway {
  from { translate: calc(-1 * var(--sway)) 0; }
  to   { translate: var(--sway) 0; }
}

@keyframes gg-spin {
  to { rotate: var(--spin); }
}

/* Settled (js/snow.js adds the class after each short flurry, and
   from the start on a device set to reduce motion): the flakes stop
   where they are, which leaves the printed guide's still pattern,
   and the sparkles stop too. */
.gg-skin.is-snow-still .gg-flake,
.gg-skin.is-snow-still .gg-flake > span,
.gg-skin.is-snow-still .spi-section-header .spi-h1::before,
.gg-skin.is-snow-still .spi-section-header .spi-h1::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .gg-skin .spi-section-header .spi-h1::before,
  .gg-skin .spi-section-header .spi-h1::after {
    animation-play-state: paused;
  }
}

/* ---------------------------------------------------------
   Short screens (a phone on its side): a smaller title and
   less space above it, so the question shows without scrolling
   past the title first.
--------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
  .gg-skin {
    padding-top: 24px;
  }

  .gg-skin .spi-h1 {
    font-size: 64px;
  }

  .gg-skin .spi-section-header {
    margin-bottom: 20px;
  }
}

/* ---------------------------------------------------------
   Phones
--------------------------------------------------------- */
@media (max-width: 600px) {
  .gg-skin .spi-section-header {
    margin-bottom: 28px;
  }

  /* "Dear Santa," on one line beside the smaller stamp */
  .gg-skin .mm-letter-greeting {
    font-size: 40px;
  }

  .gg-skin .mm-letter-stamp::after {
    inset: 12px;
  }
}

/* =========================================================
   INSIDE THE STORE'S CMS (2026-12-01)

   On stormbowling.com these pages sit inside the store theme
   (themes.commercebuild.com/static/Storm-Bowling/style/bundle.min.css),
   which styles bare tags across the whole site:

     h1, h2        font-family: Oswald !important; font-style: italic
     h3 to h6      font-family: Roboto, sans-serif !important
     a, i, p, span font-family: Roboto; font-size: 16px;
                   line-height: 22px; font-weight: 400
     a             text-decoration: none !important
     .std p, .std dl  margin: 1em 0; padding: 0
     .std dd       padding: 0 0 0 1.5em
     legend        display: none
     input[type=text]  border-radius: 0
     button, input, select, textarea  font-weight: 300
     body          font-size: 20px

   So the titles turned italic Oswald, the text Roboto, the
   signature's line squashed onto "From,", the name field lost its
   pill, "YOUR BIRTHDAY" vanished and the text links lost their
   underline. This section puts the campaign's own type and spacing
   back, inside the campaign's pages only (.gg-skin). It changes
   nothing outside the CMS: measured against the store's real
   stylesheets, page by page, until only the CMS column's width
   differs. Nothing here touches base or redefines a base token.
   ========================================================= */

/* The body text size the pages are built on (the theme makes it 20px) */
.gg-skin {
  font-size: 16px;
}

/* Text tags take their type from their own classes and parents again.
   :where() keeps this at a bare tag's weight, so it outranks the
   theme's rule (it comes later) and loses to every class rule here. */
:where(.gg-skin) :is(a, i, p, span) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

/* Form fields: the browser's own type unless a class sets it (the
   theme thins them to 300), and the "YOUR BIRTHDAY" label shows */
:where(.gg-skin) :is(button, input, select, textarea) {
  font-family: revert;
  font-style: revert;
  font-weight: revert;
}

:where(.gg-skin) legend {
  display: revert;
}

/* The name and "who it's for" fields keep base's pill (the theme
   squares every text input) */
.gg-skin input.spi-input {
  border-radius: var(--spi-radius-pill);
}

/* Titles: the theme forces its fonts with !important, so only
   !important puts ours back. h1 and h2 are Santa's Sleigh; h3 and
   below are Montserrat, except "Write your letter". */
.gg-skin :is(h1, h2, h3, h4, h5, h6) {
  font-style: normal;
}

.gg-skin :is(h1, h2) {
  font-family: var(--gg-font-display) !important;
}

.gg-skin :is(h3, h4, h5, h6) {
  font-family: var(--gg-font-text) !important;
}

.gg-skin .mm-sign .spi-h3 {
  font-family: var(--gg-font-display) !important;
}

/* The text links that are underlined here (the theme strips every
   underline with !important); cards, the nav and buttons stay plain */
.gg-skin :is(a:not([class]), a.mm-ball-link, a.mm-text-button, a.lp-back):not(.lp-nav a) {
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
}

/* The Wishlist's paragraphs and lists keep their own spacing (the
   theme's .std p / .std dl / .std dd add 1em margins and an indent).
   The Wishlist only: the campaign pages' own rules already outrank
   .std p. (The under-13 line keeps its 1em, as it has outside the CMS.) */
.std :where(.gg-skin:not(.gg-landing)) :is(p.spi-meta, p.spi-body:not(.mm-young), p.mm-progress, p.mm-letter-text, p.mm-letter-signoff, dl.mm-metrics, dl.mm-spec-row) {
  margin: 0;
}

.std :where(.gg-skin:not(.gg-landing)) dd {
  padding: 0;
}

.std :where(.gg-skin:not(.gg-landing)) p.mm-letter-greeting {
  margin: 0;
  padding: 0 84px 0 0;
}

@media (max-width: 600px) {
  .std :where(.gg-skin:not(.gg-landing)) p.mm-letter-greeting {
    padding-right: 50px;
  }
}
