/* /puzzles page. Mobile first, large readable text. */
.pz-hero { background: var(--slate); color: #fff; text-align: center; padding: 40px 20px 32px; }
.pz-hero h1 { font-family: 'Playfair Display', serif; font-size: 2rem; line-height: 1.2; margin: 0 0 10px; }
.pz-pub { margin: 0; font-size: 1.15rem; color: #F2E6CC; }
.pz-wrap { max-width: 960px; margin: 0 auto; padding: 24px 18px 56px; font-size: 1.2rem; line-height: 1.65; }
.pz-wrap h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--slate-dark); margin: 36px 0 8px; }
.pz-intro { font-size: 1.3rem; }
.pz-sub, .pz-small { color: #4a4a4a; }
.pz-small { font-size: 1.05rem; }
.pz-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
.pz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.pz-cover { background: var(--pz-color); color: #fff; min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; border-bottom: 5px solid var(--wheat); }
.pz-cover-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.pz-cover-by { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 14px; }
.pz-cover-link { display: block; border-bottom: 5px solid var(--wheat); line-height: 0; background: #f0ebe3; }
.pz-cover-link:focus-visible { outline: 3px solid var(--wheat-dark, var(--wheat)); outline-offset: 2px; }
.pz-cover-photo { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 1000 / 1293; object-fit: contain; background: #f0ebe3; }
.pz-info { padding: 16px 18px 20px; }
.pz-info h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; line-height: 1.3; margin: 0 0 6px; color: var(--slate-dark); }
.pz-subtitle { margin: 0 0 6px; font-size: 1.05rem; }
.pz-theme { margin: 0 0 12px; color: #4a4a4a; font-size: 1.05rem; }
.pz-soon { display: inline-block; padding: 6px 14px; border: 2px solid var(--slate); border-radius: 999px; font-weight: 600; color: var(--slate-dark); font-size: 1.05rem; }
.pz-btn { display: inline-block; background: var(--slate); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1.15rem; padding: 14px 22px; border-radius: 6px; min-height: 48px; }
.pz-btn:hover { background: var(--slate-dark); }
.pz-supplies { margin-top: 8px; }
.pz-supply { border-top: 5px solid var(--wheat); }
.pz-supply .pz-info { padding-top: 20px; }
.pz-disclosure { margin: 20px 0 0; }
@media (min-width: 600px) {
  .pz-hero h1 { font-size: 2.6rem; }
  .pz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pz-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Festive holiday theme for /puzzles — restrained, upscale; plain = no .festive */

/* ---- Mode toggle (always visible, high contrast) ---- */
.pz-mode-bar {
  background: #273547;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-bottom: 2px solid #C9A96E;
}
.pz-mode-btn {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 14px 26px;
  min-height: 52px;
  min-width: min(100%, 300px);
  border: 2px solid #F2F0EC;
  border-radius: 6px;
  background: #F2F0EC;
  color: #1a1a1a;
  cursor: pointer;
}
.pz-mode-btn:hover,
.pz-mode-btn:focus-visible {
  background: #fff;
  color: #1a1a1a;
}
.pz-mode-btn:focus-visible {
  outline: 3px solid #C9A96E;
  outline-offset: 3px;
}
body.festive .pz-mode-bar {
  background: #1B4332;
  border-bottom-color: #C9A227;
}
body.festive .pz-mode-btn {
  background: #FFF8E7;
  color: #1B4332;
  border-color: #C9A227;
}
body.festive .pz-mode-btn:hover,
body.festive .pz-mode-btn:focus-visible {
  background: #fff;
}

/* ---- Restrained festive palette ---- */
body.festive {
  --festive-green: #1B4332;
  --festive-green-mid: #2D6A4F;
  --festive-cranberry: #8B2E3B;
  --festive-cranberry-dark: #6E2430;
  --festive-gold: #C9A227;
  --festive-gold-soft: #E6D5A0;
  --festive-cream: #FAF6EE;
  --festive-cream-deep: #F3EBDC;
  --bg: var(--festive-cream);
  --surface: #FFFFFF;
  --slate: var(--festive-green);
  --slate-dark: #10281E;
  --wheat: var(--festive-gold);
  --wheat-dark: #A8861C;
  --text: #1A1A1A;
  --border: #D9CFB8;
  background-color: var(--festive-cream);
  /* Soft parchment only — no patterned wallpaper */
  background-image: none;
  background-attachment: scroll;
}

body.festive .site-header {
  background: var(--festive-green);
  border-bottom: 2px solid var(--festive-gold);
}
body.festive .site-header a,
body.festive .nav-logo,
body.festive .nav-links a {
  color: #FAF6EE;
}
body.festive .nav-logo span {
  color: var(--festive-gold-soft);
}
body.festive .nav-links a[aria-current="page"] {
  border-bottom-color: var(--festive-gold);
  color: #fff;
}
body.festive .site-header :focus-visible {
  outline-color: var(--festive-gold);
}

/* Hero: deep green, thin gold rule, one subtle accent line — no busy snow */
body.festive .pz-hero {
  position: relative;
  background: var(--festive-green);
  color: #FAF6EE;
  padding: 44px 20px 36px;
  overflow: hidden;
  border-bottom: 4px solid var(--festive-cranberry);
}
body.festive .pz-hero::after {
  /* thin gold accent line under title area */
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--festive-gold);
  position: relative;
  z-index: 1;
}
body.festive .pz-hero h1 {
  position: relative;
  z-index: 1;
  color: #FAF6EE;
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
body.festive .pz-pub {
  position: relative;
  z-index: 1;
  color: var(--festive-gold-soft);
  font-size: 1.15rem;
  font-style: normal;
  margin-bottom: 0;
}

/* Minimal top garland: single elegant stripe (not candy-stripe busy) */
.pz-festive-deco { display: none; }
body.festive .pz-festive-deco {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    var(--festive-cranberry) 0%,
    var(--festive-gold) 35%,
    var(--festive-gold-soft) 50%,
    var(--festive-gold) 65%,
    var(--festive-cranberry) 100%
  );
}
/* Hide emoji snowflakes if present — we keep decoration CSS-only and minimal */
body.festive .pz-snowflake,
body.festive .pz-garland { display: none !important; }

body.festive .pz-wrap {
  font-size: 1.22rem;
  line-height: 1.7;
}
body.festive .pz-wrap h2 {
  color: var(--festive-green);
  font-style: normal;
  border-bottom: 2px solid var(--festive-gold);
  padding-bottom: 4px;
  display: inline-block;
}
body.festive .pz-intro {
  font-size: 1.32rem;
  background: var(--festive-cream-deep);
  border-left: 4px solid var(--festive-cranberry);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
}
body.festive .pz-sub,
body.festive .pz-small,
body.festive .pz-theme,
body.festive .pz-subtitle {
  color: #333;
  font-style: normal;
}

/* Cards: soft gold border, clean */
body.festive .pz-card {
  border: 1px solid var(--festive-gold);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.06);
  background: #fff;
}
body.festive .pz-cover {
  border-bottom: 4px solid var(--festive-gold);
}
body.festive .pz-info h3 {
  color: var(--festive-green);
  font-style: normal;
}
body.festive .pz-soon {
  border-color: var(--festive-green-mid);
  color: var(--festive-green);
  background: transparent;
}
body.festive .pz-btn {
  background: var(--festive-green);
  color: #FAF6EE !important;
  border: 2px solid var(--festive-green);
  font-style: normal;
  border-radius: 6px;
}
body.festive .pz-btn:hover {
  background: var(--festive-cranberry);
  border-color: var(--festive-cranberry);
}

/* Supplies: quiet cream panel, thin gold edge — no striped banner */
body.festive .pz-supplies {
  background: var(--festive-cream-deep);
  border: 1px solid var(--festive-gold);
  border-radius: 10px;
  padding: 8px 18px 22px;
  margin-top: 28px;
}
body.festive .pz-supplies::before { content: none; }
body.festive .pz-supply {
  border-top: 4px solid var(--festive-cranberry);
}
body.festive .pz-disclosure {
  color: #333;
}

body.festive footer {
  background: var(--festive-green);
  color: #FAF6EE;
  border-top: 3px solid var(--festive-gold);
}
body.festive footer a {
  color: var(--festive-gold-soft);
}
body.festive .footer-disclaimer {
  color: #E6D5A0;
}
body.festive .pz-hero :focus-visible,
body.festive footer :focus-visible {
  outline-color: var(--festive-gold);
}

@media (min-width: 600px) {
  body.festive .pz-hero h1 { font-size: 2.55rem; }
}

body.plain .pz-festive-deco { display: none !important; }

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