/* ---------------- The knitted room around every page ---------------- */
.page { position: relative; min-height: 100vh; overflow: clip; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255,190,120,.22), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.16' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M2 3 Q5 10 8 15'/%3E%3Cpath d='M14 3 Q11 10 8 15'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.06' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M3 2 Q6 9 8 13'/%3E%3Cpath d='M13 2 Q10 9 8 13'/%3E%3C/g%3E%3C/svg%3E"),
    var(--red-700); }
.page > main { flex: 1 0 auto; position: relative; z-index: 4; }

.fairisle { height: 54px; flex: none; position: relative; z-index: 4; transform: translateY(-100%); animation: slideDown .7s .1s cubic-bezier(.2,.8,.2,1) forwards;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='54' shape-rendering='crispEdges'%3E%3Crect width='72' height='54' fill='%23fbf4e6'/%3E%3Crect width='72' height='6' fill='%231d4a37'/%3E%3Crect y='48' width='72' height='6' fill='%231d4a37'/%3E%3Cg fill='%237d1e22'%3E%3Crect x='0' y='9' width='3' height='3'/%3E%3Crect x='12' y='9' width='3' height='3'/%3E%3Crect x='24' y='9' width='3' height='3'/%3E%3Crect x='36' y='9' width='3' height='3'/%3E%3Crect x='48' y='9' width='3' height='3'/%3E%3Crect x='60' y='9' width='3' height='3'/%3E%3Crect x='6' y='42' width='3' height='3'/%3E%3Crect x='18' y='42' width='3' height='3'/%3E%3Crect x='30' y='42' width='3' height='3'/%3E%3Crect x='42' y='42' width='3' height='3'/%3E%3Crect x='54' y='42' width='3' height='3'/%3E%3Crect x='66' y='42' width='3' height='3'/%3E%3C/g%3E%3Cg fill='%231d4a37'%3E%3Crect x='16' y='15' width='3' height='3'/%3E%3Crect x='13' y='18' width='9' height='3'/%3E%3Crect x='10' y='21' width='15' height='3'/%3E%3Crect x='13' y='24' width='9' height='3'/%3E%3Crect x='10' y='27' width='15' height='3'/%3E%3Crect x='7' y='30' width='21' height='3'/%3E%3Crect x='16' y='33' width='3' height='3'/%3E%3C/g%3E%3Cg fill='%237d1e22'%3E%3Crect x='52' y='15' width='3' height='3'/%3E%3Crect x='52' y='33' width='3' height='3'/%3E%3Crect x='43' y='24' width='3' height='3'/%3E%3Crect x='61' y='24' width='3' height='3'/%3E%3Crect x='49' y='21' width='3' height='3'/%3E%3Crect x='55' y='21' width='3' height='3'/%3E%3Crect x='49' y='27' width='3' height='3'/%3E%3Crect x='55' y='27' width='3' height='3'/%3E%3Crect x='52' y='24' width='3' height='3'/%3E%3Crect x='46' y='18' width='3' height='3'/%3E%3Crect x='58' y='18' width='3' height='3'/%3E%3Crect x='46' y='30' width='3' height='3'/%3E%3Crect x='58' y='30' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E") repeat-x;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@keyframes slideDown { to { transform: none; } }

/* string lights: bulbs are drawn by decor.js and light up one after another */
.lights { position: absolute; top: 54px; left: 0; width: 100%; height: 120px; z-index: 3; pointer-events: none; }
.bulb { opacity: 0; transition: opacity .25s; }
.bulb.on { opacity: 1; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ornaments drop on their string, then swing (pure CSS, delays in --d) */
.ornament { position: absolute; top: 54px; z-index: 2; transform-origin: top center; pointer-events: none;
  animation: drop 1.1s var(--d, .9s) cubic-bezier(.3,1.5,.5,1) both, swing 6s calc(var(--d, .9s) + 1.1s) ease-in-out infinite; }
@keyframes drop { from { transform: translateY(-260px); } to { transform: none; } }
@keyframes swing { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .55;
  background-image: radial-gradient(2.5px 2.5px at 40px 60px, #fff, transparent), radial-gradient(1.5px 1.5px at 140px 180px, #fff, transparent),
    radial-gradient(2px 2px at 260px 90px, #fff, transparent), radial-gradient(1.5px 1.5px at 380px 250px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 470px 130px, #fff, transparent), radial-gradient(1px 1px at 560px 310px, #fff, transparent);
  background-size: 600px 400px; animation: fall 22s linear infinite; }
.snow.s2 { background-size: 420px 300px; opacity: .3; animation-duration: 34s; }
@keyframes fall { to { background-position: 60px 400px; } }

.top-nav { position: relative; z-index: 5; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 28px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.top-nav .brand { font-family: Fraunces, serif; font-weight: 600; white-space: nowrap; color: var(--cream); text-decoration: none; }
.top-nav .brand small { font-family: Inter, sans-serif; opacity: .6; font-size: 12px; font-weight: 400; }
.top-nav a.link { color: var(--cream); opacity: .75; text-decoration: none; white-space: nowrap; }
.top-nav a.link:hover { opacity: 1; }

/* snowy ground, with the small print written in the snow */
.ground { position: relative; z-index: 2; height: 190px; margin-top: -120px; flex: none; pointer-events: none; }
.ground svg { position: absolute; bottom: 0; width: 100%; height: 190px; }
.ground .foot { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding: 0 16px;
  font-size: 13px; pointer-events: auto; }
.ground .foot a { color: var(--red-700); text-decoration: none; opacity: .8; }
.ground .foot a:hover { opacity: 1; text-decoration: underline; }

/* ---------------- Shared typography ---------------- */
/* rises into place; the end state is the element's own style (an .65 opacity stays .65) */
.reveal { animation: upIn .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes upIn { from { opacity: 0; transform: translateY(18px); } }
.eyebrow { font-family: Caveat, cursive; color: var(--gold); font-size: 30px; display: inline-block; }

.pill { display: inline-flex; gap: 10px; align-items: center; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #2f6b4f, #1d4a37); color: var(--cream); font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 24px -6px rgba(15,42,32,.6);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), filter .2s; }
.pill:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pill:active { transform: scale(.97); }
.pill[disabled] { cursor: progress; filter: saturate(.6); transform: none; }
.pill.big { font-size: 19px; padding: 18px 34px; }
.pill.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(231,183,95,.6); color: var(--cream); }

@media (max-width: 560px) {
  .top-nav { padding: 16px; }
  .ornament.orn-l { display: none; }
}
