/* Meritus Memories: the Auxiliary's service scrapbook, reopened.
   Navy book-cloth cover, pale-blue construction-paper pages, index tabs, name badges,
   kraft tags and award ribbons, all in Meritus colors.
   Built for older readers on phones: large type, strong contrast, big tap targets. */

:root {
  /* Meritus brand (meritushealth.com), darkened where needed for AA contrast */
  --navy: #0a345b;
  --navy-2: #1e4265;
  --cloth: #0a2f52;
  --cloth-deep: #061f38;
  --blue: #1f6fb8;
  --blue-bright: #3c92df;
  --sky: #dbe9f7;
  --slate: #44535f;
  --sage: #3f7d55;
  --sage-bright: #68af7e;
  --sage-light: #d3e8d9;
  --brick: #9c3324;

  /* Album materials */
  --page: #e6eff7;          /* pale-blue construction paper */
  --page-edge: #c3d4e5;
  --card: #fffefb;          /* white card stock */
  --kraft: #d9b783;
  --kraft-deep: #b48a50;
  --kraft-ink: #3d2f19;
  --rule: #c7d9ec;
  --ink: #1b2a38;
  --pencil: #505b66;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Young Serif", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --radius: 6px;
  --lift: 0 1px 1px rgb(8 30 52 / 14%), 0 10px 22px -8px rgb(8 30 52 / 38%);
  --lift-high: 0 2px 3px rgb(8 30 52 / 16%), 0 18px 34px -10px rgb(8 30 52 / 45%);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.6 1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.5'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --ink-wear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.3 1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --torn:
    linear-gradient(#000 0 0) center / calc(100% - 10px) 100% no-repeat,
    conic-gradient(from 225deg at 100% 50%, #000 90deg, #0000 0) left / 5px 6px repeat-y,
    conic-gradient(from 45deg at 0 50%, #000 90deg, #0000 0) right / 5px 6px repeat-y;

  /* Text size (A / A+ / A++) changes this */
  font-size: 125%; /* 20px base */
  color-scheme: light;
  scrollbar-color: var(--navy-2) var(--cloth-deep);
}
:root[data-text="lg"] { font-size: 143.75%; } /* 23px */
:root[data-text="xl"] { font-size: 162.5%; }  /* 26px */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  caret-color: var(--navy);
  /* navy book cloth: woven warp and weft over a soft mottle */
  background-color: var(--cloth);
  background-image:
    repeating-linear-gradient(0deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 14%) 0 1px, transparent 1px 3px),
    radial-gradient(120% 70% at 50% 0%, rgb(60 146 223 / 14%), transparent 70%);
}
::selection { background: var(--sage-light); color: var(--navy); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 4px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.hand { font-family: var(--font-hand); font-size: 1.5em; line-height: 1.15; }
.hand-head { font-family: var(--font-hand); font-weight: 700; font-size: 2rem; margin-bottom: .6rem; }
.note-sage { color: var(--sage); }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 40em; }
.muted { color: var(--slate); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.page .wrap { width: 100%; }
.narrow { max-width: 44rem; }
.section { padding-block: clamp(2rem, 6vw, 3.5rem); }
.stack > * + * { margin-top: 1.25rem; }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 46rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-split { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: start; }
}
@media (min-width: 46rem) and (max-width: 64rem) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--card); color: var(--navy); font-weight: 700; padding: .75rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---------- The cover (header) ---------- */
.cover { color: #dbe7f3; }
.topbar { font-size: .8rem; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; padding-block: .45rem; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; letter-spacing: .02em; }
.topbar .hosp { color: #b9cee3; }
@media (max-width: 46rem) { .topbar .hosp, .textsize > span { display: none; } .topbar .wrap { flex-wrap: nowrap; } }
.textsize { display: flex; align-items: center; gap: .35rem; }
.textsize button {
  font: inherit; font-weight: 700; color: var(--navy); background: var(--page); border: 0; border-radius: 4px;
  min-width: 2.4rem; min-height: 2.4rem; cursor: pointer; padding: 0 .4rem; line-height: 1;
}
.textsize button[aria-pressed="true"] { background: var(--blue-bright); color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.textsize button:nth-of-type(2) { font-size: 1.1em; }
.textsize button:nth-of-type(3) { font-size: 1.25em; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(1rem, 3vw, 1.75rem); }
/* The album's cover label: a pasted card plate with a ruled double border */
.brand {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; text-decoration: none;
  color: var(--navy); background: var(--card) var(--grain); padding: .7rem 1.4rem .75rem;
  border-radius: 3px; box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--navy), var(--lift-high);
}
.brand:hover { color: var(--navy); }
.brand-name { font-family: var(--font-head); font-size: clamp(1.4rem, 5vw, 2.3rem); white-space: nowrap; }
.brand-name em { font-family: var(--font-hand); font-style: normal; font-weight: 700; color: var(--blue); font-size: 1.3em; margin-left: .05em; }
.brand-sub { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-top: .4rem; font-weight: 700; }
@media (min-width: 68rem) { .masthead { justify-content: center; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-weight: 700; color: var(--navy); background: var(--page);
  border: 0; border-radius: var(--radius); min-height: 3rem; padding: 0 1rem; cursor: pointer; box-shadow: var(--lift);
}
.menu-toggle .bars { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (min-width: 68rem) { .menu-toggle { display: none; } }

/* ---------- The album: a page with index tabs ---------- */
.album { width: min(100% - 1rem, 84rem); margin-inline: auto; position: relative; }
.page {
  position: relative; z-index: 1; display: block; min-height: 60vh;
  background: var(--page) var(--fibre);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4.5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 0 0 1px var(--page-edge), 0 24px 48px -16px rgb(0 0 0 / 55%);
}
.page:focus { outline: none; }
/* a second sheet peeking out under the page (on the album, so it sits behind the page's own layer) */
.album::before {
  content: ""; position: absolute; z-index: 0; top: .45rem; bottom: -.45rem; left: .35rem; right: -.3rem; background: #cfdcea;
  border-radius: 3px; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 50%);
}
@media (min-width: 68rem) { .album::before { right: calc(12.5rem - .3rem); } }
@media (min-width: 46rem) {
  .page { padding-left: clamp(3.75rem, 6vw, 5rem); }
  /* binder holes punched down the left edge */
  .page::before {
    content: ""; position: absolute; left: 1.1rem; top: 1.5rem; bottom: 1.5rem; width: 1.2rem; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--cloth-deep) 0 .4rem, rgb(0 0 0 / 22%) .42rem .5rem, transparent .54rem) 0 0 / 1.2rem 6.5rem repeat-y;
  }
}

.site-nav { display: none; margin-bottom: 1rem; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-nav a {
  display: flex; align-items: center; min-height: 3.1rem; padding: .55rem 1rem; font-weight: 700; color: var(--navy); text-decoration: none;
  background: var(--tab, var(--card)); border-radius: .45rem; box-shadow: var(--lift); line-height: 1.25;
}
.site-nav li:nth-child(4n+1) { --tab: var(--card); }
.site-nav li:nth-child(4n+2) { --tab: var(--kraft); }
.site-nav li:nth-child(4n+3) { --tab: var(--sage-light); }
.site-nav li:nth-child(4n+4) { --tab: #c6dcf1; }
.site-nav li.nav-event { --tab: var(--blue); }
.site-nav .nav-event a { color: #fff; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.site-nav a:hover { color: var(--navy); filter: brightness(1.04); }
.site-nav .nav-event a:hover { color: #fff; }

@media (min-width: 68rem) {
  .album { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem; align-items: start; }
  .page { grid-column: 1; grid-row: 1; }
  /* index tabs sticking out of the right edge of the page */
  .site-nav { display: block; grid-column: 2; grid-row: 1; position: sticky; top: 1rem; margin: 2.5rem 0 0; z-index: 0; }
  .site-nav ul { gap: 0; }
  .site-nav li + li { margin-top: -.3rem; }
  .site-nav a {
    margin-left: -.6rem; padding: .7rem .9rem .7rem 1.6rem; border-radius: 0 .7rem .7rem 0; font-size: .82rem; min-height: 3.2rem;
    box-shadow: 0 1px 1px rgb(0 0 0 / 18%), 4px 8px 14px -8px rgb(0 0 0 / 60%);
    transition: transform .25s var(--ease-out);
  }
  .site-nav a:hover { transform: translateX(.3rem); filter: none; }
  /* the open section's tab joins the page */
  .site-nav a[aria-current="page"] {
    position: relative; z-index: 2; background: var(--page) var(--fibre); color: var(--navy); text-decoration: none;
    margin-left: -1rem; padding-left: 2rem; box-shadow: 4px 8px 14px -8px rgb(0 0 0 / 60%);
  }
  .site-nav .nav-event a[aria-current="page"] { color: var(--navy); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.1rem; padding: .6rem 1.3rem; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  background: var(--navy); color: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / 20%), 0 6px 12px -6px rgb(0 0 0 / 40%);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--navy); }
.btn-sage { background: var(--sage); }
.btn-sage:hover { background: #2f6342; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
button[disabled] { opacity: .7; cursor: progress; }

/* Kraft shipping tag: the "go" action */
.btn-tag {
  background: var(--kraft) var(--grain); color: var(--kraft-ink); font-size: 1.08rem; border: 0; border-radius: 2px;
  padding: .7rem 1.5rem .7rem 2.7rem; min-height: 3.4rem; position: relative;
  clip-path: polygon(1rem 0, 100% 0, 100% 100%, 1rem 100%, 0 calc(100% - 1rem), 0 1rem);
  box-shadow: inset 0 -3px 0 rgb(61 47 25 / 18%);
}
.btn-tag::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; border-radius: 50%;
  background: var(--page); box-shadow: 0 0 0 .2rem var(--kraft-deep), inset 0 1px 2px rgb(0 0 0 / 35%);
}
.btn-tag:hover { background-color: #d0aa71; color: var(--kraft-ink); transform: rotate(-1.5deg); }
.btn-tag:focus-visible { clip-path: none; border-radius: var(--radius); }

/* ---------- Pasted pieces ---------- */
.sheet { background: var(--card); border-radius: 2px; box-shadow: var(--lift); padding: clamp(1.25rem, 4vw, 2rem); position: relative; }
.sheet-kraft { background: var(--kraft) var(--grain); color: var(--kraft-ink); }
.sheet-kraft h2, .sheet-kraft h3 { color: var(--navy); }
.sheet-lined {
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.6rem - 1px), var(--rule) calc(1.6rem - 1px) 1.6rem);
  background-position: 0 .55rem;
}

/* Washi tape */
.taped { position: relative; }
.taped::before {
  content: ""; position: absolute; top: -.85rem; left: 50%; width: 6.5rem; height: 1.7rem; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgb(60 146 223 / 50%) 0 8px, rgb(255 255 255 / 50%) 8px 16px);
  z-index: 2; pointer-events: none; -webkit-mask: var(--torn); mask: var(--torn);
}
.taped.tape-sage::before { background: repeating-linear-gradient(-45deg, rgb(104 175 126 / 55%) 0 8px, rgb(255 255 255 / 50%) 8px 16px); }
.taped.tape-corner::before { left: 1.5rem; transform: rotate(-12deg); width: 5rem; }

/* Photos */
.photo { margin: 0; }
.photo .frame { position: relative; }
.photo img { width: 100%; }
.photo figcaption { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.2; color: var(--navy-2); margin-top: .55rem; text-align: center; }
.photo-polaroid { filter: drop-shadow(0 2px 2px rgb(8 30 52 / 18%)) drop-shadow(0 14px 18px rgb(8 30 52 / 22%)); }
.photo-polaroid .frame { background: #fff; padding: .75rem .75rem 0; }
.photo-polaroid figcaption { background: #fff; margin: 0; padding: .6rem .75rem 1.1rem; }
.photo-tape .frame { box-shadow: var(--lift); }
.photo-tape .frame::before, .photo-tape .frame::after {
  content: ""; position: absolute; width: 5rem; height: 1.5rem; background: rgb(255 255 255 / 62%); box-shadow: 0 1px 2px rgb(0 0 0 / 12%); z-index: 1;
}
.photo-tape .frame::before { top: -.6rem; left: -1rem; transform: rotate(-35deg); }
.photo-tape .frame::after { bottom: -.6rem; right: -1rem; transform: rotate(-35deg); }
.photo-corners .frame { padding: .5rem; background: var(--card); box-shadow: var(--lift); }
.photo-corners .frame::before, .photo-corners .frame::after {
  content: ""; position: absolute; width: 2.2rem; height: 2.2rem; background: var(--navy);
}
.photo-corners .frame::before { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.photo-corners .frame::after { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.tilt-left { transform: rotate(-2deg); }
.tilt-right { transform: rotate(1.8deg); }
@media (max-width: 30rem) { .tilt-left { transform: rotate(-1deg); } .tilt-right { transform: rotate(1deg); } }

.photo-placeholder {
  aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, #e9e2d0 0 12px, #e0d7c0 12px 24px); color: var(--slate); font-weight: 600;
}

/* Rubber stamps */
.stamp {
  display: inline-block; font-family: var(--font-body); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; padding: .3rem .65rem; border: 3px solid currentColor; border-radius: 4px; transform: rotate(-4deg);
  color: var(--brick); background: rgb(255 255 255 / 55%); white-space: nowrap;
  -webkit-mask-image: var(--ink-wear); mask-image: var(--ink-wear); mask-size: 140px 140px;
}
.stamp-identified { color: var(--sage); }
.stamp-big { font-size: 1rem; padding: .35rem .85rem; border-width: 4px; }

/* "HELLO my name is" badge: blank until the Tri-State writes her name in */
.badge {
  width: 15rem; max-width: 100%; background: #fff; border-radius: .65rem; overflow: hidden; transform: rotate(3deg);
  box-shadow: 0 1px 1px rgb(8 30 52 / 20%), 0 12px 22px -10px rgb(8 30 52 / 55%); text-align: center;
}
.badge-top { background: var(--blue); color: #fff; padding: .4rem .5rem .35rem; }
.badge-hello { display: block; font-weight: 800; font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.badge-my { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; margin-top: .15rem; }
.badge-write { position: relative; min-height: 4rem; display: grid; place-items: center; padding: .35rem .9rem .7rem; }
.badge-write::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 1rem; border-bottom: 2px solid #c3ccd5; }
.badge-name {
  position: relative; z-index: 1; display: block; max-width: 100%; overflow-wrap: break-word;
  font-family: var(--font-hand); font-size: 2.35rem; line-height: 1; color: var(--pencil);
}
.badge-name:empty::before { content: "?"; color: #a9b4bf; font-size: 2.6rem; }
.badge.is-penciled .badge-name { color: var(--pencil); font-weight: 500; transform: rotate(-2deg); }
.badge.is-inked .badge-name { color: var(--navy); font-weight: 700; }
.mystery-photo .badge.is-inked .badge-name { animation: ink-in 1.4s var(--ease-out); }
.badge.is-long .badge-name { font-size: 1.75rem; }
@keyframes ink-in { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -5% -10% 0); } }
.badge-sm { width: 11rem; transform: rotate(-2deg); }
.badge-sm .badge-hello { font-size: 1.1rem; }
.badge-sm .badge-my { font-size: .6rem; }
.badge-sm .badge-write { min-height: 3rem; }
.badge-sm .badge-name { font-size: 1.7rem; }
.badge-sm.is-long .badge-name { font-size: 1.3rem; }

/* Award ribbon label */
.ribbon-label {
  display: inline-block; background: var(--sage); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .03em;
  padding: .35rem 1.5rem .35rem .85rem; clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%);
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(.5rem, 2vw, 1rem); }
.mystery-feature { display: grid; gap: 1.5rem 2.5rem; }
.mystery-head { margin: 0; }
@media (min-width: 46rem) {
  .mystery-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: .6rem; }
  .mystery-feature .mystery-photo { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .mystery-feature .mystery-head { grid-column: 2; grid-row: 1; align-self: end; }
  .mystery-feature .mystery-copy { grid-column: 2; grid-row: 2; }
}
.mystery-photo { position: relative; width: 100%; max-width: 24rem; margin-inline: auto; padding-bottom: 7.75rem; }
.mystery-photo .badge { position: absolute; right: -3rem; bottom: 0; z-index: 3; }
@media (max-width: 46rem) {
  .mystery-photo { max-width: 14.5rem; padding-bottom: 7rem; margin-inline: 0 auto; }
  .mystery-photo .badge { right: -2.5rem; }
  .mystery-photo .badge { width: 12.5rem; }
  .mystery-photo .badge-hello { font-size: 1.3rem; }
}
.mystery-copy h1 { margin-bottom: .6rem; }
.recorded { font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.1; color: var(--slate); margin: 0 0 .15rem; }
.mystery-title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.mystery-name { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--navy); margin: 0; }
.mystery-copy .btn-row { margin-top: 1.5rem; }
.mystery-copy .more { margin: 1.1rem 0 0; }
.blank { display: inline-block; min-width: 4.5ch; border-bottom: 3px solid var(--blue); }
.hero-intro { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .hero-intro { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; } }
.hero-intro .lede { margin: 0; }

/* Presenting sponsor: a typed label pasted on the page */
.presented {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; justify-self: start;
  padding: .9rem 1.2rem; background: var(--card); box-shadow: var(--lift); transform: rotate(-.8deg); border-radius: 2px;
}
.presented::before {
  content: ""; position: absolute; top: -.7rem; left: 1rem; width: 4.5rem; height: 1.4rem; transform: rotate(-6deg);
  background: rgb(255 255 255 / 70%); box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}
.presented-label { font-family: var(--font-hand); font-size: 1.4rem; line-height: 1.1; color: var(--navy-2); }
.presented a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.presented img { max-height: 3.2rem; width: auto; }

/* Countdown: tear-off tickets */
.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 6rem)); gap: .6rem; margin: .9rem 0 1.1rem; }
.countdown div {
  background: var(--card); color: var(--navy); border-radius: 3px; padding: .55rem .2rem .45rem; text-align: center;
  background-image: radial-gradient(circle at 0 50%, transparent .35rem, var(--card) .37rem), radial-gradient(circle at 100% 50%, transparent .35rem, var(--card) .37rem);
  background-size: 51% 100%; background-position: left, right; background-repeat: no-repeat;
}
.countdown b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.95rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }

/* The invitation: a printed navy card with the 75th ribbon pinned on */
.invite {
  background: var(--navy); color: #fff; border-radius: 3px; padding: clamp(1.4rem, 5vw, 2.75rem); position: relative;
  outline: 2px solid rgb(255 255 255 / 35%); outline-offset: -.6rem; box-shadow: var(--lift-high); margin-top: 1.5rem;
}
.invite h2, .invite h3 { color: #fff; }
.invite a:not(.btn) { color: #fff; }
.invite .when { font-size: 1.2rem; font-weight: 700; }
.invite-hand { display: block; font-family: var(--font-hand); font-size: 2.1rem; line-height: 1; color: #bfe3ca; margin: 0 0 .35rem; }
/* the 75th ribbon is pinned over the card's top edge, beside the heading */
.invite-head { display: flex; gap: clamp(.75rem, 2.5vw, 1.25rem); align-items: flex-start; }
.invite-head h2 { margin-bottom: .4rem; }
.rosette {
  flex: none; width: clamp(4.25rem, 11vw, 5.75rem); height: auto; margin-top: calc(-1 * clamp(1.4rem, 5vw, 2.75rem) - 1.5rem);
  transform: rotate(-7deg); filter: drop-shadow(0 6px 6px rgb(0 0 0 / 35%)); pointer-events: none;
}

/* Quick links: kraft tags */
.quicklinks {
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  filter: drop-shadow(0 1px 1px rgb(8 30 52 / 18%)) drop-shadow(0 8px 10px rgb(8 30 52 / 22%));
}
.quicklink {
  position: relative; display: block; padding: 1.1rem 1.2rem 1.15rem 2.9rem; text-decoration: none; color: var(--kraft-ink);
  background: var(--kraft) var(--grain);
  clip-path: polygon(1.1rem 0, 100% 0, 100% 100%, 1.1rem 100%, 0 calc(100% - 1.1rem), 0 1.1rem);
  transition: transform .25s var(--ease-out);
}
.quicklink::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.45rem; width: .8rem; height: .8rem; border-radius: 50%;
  background: var(--page); box-shadow: 0 0 0 .2rem var(--kraft-deep), inset 0 1px 2px rgb(0 0 0 / 35%);
}
.quicklink { --tag: var(--kraft); --ring: var(--kraft-deep); background-color: var(--tag); }
.quicklink:nth-child(odd) { transform: rotate(-.9deg); }
.quicklink:nth-child(even) { transform: rotate(.7deg); }
/* each tag matches its section's index tab */
.quicklink:nth-child(6n+1) { --tag: #cfe2f5; --ring: #7fa9d3; }   /* Share a Memory: sky */
.quicklink:nth-child(6n+2) { --tag: #fffefb; --ring: #c9bfa9; }   /* Our Story: white card */
.quicklink:nth-child(6n+3) { --tag: #d3e8d9; --ring: #8dbb9b; }   /* Today's Volunteers: sage */
.quicklink:nth-child(6n+4) { --tag: #1f6fb8; --ring: #0f4c86; color: #fff; }  /* The Celebration: blue */
.quicklink:nth-child(6n+4) strong { color: #fff; }
.quicklink:nth-child(6n+5) { --tag: #d9b783; --ring: #b48a50; }   /* Through the Decades: kraft */
.quicklink:nth-child(6n)   { --tag: #f1e3c6; --ring: #c8ae80; }   /* The 1907 Cookbook: old paper */
.quicklink::before { box-shadow: 0 0 0 .2rem var(--ring), inset 0 1px 2px rgb(0 0 0 / 35%); }
@media (min-width: 46rem) { .quicklinks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; } }
.quicklink:hover { transform: rotate(0) translateY(-3px); }
.quicklink:focus-visible { clip-path: none; }
.quicklink strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--navy); margin-bottom: .2rem; line-height: 1.2; }
.quicklink span { font-size: .9rem; }
.quicklink img { margin-bottom: .8rem; border: 5px solid #fff; }

/* Tabs (I know who she is / I plan to attend): file-folder tabs on an index card */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: -1px; position: relative; z-index: 1; padding-inline: .5rem; }
.tabs button {
  font: inherit; font-weight: 700; color: var(--kraft-ink); background: var(--kraft) var(--grain); border: 0;
  border-radius: .6rem .6rem 0 0; padding: .8rem .5rem; cursor: pointer; min-height: 3.2rem; line-height: 1.2; font-size: .88rem;
  box-shadow: inset 0 -6px 8px -6px rgb(0 0 0 / 25%);
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--navy); box-shadow: 0 -2px 6px -2px rgb(8 30 52 / 25%); }
.tabpanel, .index-card {
  background-color: var(--card); border-radius: 2px; box-shadow: var(--lift); padding: clamp(1.1rem, 4vw, 1.75rem);
  background-image:
    linear-gradient(var(--blue-bright), var(--blue-bright)),
    repeating-linear-gradient(to bottom, transparent 0 calc(1.6rem - 1px), var(--rule) calc(1.6rem - 1px) 1.6rem);
  background-size: 100% 2px, 100% 100%; background-repeat: no-repeat, repeat; background-position: 0 .9rem, 0 2.2rem;
}
.js .tabpanel[hidden] { display: none; }

/* ---------- Forms ---------- */
.form > * + * { margin-top: 1.1rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.field .help, .form > .help { font-size: .85rem; color: var(--slate); margin: -.15rem 0 .4rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #7f8e9c; border-radius: var(--radius);
  padding: .7rem .8rem; min-height: 3.1rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid var(--sky); outline-offset: 0; }
.field input[type="file"] { font: inherit; font-size: .85rem; width: 100%; padding: .8rem; border: 2px dashed #7f8e9c; border-radius: var(--radius); background: #fff; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 700; color: var(--navy); background: var(--page); border: 2px solid var(--navy); border-radius: var(--radius); padding: .45rem .9rem; margin-right: .75rem; cursor: pointer; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field .choices { display: grid; gap: .5rem; }
.field .choices label, .field.checkbox label {
  display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer;
  background: #fff; border: 2px solid #c5ccd3; border-radius: var(--radius); padding: .7rem .8rem; margin: 0;
}
.field input[type="radio"], .field input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .1rem; accent-color: var(--navy); }
.field .choices label:has(input:checked), .field.checkbox label:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--brick); }
.errors { color: var(--brick); font-weight: 700; margin: .35rem 0 0; padding: 0; list-style: none; }
.form-errors { background: #fbe9e6; border: 2px solid var(--brick); padding: .8rem 1rem; border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row-2 { display: grid; gap: 1.1rem; align-items: end; }
@media (min-width: 36rem) { .row-2 { grid-template-columns: 1fr 1fr; } }
.privacy-note { font-size: .82rem; color: var(--slate); }
::placeholder { color: #66727d; opacity: 1; }

/* Messages */
.messages { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.messages li { padding: 1rem 1.2rem; border-radius: 2px; font-weight: 600; margin-top: 1rem; box-shadow: var(--lift); }
.messages .success { background: var(--sage-light); border: 2px solid var(--sage); color: #1f4a2e; }
.messages .error { background: #fbe9e6; border: 2px solid var(--brick); color: #6c2116; }

/* ---------- Mystery archive ("Most Wanted") ---------- */
.this-week { margin-bottom: 2rem; }
.this-week p { margin: 0; }
.this-week .hand { color: var(--navy); font-size: 1.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filters a { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .45rem 1rem; border-radius: 99px; border: 2px solid var(--navy); text-decoration: none; font-weight: 700; color: var(--navy); background: rgb(255 255 255 / 45%); }
.filters a[aria-current="true"] { background: var(--navy); color: #fff; }
.wanted-grid { display: grid; gap: 2.25rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 19rem)); }
.wanted {
  display: block; position: relative; background: #f7efd9 var(--grain); padding: 1rem 1rem 1.2rem; text-align: center; text-decoration: none; color: var(--ink);
  box-shadow: var(--lift); transition: transform .25s var(--ease-out), box-shadow .25s;
}
.wanted:nth-child(3n+1) { transform: rotate(-1.2deg); }
.wanted:nth-child(3n+2) { transform: rotate(.9deg); }
.wanted:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--lift-high); color: var(--ink); }
.wanted::before {
  content: ""; position: absolute; top: -.5rem; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7fb6ea, var(--blue) 60%, var(--navy)); box-shadow: 0 2px 3px rgb(0 0 0 / 40%);
}
.wanted-head { font-family: var(--font-head); font-weight: 400; letter-spacing: .14em; font-size: 1.3rem; color: var(--brick); border-block: 3px double var(--brick); margin-bottom: .75rem; padding-block: .15rem; }
.wanted.is-identified .wanted-head { color: var(--sage); border-color: var(--sage); }
.wanted .photo-placeholder, .wanted img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: sepia(.25); border: 6px solid #fff; }
.wanted .badge-sm { margin: -2rem auto .2rem; position: relative; }
.wanted h3 { margin: .8rem 0 .3rem; font-size: 1.25rem; }
.wanted .meta { font-size: .85rem; color: var(--slate); margin-bottom: .2rem; }
.wanted .stamp { position: absolute; top: 3.2rem; right: .2rem; }

/* Memory cards: notes taped into the album */
.memory { break-inside: avoid; margin-bottom: 1.75rem; padding-top: 2.4rem; }
.memories { columns: 1; column-gap: 1.75rem; }
@media (min-width: 46rem) { .memories { columns: 2; } }
@media (min-width: 70rem) { .memories.three { columns: 3; } }
.memory:nth-child(2n) { transform: rotate(.5deg); }
.memory:nth-child(2n+1) { transform: rotate(-.4deg); }
.memory blockquote { margin: 0; font-size: 1.02rem; }
.memory .by { font-family: var(--font-hand); font-size: 1.55rem; color: var(--navy-2); margin: .5rem 0 0; }
.memory img { margin-bottom: 1rem; border: 6px solid #fff; box-shadow: var(--lift); }
.datestamp {
  position: absolute; top: .8rem; right: .9rem; transform: rotate(4deg); font-weight: 800; font-size: .78rem; letter-spacing: .1em;
  color: var(--blue); border: 2px solid currentColor; border-radius: 3px; padding: .1rem .45rem; text-transform: uppercase;
}

/* Spotlight */
.spotlight-card { display: block; text-decoration: none; color: inherit; }
.spotlight-card:hover { color: inherit; }
.spotlight-card .photo { max-width: 18rem; margin: 0 auto 1rem; }

/* Stats: pinned index cards */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.stat { text-align: center; padding: 1.2rem .8rem; background: var(--card); box-shadow: var(--lift); border-radius: 2px; }
.stat:nth-child(2n) { transform: rotate(1deg); }
.stat:nth-child(2n+1) { transform: rotate(-.8deg); }
.stat b { display: block; font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 6vw, 2.6rem); color: var(--navy); line-height: 1.1; }
.stat span { color: var(--slate); font-weight: 600; }

/* Quote */
.quote { margin: 0; padding: 1.5rem 1.5rem 1.25rem 3.25rem; position: relative; }
.quote::before { content: "“"; position: absolute; left: .7rem; top: -.4rem; font-family: var(--font-head); font-size: 5rem; color: var(--blue-bright); line-height: 1; }
.quote p { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); }
.quote footer { font-family: var(--font-hand); font-size: 1.5rem; color: var(--slate); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 4px solid var(--blue-bright); }
.timeline li { position: relative; padding: 0 0 1.2rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -.72rem; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--page); border: 4px solid var(--navy); }
.timeline b { font-family: var(--font-head); font-weight: 400; font-size: 1.25rem; color: var(--navy); display: block; }

/* Decades */
.decade-nav { position: sticky; top: 0; z-index: 5; background: var(--page) var(--fibre); border-bottom: 2px solid var(--page-edge); overflow-x: auto; margin-inline: -.25rem; }
.decade-nav ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: .6rem .25rem; white-space: nowrap; }
.decade-nav a { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem .9rem; border-radius: .45rem .45rem 0 0; background: var(--card); text-decoration: none; font-weight: 700; color: var(--navy); box-shadow: var(--lift); }
.decade { padding-block: clamp(2rem, 5vw, 3rem); border-bottom: 2px dashed var(--page-edge); }
.decade-label { font-family: var(--font-head); font-weight: 400; font-size: clamp(3rem, 11vw, 5.5rem); color: var(--card); -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; line-height: 1; margin: 0 0 .25rem; }
.decade-cols { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .decade-cols { grid-template-columns: 3fr 2fr; } }
.meanwhile { background: #f3ecd9 var(--grain); transform: rotate(.8deg); }
.meanwhile::before { content: ""; position: absolute; top: -.6rem; right: 1.5rem; width: 1rem; height: 1rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9fd3ae, var(--sage) 60%, #24563a); box-shadow: 0 2px 3px rgb(0 0 0 / 35%); }
.meanwhile h3 { font-family: var(--font-hand); font-weight: 700; font-size: 1.9rem; color: var(--sage); }
.photo-row { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 1.75rem; align-items: start; }

/* Cookbook flip */
.flip { position: relative; background: #6b4a2b var(--grain); padding: clamp(.75rem, 3vw, 1.5rem); border-radius: 10px; box-shadow: var(--lift-high); }
.flipbook { margin: 0 auto; }
.fb-page { background: #efe4c8; overflow: hidden; }
.fb-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the fold: a soft shadow where each page meets the spine (StPageFlip marks pages --left / --right) */
.fb-page.--left::after, .fb-page.--right::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fb-page.--left::after { background: linear-gradient(to left, rgb(40 25 10 / 38%), rgb(40 25 10 / 0) 9%); }
.fb-page.--right::after { background: linear-gradient(to right, rgb(40 25 10 / 38%), rgb(40 25 10 / 0) 9%); }
.fb-page.--hard::after { background: none; }
.fb-cover { background: #6f6a74; }
.fb-endpaper { background: #e6dcc3 var(--grain); }
.fb-blank { background: #efe4c8; }
.fb-back { background: #6f6a74 var(--grain); color: #f4efe6; display: flex; }
.fb-back-inner { margin: auto; padding: 12% 14%; text-align: center; }
.fb-back-head { font-family: var(--font-head); font-size: clamp(1.2rem, 3.2vw, 1.8rem); line-height: 1.2; margin-bottom: .8rem; }
.fb-back-inner p:not(.fb-back-head) { font-size: clamp(.85rem, 2vw, 1rem); }
/* fallback (reduced motion / no library): one page at a time; no JS: all pages in a grid */
.flip.is-stack .flipbook { max-width: 26rem; }
.flip.is-stack .fb-page { display: none; aspect-ratio: 500 / 760; box-shadow: 0 10px 22px -8px rgb(0 0 0 / 50%); }
.flip.is-stack .fb-page.is-current { display: block; }
.flip:not(.is-book):not(.is-stack) .flipbook { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.flip:not(.is-book):not(.is-stack) .fb-page[aria-hidden] { display: none; }
.flip:not(.is-book):not(.is-stack) .fb-page { aspect-ratio: 500 / 760; }
.flip-caption { min-height: 1.6em; text-align: center; margin: 1rem 0 0; font-family: var(--font-hand); font-size: 1.55rem; line-height: 1.2; color: #fff6e6; }
.flip-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .75rem; color: #fff; font-weight: 700; }
.flip-controls .btn { background: #fff; color: #3b2a17; }
.flip-controls .btn:disabled { opacity: .45; cursor: default; }
.no-js .flip-controls { display: none; }
.recipe-card {
  background-color: #fff; box-shadow: var(--lift); padding: 1.25rem 1.4rem; position: relative; border-radius: 2px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.6rem - 1px), var(--rule) calc(1.6rem - 1px) 1.6rem);
  background-position: 0 4.2rem;
}
.recipe-card h3 { font-family: var(--font-hand); font-weight: 700; font-size: 2rem; border-bottom: 2px solid var(--blue-bright); padding-bottom: .2rem; }
.recipe-card .note { background: var(--sky); padding: .6rem .8rem; border-radius: var(--radius); font-size: .9rem; }
.business { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .business { grid-template-columns: 12rem 1fr; } }

/* Event page */
.event-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.fact { background: var(--card); border-radius: 2px; padding: 1rem 1.2rem; box-shadow: var(--lift); }
.fact b { display: block; color: var(--slate); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.fact span { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--rule); }
.schedule .time { font-weight: 800; color: var(--blue); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 6px solid #fff; box-shadow: var(--lift); }
.share { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.share a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 99px; font-weight: 700; text-decoration: none; border: 2px solid var(--navy); color: var(--navy); min-height: 2.9rem; background: rgb(255 255 255 / 45%); }
.share a:hover { background: var(--navy); color: #fff; }

/* Sponsors */
.sponsor-tier + .sponsor-tier { margin-top: 2.5rem; }
.sponsor-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; min-height: 9rem; padding: 1.2rem; background: #fff; border-radius: 2px; box-shadow: var(--lift); text-decoration: none; color: var(--navy); font-weight: 700; }
.sponsor:nth-child(2n) { transform: rotate(.8deg); }
.sponsor:nth-child(2n+1) { transform: rotate(-.6deg); }
.sponsor img { max-height: 5rem; width: auto; }
.sponsor small { font-weight: 500; color: var(--slate); }
.sponsor-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

/* Thrift shop plug: a kraft shopping bag with a price tag */
.plug { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 46rem) { .plug { grid-template-columns: 1fr auto; } }
.plug h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); }
.plug .tag { font-family: var(--font-hand); font-weight: 700; font-size: 2.1rem; color: var(--navy); transform: rotate(-4deg); }

/* Rich text */
.rich h2 { margin-top: 1.5em; }
.rich h3 { margin-top: 1.25em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li { margin-bottom: .35em; }
.rich > :last-child { margin-bottom: 0; }

.placeholder-flag { display: inline-block; background: #fff3b0; color: #6b5300; font-weight: 700; font-size: .75rem; padding: .15rem .5rem; border-radius: 4px; border: 1px solid #e6cf62; }

/* Page titles: a strip of card stock cut and taped onto the page */
.page-head { padding-block: .25rem 1.75rem; }
.page-head h1 {
  position: relative; display: inline-block; background: var(--card); padding: .3em .7em .35em; margin-bottom: .9rem;
  box-shadow: var(--lift); transform: rotate(-1deg); border-radius: 2px;
}
.page-head h1::before {
  content: ""; position: absolute; top: -.45em; left: -.4em; width: 2.4em; height: .7em; transform: rotate(-24deg);
  background: repeating-linear-gradient(45deg, rgb(60 146 223 / 50%) 0 8px, rgb(255 255 255 / 50%) 8px 16px);
}
.page-head .lede { margin-top: .25rem; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; font-weight: 600; }

/* ---------- The back cover (footer) ---------- */
.site-footer { margin-top: clamp(2.5rem, 6vw, 4rem); color: #dbe7f3; padding-block: 2.5rem 1.5rem; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 18%); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; color: #b9cde0; }

@media print {
  .topbar, .site-nav, .menu-toggle, .site-footer, .tabs, form, .page::before, .album::before { display: none !important; }
  body, .page { background: #fff; box-shadow: none; }
}

/* Small phones */
@media (max-width: 30rem) {
  .masthead { gap: .5rem; width: calc(100% - 1.5rem); }
  .brand { padding: .55rem .75rem .6rem; min-width: 0; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .06em; }
  .menu-toggle { padding: 0 .7rem; min-height: 2.8rem; font-size: .9rem; flex: none; }
  .album { width: calc(100% - .75rem); }
  .topbar { font-size: .7rem; }
}

/* ---------- Album layering below the fold ---------- */
/* Live badge beside the tip form, where visitors type */
.tip-badge { margin-top: 2rem; display: grid; justify-items: start; gap: .75rem; }
.tip-badge .badge { transform: rotate(-3deg); }
.tip-badge .hand { color: var(--slate); font-size: 1.45rem; max-width: 16rem; margin: 0; }
@media (min-width: 46rem) { .tip-badge { position: sticky; top: 2rem; } }

/* Invitation pasted in with light photo corners and a slight tilt */
.invite { transform: rotate(-.5deg); }
.photo-corners-light::before, .photo-corners-light::after {
  content: ""; position: absolute; width: 2.6rem; height: 2.6rem; background: var(--page); box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
}
.photo-corners-light::before { top: -.45rem; left: -.45rem; clip-path: polygon(0 0, 100% 0, 0 100%); }
.photo-corners-light::after { bottom: -.45rem; right: -.45rem; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.signup-sheet { transform: rotate(-.8deg); }

/* Today's volunteer: polaroid pasted straight on the page, text beside it */
.spotlight-body { display: grid; gap: 1.5rem; align-items: center; }
.spotlight-body .photo { max-width: 16rem; }
@media (min-width: 40rem) { .spotlight-body { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2.5rem; } }
.spotlight-wide { grid-column: 1 / -1; }
.spotlight-body h3 { font-size: 1.6rem; margin-bottom: .4rem; }

/* Newsprint clipping (thrift shop) with a scissor-cut zigzag edge */
.clipping {
  position: relative; background: #f1ede2 var(--grain); color: #262626; padding: clamp(1.4rem, 4vw, 2.2rem);
  transform: rotate(.7deg);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  padding-bottom: calc(clamp(1.4rem, 4vw, 2.2rem) + 8px);
}
.clipping h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); color: #1a1a1a; border-bottom: 3px double #1a1a1a; padding-bottom: .3rem; margin-bottom: .6rem; }
.clipping p { margin: 0; color: #333; }
section:has(> .clipping) { filter: drop-shadow(0 1px 1px rgb(8 30 52 / 20%)) drop-shadow(0 10px 12px rgb(8 30 52 / 25%)); }
@media (max-width: 30rem) {
  .field input[type="file"] { font-size: .78rem; padding: .6rem; }
  .field input[type="file"]::file-selector-button { padding: .4rem .6rem; margin-right: .5rem; }
}
.btn-on-dark { color: #fff; border-color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--navy); }

/* ---------- 1907 cookbook cover: a cut-out book taped onto the page ---------- */
.grid-split.cookbook-intro { align-items: center; }
/* Pinned note card beside the cookbook cover: a ruled index card held by a push-pin */
.pinned-note {
  position: relative; margin: 2rem .5rem 0 0; max-width: 30rem; padding: 2rem 1.25rem 1.2rem;
  background-color: var(--card); border-radius: 2px; box-shadow: var(--lift); transform: rotate(-1.4deg);
  background-image: linear-gradient(rgb(156 51 36 / 45%), rgb(156 51 36 / 45%)), repeating-linear-gradient(to bottom, transparent 0 calc(1.6rem - 1px), var(--rule) calc(1.6rem - 1px) 1.6rem);
  background-size: 2px 100%, 100% 100%; background-repeat: no-repeat, repeat; background-position: 2.6rem 0, 0 1.1rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.pinned-note::before {
  content: ""; position: absolute; top: -.45rem; left: 50%; width: 1rem; height: 1rem; margin-left: -.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f08a7a, var(--brick) 60%, #5c1d14); box-shadow: 0 2px 3px rgb(0 0 0 / 40%);
}
.pinned-note-head { font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; line-height: 1.6rem; color: var(--navy); margin: 0 0 0 1.8rem; }
.pinned-note .rich { padding-left: 1.8rem; }
.pinned-note .rich p { font-size: .75rem; line-height: 1.6rem; margin: 0; font-style: italic; white-space: nowrap; }
@media (max-width: 30rem) { .pinned-note .rich p { white-space: normal; } }
.pinned-note ul { margin: 0; padding-left: 1.1rem; }
.pinned-note li { line-height: 1.6rem; margin: 0; }
.pinned-note li + li { margin-top: .4rem; }
@media (hover: hover) { .pinned-note:hover { transform: rotate(0) translateY(-3px); box-shadow: var(--lift-high); } }
@media (max-width: 30rem) { .pinned-note { transform: rotate(-.7deg); margin-right: 0; } }
.cookbook-cover { margin: 1rem auto 0; max-width: 19rem; text-align: center; }
.cookbook-cover-art {
  position: relative; transform: rotate(-2.2deg); transition: transform .35s ease;
  filter: drop-shadow(0 2px 2px rgb(8 30 52 / 22%)) drop-shadow(0 18px 22px rgb(8 30 52 / 30%));
}
.cookbook-cover-art img { display: block; width: 100%; height: auto; }
/* two strips of washi tape across the top corners */
.cookbook-cover-art::before, .cookbook-cover-art::after {
  content: ""; position: absolute; top: -.55rem; width: 6rem; height: 1.7rem; z-index: 2; pointer-events: none;
  -webkit-mask: var(--torn); mask: var(--torn);
}
.cookbook-cover-art::before { left: -1.4rem; transform: rotate(-32deg); background: repeating-linear-gradient(45deg, rgb(60 146 223 / 55%) 0 8px, rgb(255 255 255 / 55%) 8px 16px); }
.cookbook-cover-art::after { right: -1.4rem; transform: rotate(30deg); background: repeating-linear-gradient(-45deg, rgb(104 175 126 / 60%) 0 8px, rgb(255 255 255 / 55%) 8px 16px); }
.cookbook-cover-stamp { position: absolute; right: -1.1rem; bottom: -.4rem; z-index: 2; transform: rotate(-9deg); font-size: .95rem; }
.cookbook-cover figcaption {
  font-family: var(--font-hand); font-weight: 700; font-size: 1.65rem; line-height: 1.15; color: var(--navy-2);
  margin-top: 1.4rem; transform: rotate(1.2deg);
}
@media (hover: hover) { .cookbook-cover:hover .cookbook-cover-art { transform: rotate(0) translateY(-4px); } }
@media (max-width: 30rem) {
  .cookbook-cover { max-width: 17rem; }
  .cookbook-cover-art { transform: rotate(-1.1deg); }
  .cookbook-cover-stamp { right: -.4rem; }
}
