/* The Paw Pioneers Mailroom: each month overrides these variables from months.json */
:root{
  --outer:#E2EAEC; --paper:#EEF3F4; --ink:#1F2A44; --title:#1F2A44; --label:#1F2A44; --accent:#C08A5B;
  --soft:rgba(0,0,0,.08); --muted:rgba(0,0,0,.58);
  --script:"Pinyon Script", "Snell Roundhand", cursive;
  --mono:"Courier Prime", "Courier New", ui-monospace, monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; color:var(--ink); font-family:var(--mono); font-size:16.5px; line-height:1.6; background-color:var(--outer); min-height:100vh; padding:14px 10px 28px}
body.p-gingham{
  background-color:#F9D3DA;
  background-image:
    linear-gradient(90deg, rgba(236,140,165,.42) 50%, transparent 50%),
    linear-gradient(rgba(236,140,165,.42) 50%, transparent 50%);
  background-size:44px 44px;
}
body.p-snow{
  background-color:#E3EDF7;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(91,141,196,.55) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 45% 85%, #fff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 85% 15%, rgba(91,141,196,.35) 0 1.5px, transparent 2.5px);
  background-size:90px 90px, 130px 130px, 70px 70px, 110px 110px;
}
a{color:inherit}
.paper{
  max-width:600px; margin:0 auto; background-color:var(--paper); border-radius:6px;
  padding:26px 22px 34px; box-shadow:0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
  background-image:radial-gradient(rgba(0,0,0,.016) 1px, transparent 1px); background-size:3px 3px;
}
header.top{display:flex; align-items:flex-start; justify-content:space-between; gap:14px}
header.top .logo{width:118px; height:auto; display:block; margin-top:4px}
.stamp{width:172px; max-width:48%; height:auto; display:block}
.waves{width:110px; height:auto; color:var(--ink); opacity:.85; flex-shrink:0}
.titlerow{display:flex; align-items:flex-end; gap:6px; margin:26px 0 6px; flex-wrap:wrap}
h1{font-family:var(--script); font-weight:400; color:var(--title); font-size:clamp(44px,12.5vw,58px); line-height:1.1; margin:0}
.doodle{height:38px; width:auto; margin-bottom:14px}
.meta{font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 16px}
.lead{margin:0 0 24px}

/* Player */
.player{background:rgba(255,255,255,.5); border:1px solid var(--soft); border-radius:18px; padding:20px 18px 16px; box-shadow:0 6px 20px rgba(0,0,0,.05)}
.player-row{display:flex; align-items:center; gap:16px}
.play{width:74px; height:74px; border-radius:50%; border:none; background:var(--title); color:var(--paper); display:grid; place-items:center; cursor:pointer; flex-shrink:0; transition:transform .15s ease; box-shadow:0 6px 16px rgba(0,0,0,.18)}
.play:active{transform:scale(.96)}
.play:focus-visible,.skip:focus-visible,.seek:focus-visible,summary:focus-visible,.btn:focus-visible,.dl:focus-visible{outline:3px solid var(--accent); outline-offset:3px}
.play svg{width:30px; height:30px}
.play .i-pause{display:none}
.player.is-playing .play .i-play{display:none}
.player.is-playing .play .i-pause{display:block}
.ptitle{font-weight:700; margin:0; line-height:1.3}
.psub{margin:2px 0 0; font-size:14px; color:var(--muted)}
.seek{width:100%; margin:18px 0 4px; accent-color:var(--title); height:28px; cursor:pointer}
.times{display:flex; justify-content:space-between; font-size:13px; color:var(--muted)}
.controls{display:flex; justify-content:center; gap:12px; margin-top:10px}
.skip{font-family:var(--mono); font-size:14px; color:var(--ink); background:transparent; border:1px solid var(--soft); border-radius:999px; padding:10px 16px; min-height:44px; cursor:pointer}
.skip:hover{background:var(--soft)}
.hint{text-align:center; font-size:13px; color:var(--muted); margin:12px 0 0}
.dl-wrap{text-align:center; margin:10px 0 0}
.dl{display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--ink); text-decoration:underline; text-underline-offset:3px; padding:10px 6px; min-height:44px}
.dl svg{width:18px; height:18px}

/* Sections */
.card{border:1.5px solid var(--accent); border-radius:14px; padding:16px 16px 14px; margin:28px 0 0; background:rgba(255,255,255,.28)}
.label{font-size:13px; letter-spacing:.04em; color:var(--label); font-weight:700; margin:0 0 6px}
.card p{margin:0}
details{margin:28px 0 0; border-top:1px solid var(--soft); border-bottom:1px solid var(--soft)}
summary{cursor:pointer; list-style:none; padding:15px 0; font-weight:700; color:var(--label); display:flex; justify-content:space-between; align-items:center; min-height:44px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+"; font-size:22px; font-weight:400; color:var(--label)}
details[open] summary::after{content:"\2013"}
.transcript{padding:0 0 12px}
.transcript p{margin:0 0 14px}
.share{margin:32px 0 0}
.share h2{font-family:var(--script); font-weight:400; color:var(--title); font-size:38px; margin:0 0 6px; line-height:1.15}
.share p{margin:0 0 16px}
.btn{display:inline-block; text-decoration:none; background:var(--title); color:var(--paper); padding:13px 22px; border-radius:999px; font-weight:700; min-height:44px}
.btn:hover{opacity:.92}
hr.rule{border:none; border-top:1.5px solid var(--accent); margin:38px 0 22px}
footer .sign{margin:0 0 12px}
footer .flogo{width:104px; height:auto; display:block; margin:0 0 16px}
footer .tag{font-size:13px; color:var(--muted); margin:0}
.art{display:block; margin:22px auto -6px; width:100%; max-width:380px; height:auto}
.art.small{width:auto; max-width:none; height:34px; margin:18px 0 0 auto}

/* Coming soon / 404 */
.soon{text-align:center}
.soon .titlerow{justify-content:center}
.soon p{margin:0 auto 18px; max-width:420px}
.soon footer{text-align:center}
.soon footer .flogo{margin:0 auto 16px}
@media (min-width:640px){body{padding:36px 20px 48px} .paper{padding:40px 48px 44px}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- Cheerful layer ---------- */
body.p-autumn{
  background-color:#F7E3CF;
  background-image:
    radial-gradient(ellipse 7px 4px at 20% 25%, rgba(203,109,87,.55) 98%, transparent 100%),
    radial-gradient(ellipse 6px 3.5px at 75% 55%, rgba(224,164,88,.6) 98%, transparent 100%),
    radial-gradient(ellipse 5px 3px at 45% 85%, rgba(140,160,110,.5) 98%, transparent 100%),
    radial-gradient(circle at 85% 15%, rgba(203,109,87,.35) 0 2px, transparent 3px);
  background-size:120px 120px, 150px 150px, 100px 100px, 80px 80px;
}
body.p-bubbles{
  background-color:#DCE9EE;
  background-image:
    radial-gradient(circle at 25% 30%, transparent 0 5px, rgba(31,42,68,.18) 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at 70% 70%, transparent 0 3px, rgba(192,138,91,.35) 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.8) 0 2px, transparent 3px);
  background-size:110px 110px, 80px 80px, 60px 60px;
}
.hero{display:block; width:min(68%, 290px); height:auto; margin:4px auto 20px; filter:drop-shadow(0 8px 14px rgba(0,0,0,.12)); animation:bob 4.5s ease-in-out infinite; transform-origin:50% 90%}
.hero.wide{width:min(92%, 400px)}
@keyframes bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(-1.2deg)}}
.lead{font-size:17px}
.lead::before{content:""; display:inline-block; width:18px; height:18px; margin-right:8px; vertical-align:-3px; background:var(--title); -webkit-mask:var(--paw) center/contain no-repeat; mask:var(--paw) center/contain no-repeat}
:root{--paw:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='6' cy='9' rx='2.2' ry='2.8'/%3E%3Cellipse cx='10' cy='5.5' rx='2.2' ry='2.8'/%3E%3Cellipse cx='14.5' cy='5.5' rx='2.2' ry='2.8'/%3E%3Cellipse cx='18.5' cy='9' rx='2.2' ry='2.8'/%3E%3Cpath d='M12.2 11c-3.3 0-6.2 3.6-6.2 6.3 0 1.8 1.4 2.7 3 2.7 1.3 0 2.1-.7 3.2-.7s1.9.7 3.2.7c1.6 0 3-.9 3-2.7 0-2.7-2.9-6.3-6.2-6.3z'/%3E%3C/svg%3E")}
.player{border-top:4px solid var(--accent)}
.play{animation:pulse 2.6s ease-in-out infinite}
.player.is-playing .play{animation:none}
@keyframes pulse{0%,100%{box-shadow:0 6px 16px rgba(0,0,0,.18), 0 0 0 0 color-mix(in srgb, var(--title) 35%, transparent)}50%{box-shadow:0 6px 16px rgba(0,0,0,.18), 0 0 0 10px color-mix(in srgb, var(--title) 0%, transparent)}}
.card{background:color-mix(in srgb, var(--accent) 14%, transparent); border-style:dashed}
.label::before{content:""; display:inline-block; width:15px; height:15px; margin-right:6px; vertical-align:-2px; background:var(--label); -webkit-mask:var(--paw) center/contain no-repeat; mask:var(--paw) center/contain no-repeat}
.btn{transition:transform .15s ease, box-shadow .15s ease; box-shadow:0 4px 0 color-mix(in srgb, var(--title) 55%, #000)}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(2px); box-shadow:0 1px 0 color-mix(in srgb, var(--title) 55%, #000)}
hr.rule{border:none; height:22px; margin:34px 0 18px; background:var(--accent); opacity:.75;
  -webkit-mask:var(--paw) left center/22px 22px space; mask:var(--paw) left center/22px 22px space}
@media (prefers-reduced-motion:reduce){.hero,.play{animation:none}}

/* ---------- Envelope frames + smaller hero ---------- */
.paper{position:relative}
.hero{width:150px}
.hero.wide{width:min(70%, 240px)}
.deco{position:absolute; inset:0; pointer-events:none; z-index:0}
.deco img{position:absolute; height:auto}
.paper > *:not(.deco){position:relative; z-index:1}
/* October: airmail envelope stripes */
.paper.f-airmail{border:13px solid transparent; border-radius:0; background-clip:padding-box;
  border-image:repeating-linear-gradient(-45deg,#E7738A 0 13px,#FDF7EC 13px 22px,#4A64C8 22px 35px,#FDF7EC 35px 44px) 13}
/* November: hand drawn doodle frame */
.paper.f-doodle{padding-left:30px; padding-right:30px}
.paper.f-doodle .deco::before{content:""; position:absolute; inset:12px; border:1.8px solid var(--ink); opacity:.75;
  border-radius:22px 30px 24px 32px / 30px 22px 32px 24px}
@media (min-width:640px){.paper.f-doodle{padding:44px 56px 48px}}
.stamp.small{width:86px; max-width:30%}
