/* Shared print inks, wood tones and lights. All UI colours originate here. */
:root {
  --night: #101f28;
  --pine: #1b302d;
  --ink: #23382f;
  --muted: #556355;
  --ivory: #fff2d6;
  --paper: #fcf6e8;
  --frost: #c8d5cc;
  --rule: #838775;
  --gold: #f0cd87;
  --brass: #ac8551;
  --wood: #785638;
  --walnut: #483427;
  --red: #923c38;
  --spruce: #396553;
  --blue: #355467;
  --rose: #ef8370;
  --mint: #98d0a2;

  --edge: color-mix(in srgb, var(--gold) 28%, transparent);
  --glint: color-mix(in srgb, var(--ivory) 53%, transparent);
  --grain: color-mix(in srgb, var(--ivory) 6%, transparent);
  --shade: color-mix(in srgb, var(--night) 42%, transparent);
  --deep-shade: color-mix(in srgb, var(--night) 78%, transparent);
  --pine-haze: color-mix(in srgb, var(--spruce) 36%, transparent);
  --error-wash: color-mix(in srgb, var(--rose) 18%, var(--paper));
  --success-wash: color-mix(in srgb, var(--mint) 28%, var(--paper));

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ivory);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--night);
  background-image:
    radial-gradient(1.2px 1.2px at 13% 13%, var(--glint) 60%, transparent),
    radial-gradient(1px 1px at 67% 47%, var(--glint) 70%, transparent),
    radial-gradient(1.5px 1.5px at 83% 29%, var(--edge) 60%, transparent),
    radial-gradient(ellipse at 85% 18%, var(--pine-haze), transparent 55%);
  background-size:
    211px 247px,
    321px 263px,
    369px 395px,
    100% 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary,
label {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.7;
  cursor: wait;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}
input,
textarea {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 11px 13px;
  min-width: 0;
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.wrap {
  width: min(1170px, calc(100% - clamp(48px, 10vw, 144px)));
  margin-inline: auto;
}
.top {
  border-bottom: 1px solid var(--edge);
  background: var(--shade);
}
.mast,
.mast nav,
.brand,
.footer,
.actions,
.dialog-top,
.cabinet-foot,
.share-actions,
.today-row {
  display: flex;
  align-items: center;
}
.mast {
  min-height: 70px;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font: 500 27px/1 var(--serif);
  letter-spacing: -0.055em;
  text-decoration: none;
  gap: 9px;
  white-space: nowrap;
}
.brand img {
  width: 37px;
  height: 37px;
}
.mast nav {
  gap: 20px;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.mast nav span {
  color: var(--gold);
  margin-left: 5px;
}
.mast nav a:hover,
.footer a:hover {
  text-decoration: underline;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.81fr) minmax(0, 1fr);
  grid-template-areas: "intro cabinet" "make cabinet";
  column-gap: clamp(28px, 5vw, 84px);
  align-content: center;
  align-items: center;
  padding-block: clamp(35px, 5.6vw, 84px);
}
.intro {
  grid-area: intro;
  align-self: end;
}
.hero h1 {
  max-width: 8ch;
  font-size: clamp(72px, 7.6vw, 110px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.075em;
}
.hero h1 em {
  display: block;
  font-weight: normal;
  color: var(--gold);
  letter-spacing: -0.065em;
}
.lede {
  margin-top: 19px;
  max-width: 395px;
  color: var(--frost);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.56;
}
.make {
  grid-area: make;
  align-self: start;
  margin-top: 24px;
}
.showcase {
  grid-area: cabinet;
  min-width: 0;
}
.make label,
.field label,
.linkbox > label {
  display: block;
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 6px;
}
.name-row,
.linkrow {
  display: flex;
  gap: 8px;
}
.name-row input {
  width: 100%;
  max-width: 235px;
  min-height: 47px;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 650 15px/1.3 var(--sans);
  text-decoration: none;
}
.primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--ivory) var(--brass) var(--brass);
  box-shadow: 0 2px 0 var(--shade);
}
.primary:hover {
  background: var(--gold);
}
.name-row .primary {
  white-space: nowrap;
}
.secondary {
  color: var(--ink);
  background: var(--ivory);
  border-color: var(--rule);
}
.secondary:hover {
  background: var(--ivory);
}
.danger {
  color: var(--paper);
  background: var(--red);
}
.fine {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--frost);
  font-size: 12px;
}
.fine b {
  font-weight: 400;
}
.fine svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
/* A varnished rail around painted, brass-fitted compartment doors. */
.cabinet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 9px;
  border-radius: 17px 17px 10px 10px;
  border: 1px solid var(--brass);
  background:
    repeating-linear-gradient(2deg, var(--edge) 0 1px, transparent 2px 4px),
    linear-gradient(115deg, var(--brass), var(--wood) 19%, var(--walnut) 65%, var(--brass));
  box-shadow:
    inset 0 1px 1px var(--gold),
    inset 0 0 0 3px var(--brass),
    inset 0 0 0 5px var(--wood),
    0 4px 0 var(--walnut),
    0 18px 38px -10px var(--deep-shade);
}
.village {
  position: relative;
  height: clamp(115px, 11.3vw, 171px);
  border: 1px solid var(--walnut);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background-color: var(--pine);
  background-image: var(--village-art, url("https://img.adventwithfriends.trade/s_0g6t3j5g1t234f/winter-village.97d708b608.webp"));
  background-size: cover;
  background-position: center 53%;
  box-shadow: inset 0 3px 8px var(--deep-shade);
}
.village::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid var(--edge);
  border-bottom: 0;
  border-radius: inherit;
  background: linear-gradient(0deg, var(--shade), transparent 34%);
}
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: var(--night);
  border: 1px solid var(--brass);
  border-inline-color: var(--walnut);
  box-shadow: inset 0 1px 5px var(--night);
}
.door {
  --face: var(--red);
  --stitch: var(--glint);
  --number: var(--ivory);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: clamp(54px, 5.2vw, 78px);
  padding: 0;
  color: var(--number);
  border: 1px solid var(--glint);
  border-radius: 4px;
  background:
    repeating-linear-gradient(37deg, transparent 0 2px, var(--grain) 2.25px 2.8px),
    repeating-linear-gradient(125deg, transparent 0 2px, var(--grain) 2.3px 2.75px),
    linear-gradient(155deg, transparent 40%, var(--shade)), var(--face);
  box-shadow:
    inset 1px 1px 1px var(--edge),
    inset -1px -2px 1px var(--deep-shade),
    0 2px 2px var(--night);
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}
.door:is(:nth-child(6n + 2), :nth-child(6n + 6), :nth-child(11), :nth-child(13), :nth-child(22)) {
  --face: var(--spruce);
}
.door:is(:nth-child(6n + 3), :nth-child(10), :nth-child(19)) {
  --face: var(--blue);
}
.door:is(:nth-child(4), :nth-child(8), :nth-child(16), :nth-child(23)) {
  --face: var(--brass);
  --number: var(--ivory);
}
.door:nth-child(24) {
  --face: var(--red);
}
.door::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px dashed var(--stitch);
  border-radius: 2px;
}
.door::after {
  content: "✦";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font: 12px/1 var(--serif);
  color: var(--glint);
}
.door:nth-child(3n)::after {
  content: "❄";
  font-size: 12px;
}
.door:nth-child(4n + 2)::after {
  content: "•";
  font-size: 12px;
}
.door .num {
  font: 600 clamp(27px, 2.8vw, 42px)/1 var(--serif);
  letter-spacing: -0.07em;
  padding-right: 0.05em;
  text-shadow: 0 1px 1px var(--night);
  transform: translateY(-2px);
}
.hardware {
  position: absolute;
}
.door:focus-visible {
  outline: 3px solid var(--ivory);
  outline-offset: -3px;
}
@media (hover: hover) {
  .door:hover {
    transform: translateY(-1px);
    filter: brightness(1.17);
  }
}
.door:active {
  transform: translateY(1px);
}
.door.today {
  border: 2px solid var(--gold);
  box-shadow:
    inset 0 0 0 1px var(--brass),
    0 0 4px var(--glint);
}
.seal {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--ivory);
  padding: 2px;
}
.door.ready .seal {
  color: var(--spruce);
  background: var(--ivory);
}

.cabinet-foot {
  gap: 6px;
  justify-content: space-between;
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid var(--walnut);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: var(--pine);
  color: var(--ivory);
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.015em;
}
.cabinet-foot b {
  font-weight: normal;
}
.today-row {
  gap: 6px;
  min-width: 0;
}
.today-row::before {
  content: "✦";
  color: var(--gold);
}
.today-row:empty::before {
  content: none;
}
.how {
  background: var(--pine);
  border-block: 1px solid var(--edge);
  padding: 31px 0 36px;
}
.how h2 {
  color: var(--ivory);
  font-size: clamp(29px, 3vw, 39px);
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.steps article {
  display: flex;
  gap: 13px;
}
.step-icon {
  display: flex;
  align-items: flex-start;
  color: var(--gold);
  flex-shrink: 0;
}
.step-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.steps h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
}
.steps p {
  font-size: 14px;
  line-height: 1.56;
  color: var(--frost);
}
.footer {
  justify-content: space-between;
  gap: 10px;
  padding: 19px 0 26px;
  color: var(--frost);
  font: 12px/1.4 var(--mono);
}
.footer-name {
  font: 600 17px var(--serif);
  letter-spacing: -0.04em;
}
.cal {
  max-width: 690px;
  padding: 28px 0;
  min-height: calc(100svh - 139px);
}
.cal-head {
  margin-bottom: 13px;
}
.eyeline {
  font: 650 12px/1.35 var(--sans);
  letter-spacing: 0.085em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cal h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}
.helper {
  color: var(--muted);
  margin-top: 8px;
  max-width: 63ch;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cal-head .helper {
  color: var(--frost);
}
.cal .village {
  height: clamp(85px, 9.3vw, 130px);
}
.cal .door {
  height: clamp(48px, 4.8vw, 68px);
}
.counter {
  white-space: nowrap;
}
.keyline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--frost);
  font-size: 13px;
  margin: 10px 0 0;
}
.keyline span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.keyline svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}
.keyline .today-key {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold);
  border-radius: 3px;
}
.linkbox {
  margin-top: 13px;
  color: var(--ink);
  background: var(--paper);
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 9px;
}
.share-actions {
  align-items: stretch;
  gap: 7px;
}
.share-actions .primary {
  flex: 1;
  color: var(--paper);
  background: var(--red);
  border-color: var(--walnut);
}
.share-actions .primary:hover {
  filter: brightness(1.12);
}
.linkrow {
  margin: 6px 0;
  align-items: stretch;
}
.linkrow input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.linkbox input#invite-link {
  width: 100%;
  margin: 8px 0 0;
}
.details {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.details summary {
  min-height: 43px;
  display: list-item;
  align-content: center;
  font-weight: 600;
  color: var(--ink);
}
.linkbox .details {
  margin-bottom: -6px;
}
.tools {
  margin-top: 13px;
}
.textbtn {
  color: var(--frost);
  background: none;
  border: none;
  padding: 9px 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}
.sheet,
dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px var(--shade);
}
.sheet {
  margin-top: 14px;
  padding: clamp(20px, 4vw, 38px);
  border-radius: 10px;
}
.sheet .eyeline,
dialog .eyeline {
  color: var(--red);
}
.receipt-sheet #return-calendar {
  display: block;
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  color: var(--spruce);
  border: 0;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.receipt-create {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px dashed var(--brass);
}
.receipt-create h2 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
}
.receipt-create .field {
  max-width: 32rem;
  margin: 16px 0 12px;
}
.receipt-create .primary {
  max-width: 100%;
  white-space: normal;
}
.sheet .actions,
.panel-space {
  margin-top: 20px;
}
.actions {
  gap: 9px;
  flex-wrap: wrap;
}
.sheet .primary,
dialog .primary {
  background: var(--red);
  border-color: var(--walnut);
  color: var(--paper);
}
.sheet .primary:hover,
dialog .primary:hover {
  filter: brightness(1.12);
}
.error,
.notice {
  padding: 9px 12px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 14px;
}
.error {
  background: var(--error-wash);
  color: var(--red);
}
.notice {
  background: var(--success-wash);
  color: var(--ink);
}
.notice:empty {
  display: none;
}
dialog {
  font: inherit;
  border-radius: 10px;
  width: min(485px, calc(100% - 20px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  overscroll-behavior: contain;
}
dialog[open] {
  animation: open-letter 0.18s ease-out;
}
@keyframes open-letter {
  from {
    opacity: 0.4;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
dialog::backdrop {
  background: var(--deep-shade);
}
body:has(dialog[open]) {
  overflow: hidden;
}
#dialog-body,
.letter {
  padding: clamp(19px, 4vw, 30px);
  border-top: 6px solid var(--red);
  border-image: repeating-linear-gradient(
      132deg,
      var(--red) 0 12px,
      var(--ivory) 13px 24px,
      var(--spruce) 25px 37px,
      var(--ivory) 38px 50px
    )
    6;
}
.dialog-top {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.dialog-top h2 {
  font-size: clamp(29px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.close {
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  line-height: 1;
  font-size: 22px;
}
.field {
  margin: 10px 0;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  font-size: 16px;
}
.field label small {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.field textarea {
  min-height: 94px;
  resize: vertical;
}
.prompts {
  margin-top: 6px;
}
.prompts summary {
  min-height: 44px;
  align-content: center;
  color: var(--wood);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prompt-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prompt-options button {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--wood);
  font-size: 14px;
  cursor: pointer;
}
#starter-hint {
  margin: 0;
  color: var(--wood);
  font-size: 14px;
}
#starter-hint:empty {
  display: none;
}
.stamps {
  border: 0;
  padding: 0;
  margin: 8px 0 15px;
}
.stamps legend {
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 5px;
}
.stamp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.stamp-options label {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 7px 9px;
  min-height: 40px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}
.stamp-options input {
  accent-color: var(--red);
  margin: 0;
}
.stamp-options label:has(:checked) {
  border-color: var(--red);
  background: var(--error-wash);
}
.quote {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 23px/1.45 var(--serif);
  border-left: 2px solid var(--red);
  padding-left: 14px;
  margin: 18px 0 20px;
}
.signed {
  font: italic 20px/1.35 var(--serif);
  color: var(--red);
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) and (min-width: 701px) {
  .hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
    column-gap: 27px;
  }
  .name-row {
    flex-wrap: wrap;
  }
  .name-row input {
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(65px, 8vw, 80px);
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .mast {
    min-height: 51px;
  }
  .brand {
    font-size: 22px;
    gap: 6px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .mast nav {
    gap: 9px;
  }
  .mast nav a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "cabinet" "make";
    padding: 19px 0 22px;
    gap: 13px;
    max-width: 510px;
  }
  .hero h1 {
    font-size: clamp(36px, 8.5vw, 55px);
    line-height: 1.05;
    max-width: none;
    letter-spacing: -0.065em;
  }
  .hero h1 em {
    display: inline;
  }
  .lede {
    font-size: 15px;
    line-height: 1.41;
    margin-top: 6px;
    max-width: 480px;
  }
  .make {
    margin: 3px 0 0;
  }
  .name-row input {
    flex: 1;
    min-width: 0;
    width: 0;
    max-width: none;
  }
  .name-row .primary {
    font-size: 14px;
    padding-inline: 12px;
  }
  .fine {
    margin-top: 8px;
  }
  .cabinet {
    padding: 6px;
    border-radius: 13px 13px 8px 8px;
    box-shadow:
      inset 0 1px 1px var(--gold),
      inset 0 0 0 2px var(--brass),
      inset 0 0 0 4px var(--wood),
      0 3px 0 var(--walnut),
      0 10px 22px var(--shade);
  }
  .village,
  .cal .village {
    height: clamp(85px, 24vw, 130px);
    border-radius: 7px 7px 0 0;
  }
  .board {
    padding: 5px;
    gap: 4px;
  }
  .door,
  .cal .door {
    height: clamp(47px, 13.1vw, 67px);
    border-radius: 3px;
  }
  .door::before {
    inset: 3px;
  }
  .door .num {
    font-size: clamp(23px, 6.6vw, 34px);
  }
  .door::after,
  .door:nth-child(3n)::after {
    font-size: 12px;
    bottom: 3px;
  }
  .seal {
    right: 3px;
    top: 3px;
    width: 13px;
    height: 13px;
  }
  .cabinet-foot {
    padding: 4px 8px;
    min-height: 26px;
  }
  .how {
    padding: 23px 0 27px;
  }
  .how h2 {
    margin-bottom: 15px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .steps h3 {
    font-size: 21px;
  }
  .steps article {
    gap: 11px;
  }
  .step-icon svg {
    width: 29px;
    height: 29px;
  }
  .footer {
    font-size: 12px;
  }
  .cal {
    padding: 17px 0 22px;
  }
  .cal h1 {
    font-size: clamp(30px, 8vw, 42px);
  }
  .cal-head {
    margin-bottom: 10px;
  }
  .cal-head .helper {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
  }
  .eyeline {
    font-size: 12px;
  }
  .keyline {
    gap: 9px;
    font-size: 12px;
    margin-top: 9px;
  }
  .linkbox {
    margin-top: 9px;
    padding: 12px;
  }
  .linkrow {
    flex-wrap: wrap;
  }
  .linkrow input {
    flex-basis: 100%;
  }
  #send-note {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 16px);
  }
  .mast nav {
    gap: 6px;
  }
  .brand {
    font-size: 20px;
  }
  .mast nav span {
    display: none;
  }
  .board {
    padding: 3px;
    gap: 2px;
  }
  .door,
  .cal .door {
    height: 45px;
  }
  .door .num {
    font-size: 23px;
  }
  .name-row button {
    gap: 5px;
  }
  .stamp-options label {
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.village,
.cal .village {
  height: auto;
  aspect-ratio: 3.35;
  display: grid;
  place-items: center;
}
.village span {
  position: relative;
  z-index: 1;
  color: var(--ivory);
  font: italic 500 clamp(24px, 3.2vw, 44px)/1 var(--serif);
  letter-spacing: -0.05em;
  text-shadow: 0 2px 3px var(--night);
  transform: translateY(-0.18em);
}
.keyline .seal {
  position: static;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--gold);
}
.hardware::before,
.hardware::after {
  content: "";
  position: absolute;
  right: calc(100% + 1px);
  pointer-events: none;
}
.door.filled {
  --stitch: var(--ivory);
}
.door.ready {
  box-shadow:
    inset 0 0 0 2px var(--gold),
    0 2px 2px var(--night);
}
@media (max-width: 700px) {
  .village span {
    font-size: clamp(25px, 7vw, 39px);
  }
}
.door .ornament {
  position: absolute;
  left: 7px;
  top: 6px;
  width: clamp(12px, 1.3vw, 20px);
  height: clamp(12px, 1.3vw, 20px);
  color: var(--ivory);
  opacity: 0.95;
  pointer-events: none;
}
.door:nth-child(24) .ornament {
  fill: var(--ivory);
  stroke-width: 0.7;
}
.door:nth-child(24)::before {
  border-style: double;
  border-width: 3px;
  border-color: var(--glint);
}
.door .hardware {
  inset: 5px 5px 5px 1px;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: radial-gradient(
    circle at calc(100% - 2px) 50%,
    var(--gold) 0 1px,
    var(--wood) 1.3px 2px,
    transparent 2.5px
  );
  pointer-events: none;
}
.hardware::before,
.hardware::after {
  left: 0;
  right: auto;
  width: 2px;
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--brass), var(--gold));
}
.hardware::before {
  top: 12%;
}
.hardware::after {
  bottom: 12%;
}

@media (max-width: 700px) {
  .door .ornament {
    width: 11px;
    height: 11px;
    left: 4px;
    top: 4px;
  }
}

.letter-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 90px);
  padding-block: clamp(32px, 5vw, 65px);
  border-bottom: 1px solid var(--edge);
}
.letter-guide h2 {
  margin: 0 0 12px;
  font-size: clamp(27px, 2.65vw, 36px);
  line-height: 1.13;
  letter-spacing: -0.045em;
}
.letter-guide p,
.sample-lines {
  color: var(--frost);
  font-size: 15px;
  line-height: 1.62;
}
.letter-guide strong {
  color: var(--ivory);
  font-weight: 620;
}
.sample-lines {
  padding: 0;
  list-style: none;
  margin: 12px 0 0;
}
.sample-lines li {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--edge);
}
.sample-lines strong {
  display: block;
  font-size: 13px;
  color: var(--gold);
}
@media (max-width: 700px) {
  .letter-guide {
    grid-template-columns: 1fr;
  }
}

.guide-top,
.guide-top nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.guide-top {
  justify-content: space-between;
  margin-bottom: 18px;
}
.guide-top h2 {
  margin: 0;
}
.guide-top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--gold);
  text-underline-offset: 3px;
}
.letter-guide p + p {
  margin-top: 12px;
}
.calendar-help {
  padding-block: clamp(28px, 4.5vw, 58px);
  border-bottom: 1px solid var(--edge);
}
.calendar-help h2 {
  font-size: clamp(27px, 2.65vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.13;
  margin-bottom: 16px;
}
.faq-list {
  max-width: 780px;
}
.faq-list details {
  border-bottom: 1px solid var(--edge);
}
.faq-list summary {
  padding: 13px 0;
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.45;
}
.faq-list summary::marker {
  color: var(--gold);
}
.faq-list p {
  margin: 0 0 15px;
  max-width: 71ch;
  color: var(--frost);
  font-size: 15px;
  line-height: 1.62;
}
.guide-create {
  margin-top: 24px;
}
@media (min-width: 701px) and (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .guide-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
  }
}

/* The public sample is a wooden display shelf. Private calendars use the door grid. */
#sample-board {
  padding: 0 3px;
  gap: 0;
  background:
    repeating-linear-gradient(91deg, transparent 0 3px, var(--grain) 3px 4px, transparent 5px 9px),
    linear-gradient(
        180deg,
        var(--pine) 0%,
        var(--ink) 24%,
        var(--ink) 70%,
        var(--pine) 87%,
        var(--wood) 88%,
        var(--brass) 90%,
        var(--wood) 94%,
        var(--walnut) 99%,
        var(--walnut) 100%
      )
      0 0 / 100% 25%;
}
#sample-board .parcel {
  --sprite-x: 0%;
  --sprite-y: 0%;
  --tilt: -6deg;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 44px;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
}
#sample-board [data-wrap="green"] {
  --sprite-x: 50%;
}
#sample-board [data-wrap="blue"] {
  --sprite-x: 100%;
}
#sample-board [data-wrap="gold"] {
  --sprite-y: 100%;
}
#sample-board [data-wrap="berry"] {
  --sprite-x: 50%;
  --sprite-y: 100%;
}
#sample-board [data-wrap="santa"] {
  --sprite-x: 100%;
  --sprite-y: 100%;
}
#sample-board .parcel:nth-child(3n + 2) {
  --tilt: 5deg;
}
#sample-board .parcel:nth-child(4n) {
  --tilt: -2deg;
}
#sample-board .parcel:nth-child(5n) {
  --tilt: 8deg;
}
#sample-board .parcel-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background-image: var(--parcel-art, url("https://img.adventwithfriends.trade/s_0g6t3j5g1t234f/gift-parcels.7dead57a8f.webp"));
  background-size: 300% 200%;
  background-position: var(--sprite-x) var(--sprite-y);
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 1px var(--shade));
  transition: transform 0.16s ease;
}
#sample-board .parcel:nth-child(4n + 1) .parcel-art {
  transform: scaleX(-1);
}
#sample-board .gift-tag {
  position: absolute;
  left: 51%;
  bottom: 11%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42%;
  min-height: 21px;
  padding: 0 5px 1px 7px;
  border: 1px solid var(--gold);
  border-radius: 3px 2px 2px 3px;
  background: linear-gradient(115deg, var(--paper), var(--ivory));
  box-shadow: 0 1px 2px var(--shade);
  color: var(--ink);
  font: 600 clamp(15px, 1.9vw, 25px)/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  transform: translateX(-50%) rotate(var(--tilt));
}
#sample-board .gift-tag::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--wood);
}
#sample-board [data-wrap="santa"] .gift-tag {
  left: 61%;
  bottom: 7%;
  color: var(--red);
  border-color: var(--gold);
  background: var(--gold);
}
#sample-board .sample-read .gift-tag {
  background: var(--success-wash);
}
#sample-board .sample-read .gift-tag::after {
  content: "✓";
  padding-left: 2px;
  font: 700 12px/1 var(--sans);
  color: var(--spruce);
}
#sample-board .parcel:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
#sample-board .parcel:active {
  transform: translateY(1px);
}
@media (hover: hover) {
  #sample-board .parcel:hover {
    translate: 0 -2px;
  }
}
#sample-cabinet .holiday-wire {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  width: 100%;
  height: clamp(24px, 3.1vw, 39px);
  overflow: visible;
  pointer-events: none;
}
.holiday-wire .cable {
  fill: none;
  stroke: var(--night);
  stroke-width: 4;
}
.holiday-wire .cable-glint {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
}
.holiday-wire .socket {
  fill: var(--pine);
  stroke: var(--rule);
  stroke-width: 0.8;
}
.lamp {
  --lamp: var(--gold);
}
.lamp.rose {
  --lamp: var(--rose);
}
.lamp.honey {
  --lamp: var(--ivory);
}
.lamp.spruce {
  --lamp: var(--mint);
}
.bulb-glass {
  fill: var(--lamp);
  stroke: var(--glint);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 2px var(--lamp));
}
#sample-cabinet[data-lights="twinkle"] .bulb-glass {
  animation: bulb-glimmer 4.7s ease-in-out infinite alternate;
}
#sample-cabinet[data-lights="twinkle"] .lamp:nth-of-type(3n) .bulb-glass {
  animation-duration: 3.6s;
  animation-delay: -2.1s;
}
#sample-cabinet[data-lights="twinkle"] .lamp:nth-of-type(3n + 1) .bulb-glass {
  animation-duration: 5.6s;
  animation-delay: -3.8s;
}
@keyframes bulb-glimmer {
  from {
    opacity: 0.65;
    filter: drop-shadow(0 0 1px var(--lamp));
  }
  to {
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--lamp));
  }
}
#sample-cabinet .cabinet-foot {
  white-space: nowrap;
  min-height: 44px;
  gap: 5px;
  padding-block: 0;
}
#light-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 3px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ivory);
  font: 600 12px/1.2 var(--sans);
}
#light-toggle:disabled {
  cursor: default;
  opacity: 0.82;
}
.light-control-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.45;
}
#light-toggle[aria-pressed="true"] .light-control-icon {
  fill: var(--gold);
}
@media (max-width: 700px) {
  #sample-board .gift-tag {
    font-size: clamp(15px, 4.5vw, 21px);
    min-height: 17px;
    padding-inline: 5px 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sample-cabinet .bulb-glass {
    animation: none !important;
  }
}

.footer {
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.info-page {
  max-width: 780px;
  padding-block: clamp(24px, 5vw, 68px);
}
.info-page h1 {
  font: 600 clamp(36px, 5vw, 61px)/1.08 var(--serif);
  letter-spacing: -0.05em;
}
.info-page h2 {
  margin: 26px 0 7px;
  font: 600 clamp(24px, 3vw, 31px)/1.18 var(--serif);
}
.info-page p,
.info-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--frost);
}
.info-page p {
  margin-block: 12px;
}
.info-page ul,
.info-page ol {
  padding-inline-start: 1.3em;
}
.info-page a {
  color: var(--gold);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .footer-links {
    flex-basis: 100%;
    column-gap: 12px;
  }
}

#calendar-action:not(:empty),
#owner-tools:not(:empty) {
  margin-top: 12px;
}
#calendar-action > .primary {
  min-width: min(100%, 225px);
}
.calendar-share .share-actions {
  max-width: 420px;
}
.calendar-share .share-actions .primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ivory) var(--brass) var(--brass);
}
.calendar-share input {
  display: block;
  width: 100%;
  margin-top: 7px;
}
.door .read-mark {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font: bold 12px/1 var(--sans);
}
#board .filled {
  --parcel-x: 0%;
  --parcel-y: 0%;
}
#board .filled:nth-child(5n + 2),
#board .filled:nth-child(5n + 4) { --parcel-x: 50%; }
#board .filled:nth-child(5n + 3),
#board .filled:last-child { --parcel-x: 100%; }
#board .filled:nth-child(5n),
#board .filled:nth-child(5n + 4),
#board .filled:last-child { --parcel-y: 100%; }
#board .filled::before {
  inset: 0;
  margin: auto;
  height: 90%;
  width: auto;
  aspect-ratio: 1;
  border: 0;
  background: var(--parcel-art, url("https://img.adventwithfriends.trade/s_0g6t3j5g1t234f/gift-parcels.7dead57a8f.webp")) var(--parcel-x) var(--parcel-y) / 300% 200% no-repeat;
}
#board .filled::after, #board .filled .ornament { display: none; }
#board .filled .num {
  position: absolute;
  left: 3px;
  bottom: 3px;
  min-width: 1.5em;
  padding: 1px 3px;
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper);
  text-shadow: none;
  transform: none;
  font: 700 clamp(14px, 1.6vw, 19px)/1.12 var(--sans);
  letter-spacing: 0;
}
@media (max-width: 700px) {
  #calendar-action:not(:empty) {
    margin-top: 9px;
  }
}

/* The maker's postcard sits beside the playable shelf and precedes it on a phone. */
.post-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  grid-template-areas: "postcard cabinet";
  gap: clamp(30px, 5.8vw, 82px);
  padding-block: clamp(34px, 4.6vw, 68px);
}
.postcard {
  position: relative;
  grid-area: postcard;
  padding: clamp(23px, 3.2vw, 50px);
  border-radius: 4px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(128deg, var(--red) 0 11px, var(--paper) 11px 20px, var(--spruce) 20px 31px, var(--paper) 31px 40px);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border-top: 5px solid transparent;
  box-shadow: 0 3px 0 var(--brass), 0 15px 38px var(--shade);
}
.postcard .intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: start;
}
.postage {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  justify-items: center;
  width: clamp(58px, 6vw, 78px);
  padding: 4px 4px 6px;
  transform: rotate(6deg);
  color: var(--ink);
  font: 650 11px/1.2 var(--sans);
  border: 1px dashed var(--brass);
  border-radius: 3px;
  outline: 2px solid var(--ivory);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--brass), 0 2px 4px var(--edge);
  background: var(--ivory);
}
.postage > span:last-child { white-space: nowrap; }
.postage:hover { transform: rotate(2deg); }
.postage:focus-visible { outline: 3px solid var(--spruce); }
.stamp-gift {
  width: 78%;
  aspect-ratio: 1;
  background: var(--parcel-art, url("https://img.adventwithfriends.trade/s_0g6t3j5g1t234f/gift-parcels.7dead57a8f.webp")) 0 0 / 300% 200% no-repeat;
}
.post-hero h1 {
  grid-column: 1;
  grid-row: 1;
  max-width: 100%;
  font-size: clamp(51px, 5.2vw, 78px);
  letter-spacing: -0.073em;
  line-height: 0.94;
}
.post-hero h1 em {
  color: var(--red);
}
.post-hero .lede {
  grid-column: 1 / -1;
  margin-top: 19px;
  max-width: 36ch;
  color: var(--ink);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.5;
}
.post-hero .make {
  border-top: 1px solid color-mix(in srgb, var(--brass) 55%, var(--paper));
  margin: clamp(18px, 2vw, 28px) 0 0;
  padding-top: clamp(15px, 1.8vw, 23px);
}
.post-hero .fine {
  color: var(--muted);
}
.post-hero .name-row input {
  width: 0;
  flex: 1;
  max-width: none;
  background: white;
}
.post-hero .primary,
.guestbook-form .primary {
  color: var(--paper);
  background: var(--red);
  border: 1px solid var(--red);
  box-shadow: 0 2px 0 var(--walnut);
}
.post-hero .primary:hover,
.guestbook-form .primary:hover {
  background: color-mix(in srgb, var(--red) 81%, var(--walnut));
}
.showcase-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  padding-bottom: 10px;
}
.showcase-caption h2 {
  color: var(--ivory);
  font: 500 clamp(23px, 2vw, 30px)/1.15 var(--serif);
  letter-spacing: -0.045em;
}
.showcase-caption p {
  color: var(--frost);
  font-size: 13px;
}
#sample-progress { font-variant-numeric: tabular-nums; }
#sample-dialog .quote {
  margin: 26px 0 18px;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--brass);
  font: italic 500 clamp(24px, 4vw, 33px)/1.25 var(--serif);
  color: var(--ink);
}
.sample-explain {
  color: var(--muted);
  font-size: 14px;
  max-width: 43ch;
  margin-bottom: 21px;
}
@media (prefers-reduced-motion: no-preference) {
  #sample-dialog[open] { animation: unfold-sample 240ms ease-out; }
  @keyframes unfold-sample {
    from { opacity: 0.3; transform: translateY(10px) rotate(-2deg); }
    to { opacity: 1; transform: none; }
  }
}
.post-hero + .how { padding-block: clamp(28px, 3.7vw, 52px); }
.post-hero + .how .steps { position: relative; }
.post-hero + .how .step-icon {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pine);
  border: 1px solid var(--brass);
}
.post-hero + .how .step-icon svg { width: 24px; height: 24px; }
.make:has(#nickname:disabled) #make-terms { display: none; }
.guide-example {
  display: grid;
  grid-template-columns: minmax(0, .88fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(26px, 4vw, 48px);
  border-top: 1px solid var(--edge);
  padding-top: clamp(24px, 3.6vw, 42px);
}
.guide-story h3 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.045em;
  color: var(--ivory);
}
.guide-story p,
.guide-example figcaption {
  color: var(--frost);
  font-size: 15px;
  line-height: 1.55;
}
.guide-story p { margin-top: 14px; }
.guide-owner { display: grid; gap: 22px; }
.guide-example figcaption strong {
  display: block;
  margin-bottom: 4px;
  font: 500 23px/1.15 var(--serif);
  color: var(--ivory);
}
.guide-example img {
  display: block;
  width: min(100%, 352px);
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .guide-example { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-story { grid-column: 1 / -1; max-width: 65ch; }
}
@media (max-width: 660px) {
  .guide-example { grid-template-columns: minmax(0, 1fr); }
  .guide-story { grid-column: auto; }
}
@media (min-width: 1001px) {
  .post-hero + .how .steps::before {
    content: "";
    position: absolute;
    top: 21px;
    inset-inline: 15px 22%;
    border-top: 1px dashed var(--edge);
  }
  .post-hero + .how .steps article {
    position: relative;
    flex-direction: column;
    gap: 12px;
  }
}
.guestbook {
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--brass);
}
.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 8vw, 110px);
  padding-block: clamp(32px, 5vw, 69px);
}
.guestbook h2 {
  color: var(--red);
  font-size: clamp(33px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 14px;
}
.guestbook-welcome > p { max-width: 36ch; }
.guestbook-privacy {
  margin-top: 13px;
  font-size: 14px;
  color: var(--muted);
}
.guestbook-form { min-width: 0; }
.guestbook-form fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
.guestbook-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.guestbook-form label span {
  font-weight: 400;
  color: var(--muted);
}
.guestbook-form textarea,
.guestbook-form input:not([name="website"]) {
  width: 100%;
  background: white;
}
.guestbook-form textarea { display: block; resize: vertical; }
.guestbook-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}
.guestbook-bottom input, .guestbook-bottom button { min-height: 45px; }
#guest-guidance, .guestbook-unavailable, .guestbook-status, .guestbook-empty, .guestbook-closed {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.guestbook-status:not(:empty), .guestbook-unavailable { font-weight: 650; }
.guestbook-form:has(fieldset:disabled) .primary { opacity: 0.58; cursor: default; }
.guestbook-unavailable, .guestbook-empty, .guestbook-closed { display: none; }
.guestbook-form:has(fieldset:disabled) .guestbook-unavailable,
.guestbook-comments[data-gf-empty]:not([data-gf-off]) + .guestbook-empty,
.guestbook-comments[data-gf-off] ~ .guestbook-closed { display: block; }
.guest-entry {
  min-width: 0;
  overflow-wrap: anywhere;
  border-top: 1px solid color-mix(in srgb, var(--brass) 55%, var(--paper));
  margin-top: 20px;
  padding-top: 14px;
  font-size: 15px;
}
.guest-entry header, .reply-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.guest-entry time, .guest-entry [data-gf-c-owner], .guest-entry [data-gf-c-to] {
  font-size: 13px;
  color: var(--muted);
}
.guest-entry [data-gf-c-text] { margin-top: 4px; white-space: pre-wrap; }
.guest-entry [data-gf-c-replies]:not(:empty) { padding-left: clamp(12px, 3vw, 24px); }
.guestbook [data-gf-c-reply], .guestbook [data-gf-reply-cancel] {
  min-height: 44px;
  padding: 0 4px 0 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--red);
  font-size: 14px;
}
.guestbook [data-gf-replying] { margin-top: 10px; }
@media (min-width: 701px) and (max-width: 949px) {
  .post-hero { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr); gap: 22px; }
  .post-hero .name-row { flex-direction: column; }
  .post-hero .name-row input { width: 100%; }
}
@media (max-width: 700px) {
  .post-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "postcard" "cabinet";
    gap: 24px;
    padding-block: 16px 30px;
  }
  #sample-cabinet .village {
    background-image: var(--mobile-village-art, url("https://img.adventwithfriends.trade/s_0g6t3j5g1t234f/winter-village-mobile.9e2e3de53d.webp"));
  }
  .postcard { padding: 19px 19px 17px; }
  .postage { width: 59px; }
  .post-hero h1 {
    font-size: clamp(38px, 9.2vw, 56px);
    line-height: 1;
  }
  .post-hero h1 em { display: inline; }
  .post-hero .lede { margin-top: 12px; font-size: 15px; line-height: 1.45; }
  .post-hero .make { margin-top: 14px; padding-top: 13px; }
  .post-hero .name-row .primary { gap: 5px; padding-inline: 12px; }
  .guestbook-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .guestbook h2 { margin-bottom: 9px; }
  .guestbook-privacy { margin-top: 8px; }
  .guestbook-bottom { gap: 9px; }
  .guestbook-bottom .primary { font-size: 14px; padding-inline: 12px; }
  .post-hero + .how .steps { gap: 16px; }
  .post-hero + .how .steps::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 21px;
    border-left: 1px dashed var(--edge);
  }
  .post-hero + .how .steps article { position: relative; }
}
@media (max-width: 420px) {
  .mast:has(#back-calendar:not([hidden])) nav a[href="#how"] { display: none; }
}
@media (max-width: 360px) {
  .postcard { padding-inline: 15px; }
  .post-hero .name-row { gap: 6px; }
  .post-hero .name-row .primary { padding-inline: 9px; }
  .post-hero .name-row input { padding-inline: 9px; }
}
