:root {
--cream: #f7f0e1;
--paper: #fbf7ee;
--red: #9b3a2c;
--red-dark: #7a2b20;
--sage: #7f9170;
--sage-dark: #53634a;
--wood: #5a4332;
--ink: #3b2f27;
--shadow: 0 6px 18px rgba(60, 40, 25, .18);
--halo: 0 0 10px rgba(255, 255, 255, .9), 0 0 3px rgba(255, 255, 255, .9);
--pad: clamp(14px, 3vw, 34px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: Lora, Georgia, "Times New Roman", serif;
color: var(--ink);
line-height: 1.55;
background: #9fa2b2;
}
/* the cabin photo lives behind everything */
#scene {
position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none;
background: #9fa2b2 url("https://static.wixstatic.com/media/f54f6b_f6c98f0bb7e94aab84368cb7bd4f1c03~mv2.png/v1/fit/w_1536,h_1024,q_80,enc_auto/cabin.jpg") 62% 12% / cover no-repeat;
}
@media (max-aspect-ratio: 9/10) {
#scene { background-color: #9f9fb0; background-size: 221% auto; background-position: 62% 84px; }
#scene::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; background: linear-gradient(#8b9bb0 0, #8b9bb0 84px, rgba(139, 155, 176, 0) 150px); }
#scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: calc(84px + 147.1vw - 120px); background: linear-gradient(rgba(159, 159, 176, 0), #9f9fb0 120px, #cfd1de); }
}
#snow { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.page { position: relative; z-index: 2; }
.beta-tag {
position: fixed; top: 10px; right: 10px; z-index: 5;
background: var(--red); color: #fff; font: 600 12px/1 system-ui, sans-serif;
padding: 7px 10px; border-radius: 999px; letter-spacing: .04em; box-shadow: var(--shadow);
}
.hero { position: relative; isolation: isolate; text-align: center; padding: 44px 18px 0; min-height: 80vh; }
.hero.small { min-height: 34vh; }
.hero::before {
content: ""; position: absolute; left: 0; right: 0; top: 0; height: 75%; z-index: -1; pointer-events: none;
background: radial-gradient(ellipse 62% 62% at 50% 30%, rgba(255, 250, 242, .55), rgba(255, 250, 242, 0) 72%);
}
.eyebrow { margin: 0; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: var(--wood); text-shadow: var(--halo); }
.hero h1 {
margin: 4px 0 6px; font-family: Caveat, "Segoe Script", cursive; font-weight: 700;
font-size: clamp(2.3rem, 9.4vw, 5rem); line-height: 1; color: var(--red);
text-shadow: 0 0 14px rgba(255, 255, 255, .95), 0 0 4px rgba(255, 255, 255, .95), 0 2px 0 rgba(255, 255, 255, .7);
}
.lede { margin: 0 auto; max-width: 34ch; font-size: 1.1rem; text-shadow: var(--halo); }
.count { margin: 10px 0 0; font-size: .9rem; color: var(--ink); text-shadow: var(--halo); }
.back {
display: inline-block; padding: 6px 13px; border-radius: 999px; letter-spacing: .04em; text-transform: none;
background: rgba(255, 255, 255, .88); color: var(--sage-dark); text-decoration: none; font-weight: 600; font-size: .85rem;
text-shadow: none; box-shadow: 0 2px 8px rgba(60, 40, 25, .15);
}
.back:hover { background: #fff; color: var(--red); }
.gingham {
height: 22px; margin: 6px 0 26px;
background:
repeating-linear-gradient(90deg, rgba(155, 58, 44, .30) 0 12px, transparent 12px 24px),
repeating-linear-gradient(0deg, rgba(155, 58, 44, .30) 0 11px, transparent 11px 22px),
var(--paper);
border-top: 2px solid var(--red-dark); border-bottom: 2px solid var(--red-dark);
}
main { padding: 0 12px 20px; }
.panel {
max-width: 1080px; margin: 0 auto 26px; padding: 26px var(--pad) 30px;
background: rgba(251, 247, 238, .985); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
border-radius: 14px; box-shadow: var(--shadow);
border: 1px solid rgba(90, 67, 50, .14);
}
.panel h2 {
margin: 0 0 4px; font-family: Caveat, "Segoe Script", cursive; font-size: 2.2rem; font-weight: 700; color: var(--wood);
}
.sub { margin: 0 0 8px; color: #6b5a4d; }
.theme { scroll-margin-top: 14px; }
/* photo strip across the top of a panel */
.band {
display: block; max-width: none; width: calc(100% + 2 * var(--pad)); height: clamp(96px, 17vw, 190px);
margin: -26px calc(-1 * var(--pad)) 18px; object-fit: cover; border-radius: 13px 13px 0 0; background: #dfe3ea;
}
/* jump-to row */
.jump { padding-top: 18px; padding-bottom: 18px; text-align: center; }
.jump-label { margin: 0 0 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dark); }
.jump .chips { margin: 0; justify-content: center; }
/* branch */
.branch-wrap { position: relative; padding-top: 28px; margin-top: 8px; }
.branch { position: absolute; top: 0; left: 0; width: 100%; height: 56px; overflow: visible; }
.branch-row { display: flex; justify-content: space-around; align-items: flex-start; gap: 6px; padding: 0 4px 6px; }
.branch-row .orn { width: clamp(104px, 19vw, 180px); }
.more { margin: 12px 0 0; text-align: center; }
/* ornaments */
.orn {
display: block; position: relative; padding: 0; border: 0; background: none; cursor: pointer;
font: inherit; color: inherit; text-align: center;
transform-origin: 50% 0;
animation: sway var(--dur, 5s) ease-in-out var(--delay, 0s) infinite alternate;
}
.orn:hover, .orn:focus-visible { animation-play-state: paused; }
.orn:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 10px; }
.string { display: block; width: 2px; height: 34px; margin: 0 auto; background: #8a6d52; }
.frame {
display: block; padding: 6px; background: #fffdf7; border-radius: 10px;
border: 2px solid #c9b79b; box-shadow: 0 6px 12px rgba(60, 40, 25, .22);
}
.frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #eadfc9; }
.cap { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.25; color: var(--wood); }
@keyframes sway {
0%   { transform: rotate(calc(var(--amp, 3deg) * -1)); }
100% { transform: rotate(var(--amp, 3deg)); }
}
/* chips, buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip {
display: inline-block; font: 600 .85rem Lora, Georgia, serif; padding: 7px 13px; border-radius: 999px; cursor: pointer;
border: 2px solid var(--sage); background: #fff; color: var(--sage-dark); text-decoration: none;
}
a.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; }
.btn {
display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--red); color: #fff;
text-decoration: none; font-weight: 600; box-shadow: var(--shadow); border: 2px solid var(--red); margin: 4px 3px;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red); box-shadow: none; }
.btn.ghost:hover { background: var(--red); color: #fff; }
/* grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; padding-top: 2px; }
.grid .orn { width: 100%; padding-bottom: 14px; }
.grid .string { height: 16px; }
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 639px)  { .branch-row .orn:nth-child(n+4) { display: none; } .branch-row .orn { width: 29vw; } }
.custom, .others { text-align: center; }
.others .chips { justify-content: center; }
/* footer (shiplap) */
.foot {
margin-top: 30px; padding: 30px 16px; text-align: center; color: var(--cream); font-size: .9rem;
background: repeating-linear-gradient(180deg, #6b5240 0 30px, #4f3b2d 30px 32px);
}
.foot p { margin: 0; }
/* lightbox */
dialog#lb {
width: min(92vw, 760px); max-height: 92vh; padding: 14px; border: 0; border-radius: 14px;
background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); overflow: auto;
}
dialog#lb::backdrop { background: rgba(40, 28, 20, .66); }
dialog#lb figure { margin: 0; text-align: center; }
#lb-img { max-width: 100%; max-height: 66vh; border-radius: 8px; background: #eadfc9; }
#lb figcaption { margin-top: 10px; }
#lb-title { display: block; font-family: Caveat, cursive; font-size: 1.8rem; color: var(--red); }
#lb-cat { display: block; font-size: .85rem; color: var(--sage-dark); letter-spacing: .06em; text-transform: uppercase; }
#lb-desc { margin: 8px auto 0; max-width: 52ch; }
.lb-close, .lb-nav {
position: absolute; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--wood);
border-radius: 50%; width: 42px; height: 42px; font-size: 26px; line-height: 1; box-shadow: var(--shadow);
}
.lb-close { top: 8px; right: 8px; z-index: 2; }
.lb-nav { top: 40%; z-index: 2; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (prefers-reduced-motion: reduce) {
.orn { animation: none !important; }
html { scroll-behavior: auto; }
}