:root {
  color-scheme: light;
  --paper: #f8f5e9;
  --pine: #2e4e42;
  --red: #963d33;
  --rule: #cfc6a7;
  font-family: "Baskervville", Baskerville, "Palatino Linotype", Georgia, serif;
  color: var(--pine);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.35' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  opacity: .19;
  mix-blend-mode: multiply;
}
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.masthead { background: #f7f5e9; border-bottom: 1px solid #b5beb1; }
.topbar { max-width: 1440px; height: 55px; margin: auto; padding: 0 clamp(20px, 4.6vw, 72px); display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.7px; }
.wordmark svg { width: 27px; height: 27px; color: #9d473b; }
.wordmark use { stroke-width: 4px; }
.dates, .legend { font-family: "Avenir Next", "Trebuchet MS", sans-serif; }
.dates { font-size: 10px; font-weight: 700; letter-spacing: 2.1px; text-transform: uppercase; }
.winter { position: relative; height: clamp(270px, 22.8vw, 360px); background: #d8e6e3 url("winter.svg") center bottom / cover no-repeat; text-align: center; }
.greeting { padding: clamp(24px, 2.4vw, 48px) 15px 0; position: relative; }
.flourish { display: flex; align-items: center; gap: 10px; justify-content: center; }
.flourish svg { width: 59px; height: 30px; }
.flourish i { position: relative; width: 42px; height: 1px; background: #899b84; }
.flourish i::after { content: ""; position: absolute; width: 4px; height: 4px; top: -1.5px; right: 0; background: #88977b; transform: rotate(45deg); }
.flourish i:last-child::after { left: 0; }
h1 { margin: 5px 0 3px; color: var(--red); font-weight: 700; font-size: clamp(68px, 7.8vw, 116px); line-height: 1.08; letter-spacing: -.06em; text-shadow: 0 2px #faf6e7; }
.greeting p { margin: 5px 0; color: #37554b; font-size: clamp(18px, 1.65vw, 26px); font-style: italic; }
.board { background: #fbf8ec; position: relative; width: min(90.8%, 1300px); margin: -14px auto 0; padding: 24px clamp(16px, 1.85vw, 30px) clamp(16px, 1.85vw, 30px); border: 1px solid #aea585; outline: 1px solid #d8cfb4; outline-offset: -6px; box-shadow: 0 3px 9px #5f55300e; }
.board-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
h2 { margin: 0; font-size: clamp(21px, 2vw, 29px); line-height: 1.1; font-weight: 700; letter-spacing: -.8px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #566457; }
.legend svg { width: 12px; height: 14px; }
.calendar { list-style: none; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); margin: 0; padding: 0; gap: clamp(8px, .87vw, 14px); }
.door { --ink: #8e3d39; position: relative; isolation: isolate; overflow: hidden; background-color: var(--ink); color: #f8ecd1; aspect-ratio: 1.29; border: 1px solid #38322033; border-radius: 3px; box-shadow: inset 0 0 0 2px #fff3d30f, 0 1px 1px #45391e17; }
.door::before, .door::after { content: ""; position: absolute; pointer-events: none; }
.door::after { inset: 5px; border: 1px dashed #f7e8c776; border-radius: 1px; }
.door::before { inset: 0; z-index: -1; opacity: .38; }
.cranberry { --ink: #98483f; }
.forest { --ink: #355c4c; }
.denim { --ink: #496777; }
.sage { --ink: #738473; }
.brick { --ink: #ad5c49; }
.deep { --ink: #345956; }
.gold { --ink: #937443; }
.clay { --ink: #a45e4e; }
.pattern-1::before { background: repeating-linear-gradient(45deg, transparent 0 9px, #fbe4bb1e 9px 10px, transparent 10px 13px, #fbe4bb1e 13px 14px, transparent 14px 24px); }
.pattern-2::before { background: repeating-linear-gradient(90deg,#efe5bd10 0 4px, transparent 4px 21px, #efe5bd35 21px 22px, transparent 22px 29px), repeating-linear-gradient(0deg, transparent 0 20px, #efe5bd29 20px 21px, transparent 21px 25px, #efe5bd1f 25px 28px); }
.pattern-3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='32' fill='%23e8e4c9' opacity='.49'%3E%3Cpath d='m8 5 1 2.5 2.5 1L9 9.5 8 12 7 9.5 4.5 8.5 7 7.5z'/%3E%3Ccircle cx='25' cy='24' r='1.1'/%3E%3C/svg%3E"); }
.pattern-4::before { background: repeating-linear-gradient(-45deg, transparent 0 7px, #e4e4c825 7px 8px, transparent 8px 15px); }
.pattern-5::before { background-image: radial-gradient(#f8e8c873 1px, transparent 1.3px), radial-gradient(#f8e8c854 1px, transparent 1.3px); background-size: 17px 17px; background-position: 0 0, 8px 8px; }
.day { position: absolute; top: 7%; left: 8%; font-weight: 700; font-size: clamp(24px, 2.4vw, 38px); line-height: 1; letter-spacing: -.07em; }
.motif { position: absolute; width: 50%; height: 66%; left: 50%; top: 54%; transform: translate(-50%, -50%) rotate(-5deg); }
.door:nth-child(3n) .motif { transform: translate(-50%, -50%) rotate(5deg); }
.latch { position: absolute; right: 8%; bottom: 10%; width: 12px; height: 14px; opacity: .8; }
.door a { display: grid; place-content: center; width: 100%; height: 100%; padding: 22% 10% 10%; color: inherit; text-align: center; font-size: 20px; text-underline-offset: 3px; }
.door a:focus-visible { outline: 3px solid #fffcdb; outline-offset: -6px; }
footer { display: flex; justify-content: center; align-items: center; gap: 12px; height: 74px; color: #8d987f; }
footer svg { width: 20px; height: 20px; }
footer span { width: 34px; height: 1px; background: var(--rule); }
@media (min-width: 1600px) { .winter { background-size: 100% 100%; } }
@media (max-width: 900px) {
  .calendar { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .winter { height: 248px; background-size: 1040px auto; }
  .board { width: 94%; }
  .day { font-size: 30px; }
}
@media (max-width: 600px) {
  .topbar { height: 47px; padding-inline: 16px; }
  .wordmark { font-size: 17px; gap: 6px; }
  .wordmark svg { width: 23px; }
  .dates { letter-spacing: 1.3px; font-size: 9px; }
  .winter { height: 218px; background-size: 100% 152px; background-color: #c7dee2; }
  .winter::before { content: ""; position: absolute; inset: 0 0 auto; height: 80px; background: radial-gradient(circle at 12% 28%, #fff9e9 0 1px,transparent 2px), radial-gradient(circle at 77% 50%,#fff9e9 0 1.5px,transparent 2px); background-size: 116px 55px; }
  .greeting { padding-top: 15px; }
  h1 { font-size: clamp(43px, 11.7vw, 68px); }
  .greeting p { font-size: 17px; }
  .flourish svg { width: 47px; height: 24px; }
  .board { margin-top: -15px; width: calc(100% - 20px); padding: 17px 12px 13px; }
  .board-heading { margin-bottom: 12px; }
  .legend { font-size: 10px; gap: 3px; }
  h2 { font-size: 22px; }
  .calendar { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .door { aspect-ratio: 1.1; }
  .door::after { inset: 4px; }
  .day { font-size: 25px; top: 9%; left: 9%; }
  .latch { width: 10px; height: 12px; }
}
