body {
  --notice-ink: var(--ink);
  --notice-paper: #fffdf9;
  --notice-mint: #a4c5aa;
  --notice-display: var(--display);
  --gutter: clamp(1.25rem, 4.5vw, 4.75rem);
  color: var(--notice-ink);
  background: var(--notice-paper);
}
.mast { background: white; border-bottom-color: #dedfd6; }
.mast-inner, .foot, .landing { width: min(100%, 1600px); }
.mast-inner, .foot { padding-inline: var(--gutter); }
.mast nav a { color: var(--notice-ink); }
.mast nav .nav-button { border-radius: 2rem; background: var(--notice-ink); color: white; border-color: var(--notice-ink); }
.landing { padding: 0; }
.landing :focus-visible { outline: 3px solid #194c94; outline-offset: 3px; }
.landing h1, .landing h2, .landing h3 { margin: 0; color: inherit; font-family: var(--notice-display); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.landing h3 { font-family: var(--font-sans); font-weight: 740; letter-spacing: -.012em; line-height: 1.18; }
.landing .button.primary { min-height: 3rem; padding-inline: 1.4rem; }
.memory-actions .button::after { content: "→" / ""; }
.family-board { background: var(--notice-mint) url("noticeboard-texture.a80484f87861.webp") repeat; }
.board-layout { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); align-items: center; }
.board-note {
  position: relative; z-index: 1; justify-self: center; width: 88%; margin-block: 2.5rem;
  isolation: isolate; padding: clamp(1.5rem, 3.2vw, 3.5rem);
}
.board-note::after {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--notice-paper);
  transform: rotate(-2deg); box-shadow: .15rem .25rem .4rem #25362b40;
}
.board-note::before {
  content: ""; position: absolute; left: 36%; top: -.72rem; width: 24%; height: 1.65rem;
  transform: rotate(-5deg); background: #decaa2ed;
  clip-path: polygon(1% 4%, 99% 0, 98% 20%, 100% 38%, 98% 60%, 99% 94%, 0 100%, 2% 78%, 0 60%, 2% 40%, 0 18%);
}
.board-note h1 { font-size: clamp(2.6rem, 4.9vw, 5rem); max-width: 12ch; line-height: 1.06; }
.board-note p { margin: 1rem 0 1.3rem; max-width: 26ch; font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1.4; }
.memory-actions small { display: block; max-width: 33ch; margin-top: .75rem; color: #58534e; font-size: .82rem; }
.memory-sample { position: relative; margin: 0; }
.memory-sample img { display: block; width: 100%; height: auto; mask-image: linear-gradient(to right, transparent, black 8%); }
.memory-sample figcaption { position: absolute; right: 5%; bottom: 2%; }
.gift-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); background: #f9e9e5; }
.gift-copy { align-self: center; padding: clamp(2rem, 4.5vw, 4.5rem) var(--gutter); }
.gift-copy h2, .making h2, .keepsake h2 { font-size: clamp(2.2rem, 4.2vw, 4.4rem); }
.gift-copy h2 { max-width: 15ch; }
.gift-copy > p { max-width: 39ch; margin: 1rem 0 1.2rem; }
.gift-story img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 43rem; object-fit: cover; object-position: 48% 37%; }
.gift-ideas { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.gift-ideas dt, .gift-ideas dd { margin: 0; padding: .65rem 0; border-top: 1px solid #d5beb7; }
.gift-ideas dt { font-weight: 700; padding-right: 1rem; }
.gift-ideas dd { max-width: 37ch; }
.making { margin: clamp(2.25rem, 4.5vw, 4.75rem) var(--gutter); }
.making h2 { margin-bottom: 1.55rem; }
.making-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2.4vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.making-steps img { display: block; width: 100%; height: clamp(11rem, 18vw, 18rem); object-fit: contain; background: #f0eee6; }
.making-steps li:last-child img { object-fit: cover; }
.making-steps h3 { font-size: clamp(1.4rem, 2vw, 2rem); margin-top: .85rem; }
.making-steps p { margin: .5rem 0 0; max-width: 35ch; }
.keepsake { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--gutter); background: #234237; color: #fffcf5; padding: clamp(2rem, 4vw, 4rem) var(--gutter); }
.keepsake h2 { max-width: 18ch; }
.keepsake p { margin: 0 0 1rem; max-width: 40ch; }
.keepsake p a { color: inherit; }
#sample-book { width: min(42rem, 94%); max-height: 94dvh; overflow: auto; padding: clamp(1rem, 2vw, 1.5rem); border: 0; border-radius: .4rem; color: var(--notice-ink); background: var(--notice-paper); }
#sample-book::backdrop { background: #17261fd6; }
.sample-heading, .sample-navigation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sample-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
#sample-book figure { margin: 1rem 0 .7rem; }
.sample-image { display: block; width: 100%; height: min(52dvh, 24rem); object-fit: contain; background: #f0eee6; }
#sample-book figcaption { margin-top: .65rem; }
.sample-control { min-height: 44px; padding: .5rem 1rem; border: 1px solid #738577; background: #fffdf9; color: inherit; border-radius: 2rem; font: inherit; cursor: pointer; }
.sample-control:not([aria-disabled="true"]):hover { background: #e9f1e6; }
.sample-control[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 760px) {
  .mast-inner { gap: .5rem; }
  .mast nav { gap: .65rem; }
  .mast nav a { display: inline-flex; align-items: center; min-height: 44px; }

  .board-layout { grid-template-columns: 1fr; }
  .board-note { width: min(88%, 32rem); margin: 2rem auto 0; padding: 1.5rem; }
  .board-note h1 { font-size: clamp(2.5rem, 8.3vw, 3.9rem); max-width: 14ch; }
  .board-note p { margin: .65rem 0 .85rem; max-width: 34ch; }
  .memory-sample { width: min(100%, 32rem); justify-self: center; }
  .memory-sample img { mask-image: linear-gradient(to bottom,transparent,black 4%); }
  .gift-story, .keepsake { grid-template-columns: 1fr; }
  .gift-story img { height: auto; max-height: 22rem; }
  .gift-copy { padding-block: 2rem; }
  .making-steps { grid-template-columns: 1fr; }
  .making-steps li { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1rem; align-items: center; }
  .making-steps img { height: 8rem; }
  .making-steps h3 { margin: 0; }
  .keepsake { gap: 1rem; }
}
@media (max-width: 410px) {
  .memory-actions .button.primary { padding-inline: .85rem; gap: .35rem; }
  .gift-ideas { grid-template-columns: 1fr; }
  .gift-ideas dt { padding-bottom: 0; }
  .gift-ideas dd { padding-top: .15rem; border-top: 0; }
}
