:root {
  --paper: #fcf0da;
  --cream: #fff8e9;
  --gold: #c18b42;
  --red: #aa2d20;
  --dark-red: #8c251b;
  --ink: #253f51;
  --blue: #315c78;
  --green: #274f43;
  --ice: #e4edf0;
  --border: #c9aa78;
  --grain: url("assets/paper-grain.png");
  --script: "Marck Script", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.5 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #185e84;
  outline-offset: 5px;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2, h3 { font-family: var(--serif); font-weight: 700; }
h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.98; letter-spacing: -0.034em; }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; }
[id] { scroll-margin-top: 1.25rem; }
.wrap { width: min(1120px, 100% - 4rem); margin-inline: auto; }
.section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 0 auto auto 1rem;
  padding: 0.7rem 1rem;
  transform: translateY(-120%);
  background: var(--cream);
}
.skip-link:focus { transform: translateY(0.5rem); }
.site-header {
  position: relative;
  z-index: 1;
  background: var(--grain), #fff3dc;
  border-bottom: 1px solid #c6a572;
}
.header-inner {
  width: min(1350px, 100% - 4rem);
  min-height: 65px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  font: 400 2.38rem/1 var(--script);
  color: #813a19;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { margin: -0.05em 0 0 0.05em; font: 1.02rem/1 var(--sans); transform: rotate(12deg); }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem clamp(1rem, 3vw, 2.65rem); }
.primary-nav a, .header-cta {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}
.primary-nav a:hover, .footer-links a:hover { color: var(--dark-red); text-decoration: underline; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #b85b45;
  border-radius: 4px;
  color: var(--dark-red);
  white-space: nowrap;
}
.header-cta:hover { background: #f1d7b8; }

.hero {
  position: relative;
  max-width: 1720px;
  margin-inline: auto;
}
.hero-art, .hero-art img { display: block; width: 100%; }
.hero-art img { aspect-ratio: 1671 / 941; object-fit: cover; }
.hero-copy h1, .hero-copy p, .hero-cta > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero .hero-cta {
  position: absolute;
  z-index: 2;
  inset: 80.98% auto auto 7.06%;
  width: 30.88%;
  height: 12.43%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: url("assets/hero-button.jpg") center / 100% 100% no-repeat;
  box-shadow: none;
  border-radius: 100vw;
}
.hero .hero-cta:hover { filter: brightness(1.06); }
.hero .hero-cta::before { content: none; }
.snowfall {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.snowflake {
  position: absolute;
  top: -16px;
  left: var(--start);
  height: calc(100% + 32px);
  width: var(--size);
  opacity: var(--opacity);
  animation: snowfall var(--duration) linear var(--delay) infinite;
}
.snowflake::before {
  content: "";
  display: block;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffdfa;
  box-shadow: 0 0 3px #33567390;
}
.snowflake:nth-child(4n)::before {
  content: "❄";
  width: auto;
  background: none;
  box-shadow: none;
  color: #fffdfa;
  font: 12px/1 var(--sans);
  text-shadow: 0 0 3px #335673a0;
}
.motion-toggle {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 1px solid #7c9cac;
  border-radius: 50%;
  background: #fff8e9ee;
  color: var(--blue);
  font: 1.1rem/1 var(--sans);
  cursor: pointer;
}
.motion-toggle:hover { background: #fff8e9; }
.motion-toggle:focus-visible { outline: 3px solid #185e84; outline-offset: 3px; }
.motion-toggle[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.motion-paused .snowfall { display: none; }
.motion-paused :is(.button, .header-cta) { animation: none; }

@keyframes snowfall {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--drift), 50%, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}
@keyframes button-pulse {
  0%, 60%, 100% { transform: scale(1); }
  30% { transform: scale(1.024); }
}
.button, .header-cta { animation: button-pulse 4s ease-in-out infinite; }
.header-cta { animation-delay: -1.8s; }
.button:is(:hover, :focus-visible), .header-cta:is(:hover, :focus-visible) { animation: none; }
.ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.7rem, 2.8vw, 2.25rem);
  min-height: 51px;
  padding: 0.55rem 1rem;
  color: #f9f0d8;
  background: var(--grain), var(--blue);
  border-top: 1px solid #203d51;
  border-bottom: 1px solid #203d51;
  box-shadow: inset 0 4px var(--blue), inset 0 5px #a2bbc28c, inset 0 -4px var(--blue), inset 0 -5px #a2bbc28c;
  font: 400 clamp(1.08rem, 2vw, 1.43rem)/1.15 var(--script);
  text-align: center;
}
.ribbon b { color: #d5e6e9; font: 400 0.9rem/1 var(--sans); }

.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55em;
  min-height: 54px;
  padding: 0.64rem 1.6rem 0.68rem;
  border: 1px solid #9b651f;
  border-radius: 2rem;
  background: var(--grain), var(--button-bg, var(--red));
  box-shadow: 0 2px 0 #8b5e295b, inset 0 0 0 2px #f3d5a0;
  color: var(--button-text, #fff9ed);
  text-align: center;
  text-decoration: none;
  font: 400 clamp(1.18rem, 2.4vw, 1.55rem)/1.05 var(--script);
  transition: background-color 160ms, box-shadow 160ms;
}
.button::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px dashed currentColor;
  opacity: 0.48;
}
.button:hover { background-color: var(--button-hover, #8f251c); box-shadow: 0 3px 0 #8b5e2970, inset 0 0 0 2px #f3d5a0; }
.button-red { --button-bg: #ab2d20; }
.button-green { --button-bg: var(--green); --button-hover: #1d4236; border-color: #214737; }
.button-cream { --button-bg: #fae5bd; --button-text: var(--dark-red); --button-hover: #f2d7a8; }
.button-gold { --button-bg: #f1cc80; --button-text: #672d14; --button-hover: #eec06a; }

.gift-section { background: linear-gradient(180deg, #fff8e680 0%, transparent 95%); }
.gift-layout, .skills-layout {
  display: grid;
  grid-template-columns: 0.98fr 1fr;
  gap: clamp(2rem, 7vw, 6.5rem);
  align-items: center;
}
.postcard {
  position: relative;
  padding: clamp(0.5rem, 1.4vw, 0.86rem);
  background: var(--grain), var(--cream);
  border: 1px solid #c69e62;
  box-shadow: 0 8px 20px #83521d21;
  transform: rotate(-2deg);
}
.postcard::before {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  border: 4px solid transparent;
  border-image: repeating-linear-gradient(128deg, #a73a2c 0 8px, #faedce 8px 16px, #3b6681 16px 24px, #faedce 24px 32px) 4;
}
.postcard img { width: 100%; border: 1px solid #d5b886; }
.script-note { font: 400 clamp(1.45rem, 3vw, 2rem)/1.1 var(--script); color: var(--dark-red); margin-bottom: 0.65rem; }
.gift-copy h2 { color: var(--dark-red); }
.gift-copy > p:not(.script-note), .skills-copy > p:not(.script-note), .participation-card p, .materials-card p { margin-top: 1rem; }
.gift-copy .button, .participation-card .button, .materials-card .button, .closing .button { margin-top: 1.35rem; }

.toys-section {
  border-block: 1px solid #99b2ba;
  background: var(--grain), radial-gradient(ellipse at top, #f0f7f7, #dae8ed);
}
.section-heading { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-heading p { margin-top: 0.7rem; }
.flourish { display: flex; justify-content: center; align-items: center; gap: 0.65rem; color: var(--blue); font-size: 1.2rem; margin-bottom: 0.55rem; }
.flourish span { width: 2.4rem; height: 1px; background: #b58a50; }
.toy-group + .toy-group { margin-top: clamp(2.4rem, 5.5vw, 4.5rem); }
.toy-group h3 {
  margin-bottom: 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #9eb4bd;
  color: var(--blue);
}
.toy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.65rem, 2.15vw, 1.7rem); }
.toy-card {
  display: flex;
  flex-direction: column;
  padding: clamp(0.33rem, 1vw, 0.65rem);
  border: 1px solid #c8a66f;
  border-radius: 0.28rem;
  box-shadow: 0 3px 12px #344c5b21;
  background: var(--grain), var(--cream);
}
.toy-card img {
  width: 100%;
  height: auto;
  border: 1px solid #caae83;
  border-radius: 0.14rem;
}
.toy-grid-portraits img {
  aspect-ratio: 5 / 6.3;
  object-fit: contain;
  background: #969297;
}
.toy-grid-square img { aspect-ratio: 1; object-fit: cover; }
.toy-card figcaption {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0.55rem 0.05rem 0.15rem;
  color: var(--dark-red);
  font: 400 clamp(1.12rem, 2.3vw, 1.85rem)/1.12 var(--script);
  text-align: center;
}
.section-action { margin-top: 1.95rem; text-align: center; }

.skills-layout { grid-template-columns: 0.7fr 1fr; }
.workshop-picture {
  width: min(100%, 372px);
  margin-inline: auto;
  padding: 0.6rem;
  border: 1px solid #b78a4e;
  border-radius: 50% 50% 6px 6px / 33% 33% 6px 6px;
  background: var(--grain), #fbe9c7;
  box-shadow: 0 0 0 4px #e7cca1, 0 0 0 5px #c2a778;
}
.workshop-picture img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: 50% 46%;
  border-radius: inherit;
}
.skills-list { margin-top: 1.5rem; }
.skills-list div {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.15rem;
  border-top: 1px solid #c9aa788c;
}
.skills-list div::before { position: absolute; left: 0.2rem; top: 0.97rem; content: "✦"; color: var(--red); }
.skills-list dt { font-weight: 700; }

.plans-section {
  padding-block: clamp(2.8rem, 6vw, 5rem);
  background: var(--grain), #2d514c;
  border-block: 1px solid #41664f;
}
.participation-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) 1fr;
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4rem);
  width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid #c48c3a;
  outline: 1px solid #d8bf8d;
  outline-offset: 5px;
  border-radius: 1rem 0.4rem;
  background: var(--grain), radial-gradient(ellipse at top, var(--cream), #f9e4bd);
}
.participation-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px dashed #a06b32;
  border-radius: inherit;
}
.participation-card h2 { color: var(--green); }
.stamp {
  justify-self: center;
  width: min(100%, 300px);
  mix-blend-mode: multiply;
  clip-path: polygon(0 19%, 10% 0, 100% 0, 100% 100%, 0 100%);
}

.steps-section { padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 1px solid #c19b63;
  padding-top: 1.35rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.15rem;
  aspect-ratio: 1;
  margin-bottom: 0.7rem;
  border: 1px solid #a9523e;
  border-radius: 50%;
  color: var(--dark-red);
  font: 400 1.3rem/1 var(--script);
}
.steps p { margin-top: 0.45rem; }

.materials-section { padding-top: 0; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.materials-card {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 5vw, 3.8rem);
  border: 1px solid #bc9257;
  border-radius: 0.45rem;
  background: var(--grain), #faeacb;
  box-shadow: inset 0 0 0 5px #faeacb, inset 0 0 0 6px #bd965c;
}
.materials-card h2 { font-size: clamp(2.4rem, 4.7vw, 3.75rem); }
.materials-card img { width: 100%; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 75% 71% at center, black 61%, transparent 98%); }

.faq-section { background: var(--grain), var(--ice); border-block: 1px solid #b0c4ca; }
.faq-wrap { width: min(800px, 100% - 4rem); }
.faq-list details { border-bottom: 1px solid #a2bac5; }
.faq-list details:first-child { border-top: 1px solid #a2bac5; }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0.15rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.05rem, 2.1vw, 1.24rem);
  font-weight: 650;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--dark-red); font-size: 1.45em; line-height: 1; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 2rem 1rem 0.15rem; }
.faq-list a { color: var(--dark-red); }

.closing { padding-block: clamp(2.4rem, 5vw, 4.4rem); }
.closing-inner { display: flex; justify-content: center; align-items: center; gap: clamp(1.5rem, 6vw, 4rem); }
.closing img { width: min(31%, 240px); mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 74% 77%, black 48%, transparent 100%); }
.closing h2 { color: var(--dark-red); }
.site-footer { padding-block: 1.45rem; border-top: 1px solid #ceb183; background: var(--grain), #f5e1bb; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0.35rem 1.35rem; flex-wrap: wrap; font-size: 0.9rem; }

@media (max-width: 860px) {
  .primary-nav a { font-size: 0.91rem; }
  .header-inner { width: calc(100% - 2rem); gap: 0.75rem; }
  .wrap, .faq-wrap { width: min(100% - 2.75rem, 1120px); }
}
@media (max-width: 720px) {
  .primary-nav { display: none; }
  .header-inner { min-height: 58px; }
  .brand { font-size: 2rem; }
  .header-cta { font-size: 0.9rem; }
  .hero-art img { aspect-ratio: 900 / 941; max-height: min(83vw, 500px); object-position: center 42%; }
  .snowfall { bottom: auto; height: min(83vw, 500px); }
  .hero-copy {
    position: relative;
    margin-top: -1px;
    padding: 1.05rem 1.15rem 1.7rem;
    text-align: center;
    border-top: 1px solid #c39d69;
    background: var(--grain), radial-gradient(ellipse at top, #fff6df, #f8e5c2);
  }
  .hero-copy h1, .hero-copy p, .hero-cta > span {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
  }
  .hero-copy h1 {
    font: 400 clamp(2.7rem, 10vw, 5.05rem)/1.06 var(--script);
    letter-spacing: -0.04em;
    color: var(--dark-red);
  }
  .hero-copy p { max-width: 25rem; margin: 0.38rem auto 0; font-size: 1.04rem; line-height: 1.35; }
  .hero .hero-cta {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    min-height: 50px;
    padding: 0.6rem 1.65rem;
    margin-top: 1rem;
    border: 1px solid #9b651f;
    background: var(--grain), var(--button-bg);
    box-shadow: 0 2px 0 #8b5e295b, inset 0 0 0 2px #f3d5a0;
  }
  .hero .hero-cta:hover { background: var(--grain), var(--dark-red); }
  .hero .hero-cta::before { content: ""; }
  .ribbon { gap: 0.55rem; font-size: clamp(0.93rem, 3.5vw, 1.25rem); }
  .ribbon b { font-size: 0.7rem; }
  .gift-layout, .skills-layout, .materials-card { grid-template-columns: 1fr; }
  .postcard { max-width: 460px; margin-inline: auto; }
  .workshop-picture { width: min(72%, 270px); }
  .workshop-picture img { max-height: 275px; }
  .toy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .toy-card figcaption { font-size: clamp(1.18rem, 4.6vw, 1.65rem); }
  .materials-card img { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 490px) {
  .wrap, .faq-wrap { width: calc(100% - 2rem); }
  .participation-card { grid-template-columns: 1fr; text-align: center; }
  .stamp { width: min(66%, 190px); }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps li { padding: 0.92rem 0 0 3.1rem; position: relative; }
  .steps li::before { position: absolute; left: 0; }
  .closing-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
  .closing img { width: min(66%, 200px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button, .header-cta { animation: none; }
  .snowfall, .motion-toggle { display: none; }
}
