/* ===== Advent With Friends · site styles =====
   Palette: cream paper, pine green, holly red, advent gold. */
:root {
  --paper: #faf4e8;
  --paper-2: #fffdf7;
  --ink: #35442e;
  --ink-strong: #24301f;
  --pine: #2e5b3e;
  --pine-deep: #1f4029;
  --holly: #c3272f;
  --holly-dark: #9d1f26;
  --gold: #d9a13c;
  --line: #dfe4d3;
  --muted: #6f7d66;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 380px at 85% -120px, rgba(195, 39, 47, .07), transparent 70%),
    radial-gradient(900px 380px at 10% -120px, rgba(46, 91, 62, .08), transparent 70%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--pine); }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--pine-deep);
  box-shadow: 0 2px 14px rgba(31, 64, 41, .25);
}
.top-wrap {
  max-width: 980px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fdf6e3; text-decoration: none; font-weight: 800; font-size: 1.06rem; letter-spacing: .01em;
  white-space: nowrap;
}
.brand-thin { font-weight: 500; opacity: .85; }
.brand-art {
  width: 26px; height: 26px; border-radius: 7px; background: var(--holly);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px;
}
.brand-art i { background: #fdf6e3; border-radius: 2.5px; }
.brand-art i:nth-child(2), .brand-art i:nth-child(3) { opacity: .75; }
.top-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top-nav a {
  color: #e8efdd; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 7px 11px; border-radius: 999px;
}
.top-nav a:hover { background: rgba(253, 246, 227, .14); color: #fff; }

/* ---------- hero ---------- */
main { display: block; }
.hero {
  max-width: 980px; margin: 0 auto; padding: 26px 18px 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.kicker {
  margin: 0 0 12px; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--holly);
}
.stage {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3; min-height: 540px;
  background: var(--paper-2);
  border: 2px solid var(--pine);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(36, 48, 31, .16);
}
.fs-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 5;
  appearance: none; border: 1.5px solid var(--line); border-radius: 999px;
  background: rgba(255, 253, 247, .92); color: var(--ink);
  font: inherit; font-size: .82rem; font-weight: 700; padding: 7px 13px; cursor: pointer;
}
.loader {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  background: var(--paper-2); z-index: 2; text-align: center;
}
.loader-doors { display: grid; grid-template-columns: repeat(3, 34px); gap: 8px; }
.loader-doors i {
  width: 34px; height: 42px; border-radius: 8px; background: var(--pine); opacity: .25;
  animation: doorwave 1.2s ease-in-out infinite;
}
.loader-doors i:nth-child(2) { animation-delay: .1s; }
.loader-doors i:nth-child(3) { animation-delay: .2s; }
.loader-doors i:nth-child(4) { animation-delay: .3s; }
.loader-doors i:nth-child(5) { animation-delay: .4s; }
.loader-doors i:nth-child(6) { animation-delay: .5s; }
.loader-doors i:nth-child(7) { animation-delay: .6s; }
.loader-doors i:nth-child(8) { animation-delay: .7s; }
.loader-doors i:nth-child(9) { animation-delay: .8s; }
@keyframes doorwave { 0%, 100% { opacity: .2; transform: none; } 50% { opacity: .85; transform: translateY(-4px); } }
.loader-text { margin: 0; font-weight: 700; color: var(--muted); }
.dots i { animation: dotblink 1.2s infinite; font-style: normal; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotblink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.actionbar {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 12px 4px 0;
}
.like-btn {
  appearance: none; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2);
  font: inherit; font-weight: 700; padding: 8px 16px; cursor: pointer; color: var(--holly);
}
.like-btn[aria-pressed="true"] { background: #fbe9e9; border-color: var(--holly); }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: .88rem; font-weight: 700; color: var(--muted); }
.share-btn {
  appearance: none; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2);
  font: inherit; font-size: .88rem; font-weight: 700; padding: 7px 14px; cursor: pointer; color: var(--ink);
}
.share-btn:hover { border-color: var(--pine); }
.share-msg { font-size: .85rem; color: var(--pine); font-weight: 700; }

.hero h1 {
  margin: 22px 0 10px; font-size: clamp(1.9rem, 5.5vw, 3.1rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--ink-strong); max-width: 21ch;
}
.tagline { margin: 0 auto; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.hero-cta { margin: 16px 0 6px; }
.cta-btn {
  display: inline-block; background: var(--holly); color: #fff; text-decoration: none;
  font-weight: 800; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--holly-dark);
  box-shadow: 0 6px 18px rgba(195, 39, 47, .3);
}
.cta-btn:hover { background: var(--holly-dark); }
.cta-quiet { color: var(--muted); font-size: .92rem; }

/* ---------- article ---------- */
.guide { max-width: 820px; margin: 26px auto 0; padding: 0 18px 30px; }
.sec { margin: 0 0 34px; }
.sec h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.8rem); letter-spacing: -.015em; color: var(--ink-strong);
  margin: 0 0 12px; padding-top: 8px;
}
.sec h3 { font-size: 1.08rem; color: var(--ink-strong); margin: 18px 0 4px; }
.sec p { margin: 8px 0; }
.sec ul, .sec ol { margin: 8px 0 8px 22px; padding: 0; }
.sec li { margin: 5px 0; }
.sec a { color: var(--pine); font-weight: 600; }
.prose h2 { font-size: 1.35rem; }
.steps { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 56px; position: relative; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 12px; width: 30px; height: 30px;
  background: var(--pine); color: #fdf6e3; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800;
}
.steps b { display: block; margin-bottom: 2px; }
.callout {
  background: #f2f7ee; border: 1.5px solid #d5e3cb; border-radius: var(--radius);
  padding: 14px 18px; margin: 14px 0;
}
.callout b { color: var(--pine-deep); }

/* ---------- faq ---------- */
.sec-faq h3 { margin-top: 20px; }

/* ---------- more cards ---------- */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.more-card {
  display: grid; gap: 4px; background: var(--paper-2); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink);
}
.more-card b { color: var(--pine-deep); font-size: 1rem; }
.more-card span { color: var(--muted); font-size: .92rem; }
.more-card:hover { border-color: var(--pine); box-shadow: 0 6px 16px rgba(36, 48, 31, .1); }

/* ---------- comments ---------- */
.comments-block {
  max-width: 820px; margin: 10px auto 30px; padding: 22px 18px;
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 22px;
}
.comments-block h2 { margin: 0 0 6px; font-size: 1.35rem; color: var(--ink-strong); }
.comments-intro { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.cform { display: grid; gap: 8px; }
.cform-row { display: grid; gap: 8px; }
.cform input, .cform textarea {
  font: inherit; padding: 10px 13px; border-radius: 13px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.cform button {
  appearance: none; justify-self: start; font: inherit; font-weight: 800;
  background: var(--pine); color: #fdf6e3; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer;
}
.cmsg { margin: 0; font-size: .9rem; color: var(--pine); min-height: 1em; }
.clist { margin-top: 16px; display: grid; gap: 10px; }
.citem { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; }
.citem-reply { margin-left: 22px; }
.chead { margin: 0 0 3px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.chead b { font-size: .95rem; }
.ctime, .cto { font-size: .8rem; color: var(--muted); }
.cowner { font-size: .72rem; font-weight: 800; color: var(--holly); border: 1px solid var(--holly); padding: 1px 7px; border-radius: 999px; }
.ctext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cacts { margin: 6px 0 0; }
.clink { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--pine); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- final cta ---------- */
.final-cta {
  max-width: 820px; margin: 0 auto 40px; padding: 30px 22px; text-align: center;
  background: var(--pine-deep); color: #fdf6e3; border-radius: 26px;
}
.final-cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); color: #fdf6e3; }
.final-cta p { margin: 6px 0; }
.final-actions { margin: 16px 0 8px; }
.final-quiet { font-size: .88rem; opacity: .8; }

/* ---------- page template ---------- */
.page-hero {
  max-width: 980px; margin: 0 auto; padding: 30px 18px 4px; text-align: center;
}
.page-hero h1 {
  margin: 4px 0 10px; font-size: clamp(1.8rem, 5vw, 2.7rem); letter-spacing: -.02em;
  color: var(--ink-strong); line-height: 1.15;
}
.page-hero .tagline { margin: 0 auto; }
.sec-try { display: grid; }
.try-box {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  background: #f2f7ee; border: 1.5px solid #d5e3cb; border-radius: 22px; padding: 22px 20px;
}
.try-box b { font-size: 1.15rem; color: var(--pine-deep); }
.try-box span { color: var(--muted); max-width: 52ch; }
.try-box .cta-btn { margin-top: 6px; }

/* ---------- footer ---------- */
.foot { background: var(--pine-deep); color: #dfe8d2; margin-top: 26px; }
.foot-inner { max-width: 980px; margin: 0 auto; padding: 26px 18px 30px; }
.foot-brand { margin: 0 0 6px; font-weight: 800; font-size: 1.05rem; color: #fdf6e3; }
.foot-line { margin: 0 0 14px; font-size: .93rem; max-width: 60ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; }
.foot-nav a { color: #dfe8d2; text-decoration: none; font-size: .9rem; font-weight: 600; }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-copy { margin: 0; font-size: .84rem; opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .top-wrap { padding: 9px 12px; }
  .top-nav a { padding: 6px 9px; font-size: .86rem; }
  .brand { font-size: .98rem; }
  .stage { aspect-ratio: auto; height: min(78vh, 700px); min-height: 520px; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .brand-thin { display: none; }
  .hero h1 { font-size: 1.75rem; }
}
