/* Mugwhistle — cozy coloring books. Palette pulled from the Snowy Day Comforts cover. */
:root {
  --frost: #DCEEF8;      /* cover sky */
  --snow: #FFFFFF;
  --cocoa: #4A2A1C;      /* title outline brown */
  --cocoa-soft: #6E4B3B;
  --teal: #1C8A84;       /* banner teal */
  --teal-deep: #136661;
  --ember: #E8792B;      /* title orange, used only for the buy action */
  --ember-deep: #C95F14;
  --line: #1B1B1B;
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frost);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 1.1875rem;          /* 19px: large-print friendly */
  line-height: 1.6;
}
/* quiet snowfall texture: a few large soft dots, like the cover background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 82% 9%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 64% 72%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 27% 86%, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 93% 54%, #fff 0 5px, transparent 6px);
  background-size: 520px 520px;
  opacity: .75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: .18em; }
a:hover { color: var(--cocoa); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-head { padding-block: 1.25rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand img { width: 200px; }
.site-nav { display: flex; gap: 1.5rem; font-family: var(--display); font-weight: 500; font-size: 1.0625rem; }
.site-nav a { color: var(--cocoa); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal-deep); text-decoration: underline; }

/* ---------- the brand device: cover-style sticker lettering ---------- */
.sticker-type {
  font-family: var(--display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .005em;
  color: var(--snow);
  -webkit-text-stroke: .14em var(--cocoa);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--cocoa), 0 .1em .02em rgba(74,42,28,.35);
  margin: 0;
}
.sticker-type .warm { color: var(--ember); }

/* sticker frame: thick white edge + soft drop, like the cover stickers */
.sticker {
  background: var(--snow);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 2px 0 rgba(74,42,28,.08), 0 14px 28px -14px rgba(74,42,28,.45);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1.1875rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 3px solid var(--cocoa);
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-buy { background: var(--ember); color: var(--snow); box-shadow: 0 5px 0 var(--cocoa); }
.btn-buy:hover { color: var(--snow); background: var(--ember-deep); transform: translateY(1px); box-shadow: 0 4px 0 var(--cocoa); }
.btn-buy:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cocoa); }
.btn-buy[aria-disabled="true"] { background: #F3C8A6; color: var(--cocoa); cursor: default; transform: none; box-shadow: 0 5px 0 var(--cocoa); }
.btn-quiet { background: var(--snow); color: var(--cocoa); box-shadow: 0 4px 0 var(--cocoa); }
.btn-quiet:hover { color: var(--cocoa); transform: translateY(1px); box-shadow: 0 3px 0 var(--cocoa); }

/* ---------- sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  line-height: 1.1; margin: 0 0 .75rem; color: var(--cocoa);
}
.lede { max-width: var(--measure); margin: 0 0 1.75rem; color: var(--cocoa-soft); }

/* ---------- footer ---------- */
.site-foot { padding-block: 2.5rem 3rem; border-top: 3px dotted rgba(74,42,28,.25); margin-top: 2rem; font-size: 1rem; color: var(--cocoa-soft); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-foot img { width: 150px; }
.site-foot p { margin: 0; max-width: 48ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
