/* Crosscards. One stylesheet, mobile first. */
:root {
  --brand: #7d1f86;
  --brand-bright: #a62bb0;
  --brand-deep: #4a1050;
  --brand-soft: #f5ebf6;
  --brand-tint: #fbf6fb;
  --accent: #f2b33d;
  --ink: #1d1720;
  --ink-2: #3b3340;
  --muted: #6a6170;
  --line: #ebe2ec;
  --bg: #ffffff;
  --bg-soft: #faf7f5;
  --ok: #17663a;
  --ok-bg: #e8f5ed;
  --err: #a1192d;
  --err-bg: #fdecef;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(29 23 32 / 6%), 0 6px 20px rgb(29 23 32 / 7%);
  --shadow-lift: 0 2px 4px rgb(29 23 32 / 8%), 0 14px 32px rgb(29 23 32 / 12%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --header-h: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
/* <cdn-picture> writes <picture>; let the img inside size and place itself as if the wrapper were not there. */
picture { display: contents; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-bright); }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 640px; padding-block: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.25rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-bright); border-color: var(--brand-bright); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }
.btn-small { min-height: 38px; padding: .3rem .9rem; font-size: .9rem; }
.btn-big { min-height: 54px; padding: .75rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { flex: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }

/* Header: one compact row that stays at the top */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 92%); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .25rem; min-height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { width: 128px; height: auto; }
.nav-open { margin-left: -10px; }
.primary-nav { display: none; }
.account { position: relative; margin-left: auto; flex: none; }
.search-open { margin-left: auto; }
.search-open + .account { margin-left: 0; }
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search .search-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
form.search input[type=search] {
  width: 100%; height: 44px; margin: 0; padding: 0 1rem 0 2.5rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-weight: 400;
}
form.search input[type=search]:focus { background: #fff; border-color: var(--brand); outline: 3px solid var(--brand-soft); }
.site-header > .wrap > .search { display: none; }
.site-header.search-active > .wrap > .search { display: flex; position: absolute; inset: 0 16px; z-index: 2; background: #fff; }
.site-header.search-active > .wrap { position: relative; }

.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: 4px; border-radius: 999px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--brand-soft); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff; font-weight: 800; }
.account-name { display: none; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .5rem; }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px; list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.menu li a, .menu li button { display: block; width: 100%; text-align: left; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu li a:hover, .menu li button:hover { background: var(--brand-soft); color: var(--brand); }
.menu li:last-child { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.menu form { margin: 0; }
.menu .linkish { text-decoration: none; }

/* Strip under the header: sections on phones, then this week's links */
.strip { border-bottom: 1px solid var(--line); background: var(--bg); }
.strip ul { display: flex; align-items: center; gap: .4rem; list-style: none; margin-block: 0; padding-block: .55rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.strip ul::-webkit-scrollbar { display: none; }
.strip a { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.strip a:hover { background: var(--brand-soft); color: var(--brand); }
.strip-section a { background: var(--brand-soft); color: var(--brand); }
.strip-section a[aria-current="page"] { background: var(--brand); color: #fff; }
.strip-label { padding-left: .5rem; margin-left: .25rem; border-left: 1px solid var(--line); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

@media (min-width: 700px) {
  .logo img { width: 150px; }
  .account-name { display: inline; }
}
@media (min-width: 1024px) {
  :root { --header-h: 68px; }
  .nav-open, .search-open { display: none; }
  .header-row { gap: 1.25rem; }
  .primary-nav { display: block; }
  .primary-nav > ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
  .primary-nav > ul > li { position: relative; }
  .primary-nav > ul > li > a { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--ink-2); font-weight: 650; text-decoration: none; }
  .primary-nav > ul > li > a:hover, .primary-nav .has-children:focus-within > a, .primary-nav .has-children:hover > a { background: var(--brand-soft); color: var(--brand); }
  .primary-nav a[aria-current="page"] { color: var(--brand); }
  .site-header > .wrap > .search { display: flex; flex: 1; max-width: 380px; margin-left: auto; }
  .site-header > .wrap > .search + .search-open + .account { margin-left: 0; }
  .strip-section { display: none; }
  .strip-label { border-left: 0; padding-left: 0; margin-left: 0; }
  .mega { position: absolute; left: -.5rem; top: 100%; padding-top: 10px; display: none; z-index: 50; }
  .opens-left > .mega { left: auto; right: -.5rem; }
  .mega-inner { width: max-content; max-width: min(720px, 90vw); padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
  .mega ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(190px, max-content)); gap: .15rem .5rem; }
  .mega li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
  .mega li a::after { content: "›"; color: var(--muted); font-weight: 400; opacity: 0; transition: opacity .12s, transform .12s; }
  .mega li a:hover, .mega li a:focus-visible { background: var(--brand-soft); color: var(--brand); }
  .mega li a:hover::after, .mega li a:focus-visible::after { opacity: 1; transform: translateX(2px); color: var(--brand); }
  .mega-all { display: block; margin-top: .4rem; padding: .65rem .8rem .3rem; border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; white-space: nowrap; }
  .has-children:hover > .mega, .has-children:focus-within > .mega { display: block; }
}

/* Slide-out menu (native dialog) */
.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; width: min(380px, 88vw); max-width: none; height: 100%; max-height: none;
  padding: 0 1rem 2rem; border: 0; background: #fff; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; z-index: 60;
  box-shadow: var(--shadow-lift);
}
.drawer[open] { animation: drawer-in .22s ease-out; }
.drawer::backdrop { background: rgb(29 23 32 / 45%); }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); background: #fff; }
.drawer-head form { margin: 0; }
.drawer-head .logo img { width: 128px; }
.drawer-search { margin: .25rem 0 1rem; }
.drawer-list, .drawer-sub, .drawer-plain, .drawer-dates { list-style: none; margin: 0; padding: 0; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list > li > a, .drawer-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 .25rem; color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; list-style: none; }
.drawer-list summary::-webkit-details-marker { display: none; }
.drawer-list summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s; }
.drawer-list details[open] > summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.drawer-sub { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: 0 0 .9rem; }
.drawer-sub a { display: block; padding: .5rem .7rem; border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.drawer-sub li:first-child { grid-column: 1 / -1; }
.drawer-sub li:first-child a { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.drawer-section { margin-top: 1.5rem; }
.drawer-section h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .5rem; }
.drawer-dates a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--line); }
.drawer-dates time { color: var(--brand); font-weight: 700; }
.drawer-plain a { display: block; padding: .5rem 0; color: var(--ink-2); text-decoration: none; }
.drawer-section .btn { margin-bottom: .75rem; }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }

/* Ads: space is reserved so the page does not jump when an ad loads. */
.ad { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; overflow: hidden; }
/* Every ad is labelled, on its own line above the slot. The label is in CSS so the article-body ads (built in
   BodyAds) and the partials all get it; the slot keeps its reserved height below it. */
.ad::before { content: "Advertisement"; width: 100%; margin-bottom: .4rem; text-align: center; font-size: .7rem; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* No label where the placement has no slot for this screen size (the article boxes have none on phones). */
@media (max-width: 727px) { .ad:not(:has(.ad-mobile, [id^="mobile_"]))::before { display: none; } }
@media (min-width: 728px) and (max-width: 1023px) { .ad:not(:has(.ad-tablet, [id^="tablet_"]))::before { display: none; } }
@media (min-width: 1024px) { .ad:not(:has(.ad-desktop, [id^="desktop_"]))::before { display: none; } }
.ad-top { padding-block: .75rem; background: var(--bg-soft); }
/* Whatever size fills a slot sits in the middle of it (GPT's frames are inline, at their own width). */
.ad > div { text-align: center; line-height: 0; }
.ad iframe { vertical-align: middle; }
.ad-desktop, .ad-tablet { display: none; }
.ad-top .ad-mobile { min-height: 100px; width: 320px; }
.ad-side { margin-block: 1.5rem; }
.ad-side .ad-mobile { min-height: 250px; width: 300px; }
.ad-middle, .ad-body { margin-block: 1.75rem; }
.ad-middle .ad-mobile, .ad-box > div, .tile-ad .ad > div { min-height: 250px; width: 300px; }
.ad-body { flex-direction: column; flex-wrap: nowrap; align-items: center; min-height: 250px; }
.ad-box { margin-block: 1.25rem; }
.ad-body.ad-pair { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.ad-body.ad-pair > .ad-desktop { display: none; }
/* Ad band between rows of a listing: a full row, tinted, so the space it holds reads as part of the page. */
.tile-ad { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: .6rem 0 .9rem; border-radius: var(--radius); background: var(--bg-soft); }
/* A slot that got no ad, and a placement where none did, take no room (site.js marks both while they are off screen). */
.ad.ad-empty, .ad .ad-unfilled, .tile-ad:has(> .ad-empty) { display: none !important; }
@media (min-width: 728px) { .tile-ad .ad > .ad-tablet[id], .tile-ad .ad > .ad-desktop { min-height: 90px; width: 728px; } }
@media (min-width: 1024px) { .tile-ad-extra { display: none; } }
/* A listing with its ad column (wide screens only; the column's slots are desktop ones). */
.listing-rail { display: none; }
@media (min-width: 1100px) {
  .listing:has(.listing-rail) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 1.5rem; }
  .listing-rail { display: block; }
  .listing-rail .ad-box { margin-block: 0; }
  /* The sign-up form is built 348px wide; scale it to the 300px column. */
  .rail-form { min-height: 280px; margin-bottom: 1.5rem; overflow: hidden; }
  .rail-form > div { width: 348px; zoom: calc(300 / 348); }
  .listing-rail .ad-side { margin-block: 0; }
  .rail-stick { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.revcontent { margin-top: 2rem; }
.promo-form { min-width: 0; }
.promo-form:empty, .promo-form > div:empty { display: none; }
.promo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.25rem; margin-top: 2rem; }
.promo-row > .ad-box { flex: none; margin-block: 0; }
.promo-row > .promo-form, .promos > .promo-form { flex: 1 1 320px; min-width: 0; }
.promo-row > .promo-form { flex-basis: 480px; }
.promo-side { margin-top: 1.5rem; display: flex; justify-content: center; }
@media (min-width: 1024px) {
  .shelf-side { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 2rem; align-items: start; }
  .shelf-side .promo-side { margin-top: 2.5rem; }
  .shelf-side .shelf .tiles:not(.tiles-wide) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; }
}
@media (min-width: 728px) and (max-width: 1023px) {
  .ad-mobile { display: none; }
  .ad-tablet { display: block; }
  .ad-middle .ad-tablet { min-height: 90px; width: 728px; }
  .ad-top .ad-tablet { min-height: 90px; width: 728px; }
  .ad-side .ad-tablet { min-height: 600px; width: 300px; }
}
@media (min-width: 1024px) {
  .ad-mobile { display: none; }
  .ad-desktop { display: block; }
  /* The desktop header slot takes 970×250 or 728×90. It holds room for the taller one until the ad arrives
     (reserving 90px measured 0.09 CLS whenever a 970×250 filled it); once it is scrolled out of view, site.js
     shrinks it to the ad it got. */
  .ad-top .ad-desktop { min-height: 250px; width: 970px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  /* GPT leaves the iframe at its default 150px under a 90px-tall container; clip it to the ad. */
  .ad-top .ad-desktop > div { overflow: hidden; }
  .ad-side .ad-desktop { min-height: 600px; width: 300px; }
  .ad-middle .ad-desktop { min-height: 90px; width: 728px; }
  .ad-body.ad-pair > .ad-desktop { display: block; }
}

/* Breadcrumbs, flash */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 1rem 0 0; font-size: .875rem; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.flash { margin-block: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flash-error { background: var(--err-bg); color: var(--err); }

main { min-height: 50vh; padding-bottom: 3rem; }
.page-head { padding-block: 1.25rem .75rem; }
.page-head .lede { max-width: 70ch; color: var(--muted); font-size: 1.05rem; }
.page-head .lede p:last-child { margin-bottom: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; margin-bottom: .35rem; color: var(--brand); }
.kicker a { text-decoration: none; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; }
.page-head-row h1 { margin-bottom: 0; }
.page-head-row .filters { margin: 0; }

/* Home */
.home-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #c04fc6 0%, var(--brand) 38%, var(--brand-deep) 100%); color: #fff; }
/* A short band: the seasonal cards under it are what the page is for, so they start as high as they can. */
.home-hero .wrap { position: relative; z-index: 1; padding-block: 1.25rem 1.4rem; }
.home-hero h1 { color: #fff; font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: .35rem; }
.home-hero p { color: rgb(255 255 255 / 86%); font-size: 1rem; margin: 0 0 .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.hero-actions nav { min-width: 0; max-width: 100%; }
.hero-search { flex: 1 1 280px; max-width: 440px; }
form.hero-search input[type=search] { height: 48px; border: 0; background: #fff; font-size: 1rem; box-shadow: 0 8px 24px rgb(0 0 0 / 18%); }
.occasions { display: flex; gap: .45rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.occasions::-webkit-scrollbar { display: none; }
.occasions a { display: inline-block; white-space: nowrap; padding: .45rem .95rem; border-radius: 999px; background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 25%); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.occasions a:hover { background: #fff; color: var(--brand); }
.feature { display: block; border-radius: var(--radius); overflow: hidden; background: rgb(0 0 0 / 15%); box-shadow: 0 16px 40px rgb(0 0 0 / 25%); transition: transform .2s; }
.feature img { width: 100%; height: auto; }
.feature:hover { transform: translateY(-3px); }
@media (max-width: 699px) { .feature img { aspect-ratio: 3 / 1; object-fit: cover; object-position: left center; } }
.hero-art { display: none; }
@media (min-width: 960px) {
  /* The photo's backdrop is a dark plum. The band darkens to that colour before the photo starts and keeps its
     bright spot over the headline, so the photo's faded edge has nothing to contrast with. */
  .home-hero { min-height: 260px;
    background: linear-gradient(to right, rgb(42 19 45 / 0%) calc(100% - 760px), #2a132d calc(100% - 340px)),
      radial-gradient(90% 150% at 30% 0%, #b043b8 0%, var(--brand) 40%, var(--brand-deep) 100%); }
  .home-hero .wrap { display: flex; flex-direction: column; justify-content: center; min-height: 260px; padding-block: 1.75rem; }
  .occasions { flex-wrap: wrap; overflow: visible; }
  .home-hero .wrap > div { max-width: calc(100% - 300px); } /* keeps the search and links off the photo */
  /* The box is close to the photo's own 4:3 shape, so nearly all of it shows: her face and the laptop. */
  .hero-art { display: block; position: absolute; inset: 0 0 0 auto; width: 400px; z-index: 0; }
  .hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / 12%) 10%, rgb(0 0 0 / 45%) 24%, rgb(0 0 0 / 82%) 38%, #000 50%);
    mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / 12%) 10%, rgb(0 0 0 / 45%) 24%, rgb(0 0 0 / 82%) 38%, #000 50%); }
}
.wrap > .feature { margin-top: 1.75rem; }

.steps { display: grid; gap: .75rem; list-style: none; margin: 1.75rem 0 0; padding: 0; counter-reset: step; }
.steps li { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius); background: var(--bg-soft); counter-increment: step; }
.steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .92rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.dates { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: .75rem; list-style: none; margin: 0; padding: 0 0 .25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.dates li { scroll-snap-align: start; }
.dates a { display: flex; gap: .85rem; align-items: center; height: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.dates a:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.date-badge { flex: none; display: grid; place-items: center; width: 52px; height: 56px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); line-height: 1; }
.date-badge b { font-size: 1.35rem; font-weight: 800; }
.date-badge small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.date-name { display: block; font-weight: 700; line-height: 1.25; }
.date-when { display: block; color: var(--muted); font-size: .85rem; }

.chips ul, .chips-list { display: flex; gap: .5rem; list-style: none; margin: .75rem 0 1rem; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: none; }
.chips ul::-webkit-scrollbar { display: none; }
.chips a, .chips-list a { display: inline-block; white-space: nowrap; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 600; }
.chips a:hover, .chips-list a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.chips a { padding: .35rem .85rem; font-size: .9rem; line-height: 1.4; }
.chips-toggle { display: none; }
@media (min-width: 960px) {
  .chips ul { flex-wrap: wrap; overflow: visible; }
  /* Long lists: two rows, then a button to show the rest. */
  .chips-clamp { display: flex; align-items: flex-start; gap: .75rem; margin: .75rem 0 1rem; }
  .chips-clamp ul { flex: 1; margin: 0; padding: 0; max-height: calc(2 * (1.26rem + .7rem + 2px) + .5rem); overflow: hidden; }
  .chips-clamp.open ul { max-height: none; }
  .chips-toggle { display: inline-block; flex: none; padding: .35rem .85rem; border: 0; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
  .chips-toggle:hover { background: var(--brand); color: #fff; }
}

.shelf { margin-top: 2.5rem; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.shelf-head h2 { margin: 0; }
.more { font-weight: 700; white-space: nowrap; text-decoration: none; }
.more::after { content: " →"; }

/* Tiles. On a shelf they scroll sideways on phones; in a category they form a grid. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .85rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.25rem; } }
.shelf .tiles:not(.tiles-wide) {
  grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 68%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 1rem; scroll-padding-inline: 16px;
}
.shelf .tiles:not(.tiles-wide)::-webkit-scrollbar { display: none; }
.shelf .tiles:not(.tiles-wide) .tile { scroll-snap-align: start; }
@media (min-width: 700px) { .shelf .tiles:not(.tiles-wide) { grid-auto-columns: 38%; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; } }
@media (min-width: 1100px) { .shelf .tiles:not(.tiles-wide) { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; } }
.tile a { display: block; color: var(--ink); text-decoration: none; }
.tile-img { position: relative; display: block; aspect-ratio: 1200 / 628; overflow: hidden; border-radius: var(--radius); background: var(--brand-soft); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile a:hover .tile-img { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.tile-title { display: block; margin-top: .55rem; font-weight: 650; line-height: 1.3; }
.tile a:hover .tile-title { color: var(--brand); }
.tile-excerpt { display: block; margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.tiles-wide .tile-title { font-size: 1.05rem; font-weight: 750; }
/* "Send" on card tiles: goes straight to the send form. Always shown on touch screens, on hover elsewhere. */
.tile { position: relative; }
.tile .tile-send { position: absolute; top: .5rem; right: .5rem; display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 999px; background: #fff; color: var(--brand); font-size: .85rem; font-weight: 750; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); text-decoration: none; transition: opacity .15s, transform .15s; }
.tile .tile-send:hover, .tile .tile-send:focus-visible { background: var(--brand); color: #fff; }
@media (hover: hover) {
  .tile .tile-send:not(.btn) { opacity: 0; transform: translateY(-4px); }
  .tile:hover .tile-send, .tile:focus-within .tile-send { opacity: 1; transform: none; }
}
.tile-sends { display: block; margin-top: .2rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
/* Listing grids stop at 3 columns: on wide screens the ad column takes the 4th place. */
@media (min-width: 1100px) { .tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The first card of a listing: a panel across the top in the brand colours, picture beside the title and button. */
.tile-lead { grid-column: 1 / -1; display: grid; gap: 1rem; padding: .9rem .9rem 1.25rem; border-radius: calc(var(--radius) + 6px); color: #fff; box-shadow: var(--shadow-lift);
  background: radial-gradient(120% 140% at 100% 0%, #c04fc6 0%, var(--brand) 38%, var(--brand-deep) 100%); }
.tile-lead .tile-img { box-shadow: 0 14px 34px rgb(0 0 0 / 30%); }
.tile-lead a:hover .tile-img { box-shadow: 0 18px 40px rgb(0 0 0 / 38%); }
.lead-text { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding-inline: .35rem; }
.lead-kicker { padding: .15rem .6rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tile-lead .lead-text a { color: #fff; }
.tile-lead .tile-title { margin-top: .15rem; font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--serif); letter-spacing: -.01em; }
.tile-lead a:hover .tile-title { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tile-lead .tile-sends { margin-top: 0; color: rgb(255 255 255 / 85%); }
.tile .tile-send.btn { position: static; margin-top: .6rem; padding: .6rem 1.5rem; border-color: #fff; background: #fff; color: var(--brand); font-size: 1.02rem; box-shadow: 0 6px 18px rgb(0 0 0 / 22%); opacity: 1; transform: none; }
.tile .tile-send.btn:hover, .tile .tile-send.btn:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.lead-note { font-size: .85rem; color: rgb(255 255 255 / 80%); }
@media (min-width: 700px) {
  .tile-lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 1.75rem; padding: 1.1rem 1.5rem 1.1rem 1.1rem; }
  .lead-text { gap: .5rem; padding: 0; }
}
/* Listing sort and filter links */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .25rem 0 1.25rem; }
.filters a { padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.filters a:hover { border-color: var(--brand); color: var(--brand); }
.filters a[aria-current="true"], .filters a[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters-gap { width: 1px; height: 1.5rem; margin-inline: .35rem; background: var(--line); }
/* Next holiday, under the homepage hero */
.deadline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); text-decoration: none; }
.deadline .date-badge { background: #fff; }
.deadline-text { flex: 1 1 260px; display: grid; gap: .15rem; }
.deadline-text strong { font-size: 1.1rem; }
.deadline-text span { color: var(--ink-2); }
.deadline:hover .btn { filter: brightness(1.08); }
/* Suggested messages on the send form */
.suggestions { margin-top: .6rem; }
.suggestions p { margin: 0 0 .4rem; }
.suggestions ul { display: grid; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.suggestion { width: 100%; padding: .55rem .8rem; border: 1px dashed var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.suggestion:hover, .suggestion:focus-visible { border-style: solid; border-color: var(--brand); color: var(--brand); background: var(--brand-tint, var(--brand-soft)); }
.send-remind { margin-top: 1rem; }
/* Under a card or wallpaper: main column plus a 300px column for the tall ad, which stays in view while scrolling. */
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
.rail-main > .shelf:first-child { margin-top: 1.5rem; }
@media (min-width: 1024px) {
  .with-rail { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .rail { position: sticky; top: calc(var(--header-h) + 1rem); margin-top: 1.75rem; }
  .rail .ad-side { margin-block: 0; }
  .with-rail .shelf .tiles:not(.tiles-wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .with-rail .shelf .tiles:not(.tiles-wide) > .tile:nth-child(n+7) { display: none; } /* two full rows of three */
}
.badge { position: absolute; left: .5rem; bottom: .5rem; padding: .15rem .55rem; border-radius: 999px; background: rgb(0 0 0 / 70%); color: #fff; font-size: .75rem; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .tile-img, .btn { transition: none; } }

.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .85rem; list-style: none; margin: 1rem 0; padding: 0; }
@media (min-width: 700px) { .sections { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; } }
.sections a { display: block; border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.sections img, .sections .section-fill { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--brand-soft); }
.sections .section-fill { padding: 0; background: linear-gradient(135deg, var(--brand-soft), #e6cde9); }
.sections span { display: block; padding: .75rem .9rem; font-weight: 700; }
.sections a:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); color: var(--brand); }

.pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 2.5rem 0 0; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--brand); background: var(--brand-tint); }
.pager [aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 800; }
.pager span[aria-hidden] { border: 0; min-width: 0; }

/* Card page */
.card-page .page-head { padding-bottom: 1rem; }
.card-layout { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .card-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 2.5rem; } }
.media { margin: 0 0 1rem; }
.media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); background: var(--brand-soft); }
.media-video { position: relative; aspect-ratio: 16 / 9; }
.media-video iframe, .media-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); background: #000; }
@media (min-width: 960px) { .card-preview { position: sticky; top: calc(var(--header-h) + 1rem); } }
.preview-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* A fixed height, so the page does not move when the (tall, unknown-size) wallpaper arrives. */
.wallpaper-preview img { height: min(72vh, 900px); width: auto; max-width: 100%; object-fit: contain; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
/* Calendar wallpaper maker. The fonts are only fetched on that page, which is the only one that uses them. */
@font-face { font-family: "Cinzel"; font-weight: 400; font-display: swap; src: url("../fonts/cinzel-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
.maker-preview canvas { display: block; width: 100%; height: auto; margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow-lift); background: var(--brand-soft); }
.maker-preview canvas.tall { width: auto; max-width: 100%; height: min(72vh, 760px); }
.maker-preview canvas { cursor: zoom-in; }
.maker-zoom-open { display: flex; margin: .75rem auto 0; }
.maker-zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: auto; background: rgb(12 8 14 / 96%); }
.maker-zoom::backdrop { background: rgb(12 8 14 / 96%); }
.maker-zoom-stage { display: flex; min-width: 100%; min-height: 100%; width: max-content; }
.maker-zoom canvas { display: block; margin: auto; max-width: 100vw; max-height: 100dvh; cursor: zoom-in; }
.maker-zoom.actual canvas { max-width: none; max-height: none; cursor: zoom-out; }
.maker-zoom-bar { position: fixed; top: 12px; right: 12px; left: 12px; z-index: 1; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; pointer-events: none; }
.maker-zoom-bar > * { pointer-events: auto; }
.maker-zoom-bar span { padding: .35rem .8rem; border-radius: 999px; background: rgb(0 0 0 / 60%); color: #fff; font-size: .85rem; }
@media (max-width: 599px) { .maker-zoom-bar span { display: none; } }
.maker-status { min-height: 1.5em; margin: .6rem 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.maker textarea { min-height: 5.5rem; }
.maker-week { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin: .9rem 0 0; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.maker-week label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; min-height: 32px; }
.maker-backgrounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.maker-backgrounds label { position: relative; cursor: pointer; font-size: .8rem; font-weight: 600; text-align: center; }
.maker-backgrounds input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.maker-backgrounds img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .25rem; border-radius: 8px; outline: 3px solid transparent; outline-offset: 2px; background: var(--brand-soft); }
.maker-backgrounds input:checked + img { outline-color: var(--brand); }
.maker-backgrounds input:focus-visible + img { outline-color: var(--brand-bright); box-shadow: 0 0 0 6px var(--brand-soft); }
.maker-backgrounds input:checked ~ span { color: var(--brand); }
.maker-actions { display: grid; gap: .6rem; margin-bottom: .75rem; }
.maker-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .75rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
/* Share on Facebook and Pinterest: cards, wallpaper and the maker. */
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share .btn { gap: .4rem; }
.send > .share { margin: .75rem 0; }
.share-facebook svg { color: #1877f2; }
.share-pinterest svg { color: #e60023; }
/* The maker, featured at the top of the wallpaper section. */
.maker-feature { display: grid; margin: 0 0 1.75rem; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--brand-deep); color: #fff; text-decoration: none; box-shadow: var(--shadow-lift); }
.maker-feature:hover { color: #fff; }
.maker-feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.5rem; color: rgb(255 255 255 / 86%); }
.maker-feature-text h2 { margin: 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.15; }
.maker-feature-text > span:not(.btn) { max-width: 44ch; }
.maker-feature .btn { margin-top: .4rem; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.maker-feature:hover .btn { background: #ffc85a; border-color: #ffc85a; color: var(--ink); }
.maker-feature-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; container-type: inline-size; --cal-panel: rgb(255 255 255 / 62%); }
.maker-feature-art.dark { --cal-panel: rgb(8 10 18 / 42%); }
.maker-feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maker-feature-cal { position: relative; width: 36%; color: var(--cal-ink); font-family: "Cinzel", var(--serif); text-align: center; }
.maker-feature-month { display: block; margin-bottom: 1.2cqw; font-weight: 600; font-size: 2.7cqw; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.maker-feature-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .3cqw; padding: 1.4cqw 1.2cqw; border: 1px solid color-mix(in srgb, var(--cal-ink) 55%, transparent); border-radius: 1cqw; background: var(--cal-panel); font-size: 1.7cqw; line-height: 1.5; }
.maker-feature-grid b { font-weight: 600; font-size: 1.35cqw; opacity: .8; padding-bottom: .5cqw; margin-bottom: .4cqw; border-bottom: 1px solid color-mix(in srgb, var(--cal-ink) 35%, transparent); }
@media (min-width: 800px) {
  .maker-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
  .maker-feature-text { padding: 2rem 2.25rem; }
}
.maker-search { display: flex; align-items: flex-end; gap: .5rem; }
.maker-search label { flex: 1; }
.maker-search .btn { min-height: 48px; }
.maker .step > label + .field { margin-top: .75rem; }
.maker .suggestions { margin-top: .6rem; }
.maker .suggestions + .field { margin-top: .9rem; }
.maker .suggestions:empty { display: none; }
.maker .suggestions { max-height: 22rem; overflow-y: auto; }
.maker .suggestion strong { display: block; color: var(--brand); }
.fav svg { color: var(--brand); }
.fav[aria-pressed="true"] .fav-off, .fav[aria-pressed="false"] .fav-on { display: none; }
.fav[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-soft); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }

.send { padding: 1.25rem; border-radius: calc(var(--radius) + 4px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 560px) { .send { padding: 1.75rem; } }
.send > h2 { margin-bottom: .25rem; }
.send-sub { color: var(--muted); margin-bottom: 1.25rem; }
.step { padding: 0 0 1.25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }
.step legend { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.08rem; margin-bottom: .75rem; color: var(--ink); }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; flex: none; }
.send form > label, .send .checks { margin-bottom: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: .35rem; padding: 0; }
label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .85rem; min-height: 48px;
  border: 1px solid #d9cddc; border-radius: var(--radius-sm); background: #fff; font-weight: 400; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-bg); }
.field + .field { margin-top: .75rem; }
.field-row { display: grid; gap: .6rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hint { display: flex; justify-content: space-between; gap: 1rem; margin-top: .3rem; color: var(--muted); font-size: .82rem; font-weight: 500; }
.recipients { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .6rem; }
.recipient { position: relative; padding: .75rem; border-radius: var(--radius-sm); background: var(--bg-soft); }
.recipient:has(.remove:not([hidden])) { padding-right: 3rem; }
.recipient label { font-size: .85rem; }
.recipient input { margin-top: .2rem; }
.recipient .remove { position: absolute; right: .5rem; top: .5rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.recipient .remove:hover { color: var(--err); }
.add-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.checks label, label.check { display: flex; gap: .6rem; align-items: center; font-weight: 500; margin-bottom: .45rem; }
.checks input, label.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.contacts-picker { margin-top: .75rem; }
.contacts-picker summary { display: inline-flex; align-items: center; min-height: 38px; padding: .3rem .9rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--brand); font-weight: 700; font-size: .9rem; list-style: none; }
.contacts-picker summary::-webkit-details-marker { display: none; }
.contacts-picker input[type=search] { margin: .6rem 0 .4rem; min-height: 42px; }
.contacts-picker ul { list-style: none; margin: 0; padding: .35rem; max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.contacts-picker label { display: flex; gap: .6rem; align-items: center; font-weight: 500; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.contacts-picker label:hover { background: var(--brand-tint); }
.contacts-picker .muted { font-size: .85rem; }
.from-summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--bg-soft); }
.from-summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.when { display: grid; gap: .5rem; }
@media (min-width: 560px) { .when { grid-template-columns: 1fr 1fr; } }
.when-option { position: relative; display: flex; gap: .65rem; align-items: center; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; color: var(--ink); }
.when-option input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.when-option small { display: block; font-weight: 500; color: var(--muted); }
.when-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.when-date { margin-top: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 1rem; }
.actions .btn-send { flex: 1 1 100%; }
@media (min-width: 560px) { .actions .btn-send { flex: 1 1 auto; } }
.form-errors { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--err-bg); color: var(--err); margin-bottom: 1rem; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.send-done { outline: none; text-align: center; padding-block: 1rem; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.send-done h2 { color: var(--ink); }
.send-done-list { list-style: none; margin: 0 0 1.25rem; padding: 0; font-weight: 600; }
.send-done .actions { justify-content: center; }
.downloads { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.downloads .btn { width: 100%; }

/* Floating "Send this card" button on phones */
.send-fab { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 10px 30px rgb(74 16 80 / 35%); transform: translateY(150%); transition: transform .2s ease; }
.send-fab.show { transform: none; }
@media (min-width: 960px) { .send-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .send-fab { transition: none; } }

/* Card preview pop-up */
.preview-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lift); }
.preview-dialog::backdrop { background: rgb(29 23 32 / 55%); }
.preview-dialog .preview-body { padding: 1.25rem; }
.preview-dialog .preview-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid var(--line); }
.preview-dialog .preview-head h2 { margin: 0; font-size: 1.1rem; }
.preview-dialog img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.preview-meta { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }

/* Articles */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.prose { max-width: 70ch; font-size: 1.08rem; line-height: 1.7; }
.prose img { border-radius: var(--radius); margin-block: 1rem; height: auto; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--brand-bright); background: var(--brand-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; }

/* Received card */
.open-layout { display: grid; gap: 1.5rem; max-width: 1040px; }
@media (min-width: 900px) { .open-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
/* The message, on a sheet of stationery: cream paper, a thin gold double frame with scrolled corners, and a second
   sheet behind. The sheet with the text stays straight so the words stay sharp. */
.note {
  position: relative; z-index: 0;
  padding: 3rem 3rem 2.6rem;
  font: 1.2rem/1.7 var(--serif); color: var(--ink);
}
.note::before, .note::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.note::before { z-index: -2; rotate: 2deg; background: #f1e9d8; box-shadow: 0 1px 2px rgb(29 23 32 / 8%), 0 8px 20px rgb(29 23 32 / 8%); }
.note::after {
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, #fffdf8 0%, #fdf7ea 70%, #f8efdc 100%);
  box-shadow: 0 1px 2px rgb(29 23 32 / 10%), 0 12px 28px rgb(29 23 32 / 11%);
}
.note-frame { position: absolute; inset: 12px; z-index: 0; pointer-events: none; border: 3px double rgb(176 141 87 / 70%); border-radius: 2px; }
/* A diamond over each corner of the frame, and a small ornament in the middle of the top edge. */
.note-frame::before {
  content: ""; position: absolute; inset: -10.5px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2711%27%20fill%3D%27%23fdf8ec%27%2F%3E%3Cpath%20d%3D%27M12%203.5%2020.5%2012%2012%2020.5%203.5%2012z%27%20fill%3D%27none%27%20stroke%3D%27%23b08d57%27%20stroke-width%3D%271.3%27%2F%3E%3Cpath%20d%3D%27M12%208.5%2015.5%2012%2012%2015.5%208.5%2012z%27%20fill%3D%27%23b08d57%27%2F%3E%3C%2Fsvg%3E") no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2711%27%20fill%3D%27%23fdf8ec%27%2F%3E%3Cpath%20d%3D%27M12%203.5%2020.5%2012%2012%2020.5%203.5%2012z%27%20fill%3D%27none%27%20stroke%3D%27%23b08d57%27%20stroke-width%3D%271.3%27%2F%3E%3Cpath%20d%3D%27M12%208.5%2015.5%2012%2012%2015.5%208.5%2012z%27%20fill%3D%27%23b08d57%27%2F%3E%3C%2Fsvg%3E") no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2711%27%20fill%3D%27%23fdf8ec%27%2F%3E%3Cpath%20d%3D%27M12%203.5%2020.5%2012%2012%2020.5%203.5%2012z%27%20fill%3D%27none%27%20stroke%3D%27%23b08d57%27%20stroke-width%3D%271.3%27%2F%3E%3Cpath%20d%3D%27M12%208.5%2015.5%2012%2012%2015.5%208.5%2012z%27%20fill%3D%27%23b08d57%27%2F%3E%3C%2Fsvg%3E") no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2711%27%20fill%3D%27%23fdf8ec%27%2F%3E%3Cpath%20d%3D%27M12%203.5%2020.5%2012%2012%2020.5%203.5%2012z%27%20fill%3D%27none%27%20stroke%3D%27%23b08d57%27%20stroke-width%3D%271.3%27%2F%3E%3Cpath%20d%3D%27M12%208.5%2015.5%2012%2012%2015.5%208.5%2012z%27%20fill%3D%27%23b08d57%27%2F%3E%3C%2Fsvg%3E") no-repeat;
  background-size: 24px 24px;
  background-position: left top, right top, left bottom, right bottom;
}
.note-frame::after {
  content: ""; position: absolute; top: -10px; left: 50%; width: 72px; height: 20px; margin-left: -36px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2072%2020%27%3E%3Crect%20x%3D%274%27%20y%3D%270%27%20width%3D%2764%27%20height%3D%2720%27%20fill%3D%27%23fefbf3%27%2F%3E%3Cpath%20d%3D%27M36%203%2043%2010%2036%2017%2029%2010z%27%20fill%3D%27%23b08d57%27%2F%3E%3Cpath%20d%3D%27M20%2010%2024%206%2028%2010%2024%2014z%20M44%2010%2048%206%2052%2010%2048%2014z%27%20fill%3D%27none%27%20stroke%3D%27%23b08d57%27%20stroke-width%3D%271.2%27%2F%3E%3Ccircle%20cx%3D%2713%27%20cy%3D%2710%27%20r%3D%271.6%27%20fill%3D%27%23b08d57%27%2F%3E%3Ccircle%20cx%3D%2759%27%20cy%3D%2710%27%20r%3D%271.6%27%20fill%3D%27%23b08d57%27%2F%3E%3C%2Fsvg%3E") no-repeat 0 0 / contain;
}
.note p { margin: 0 0 1em; }
.note p:last-child { margin-bottom: 0; }
.signature { font-style: italic; color: var(--brand); margin-top: 1.25em !important; text-align: right; }
@media (max-width: 899px) { .note { margin-inline: .25rem; padding: 2.6rem 2.2rem 2.2rem; } .note::before { rotate: 1.2deg; } }

/* Opening a received card: the card comes out of an envelope, then the page appears.
   The inline script in Card/Open.cshtml sets .envelope-on (not with reduced motion); open-card.js sets .envelope-done. */
.envelope-stage { display: none; }
.envelope-on .open-card .open-reveal { display: none; }
.envelope-on .envelope-stage {
  --w: min(84vw, 480px);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--w) * .38) 0 1.5rem;
}
.envelope-on.envelope-done .envelope-stage { display: none; }
.envelope-on.envelope-done .open-card .open-reveal { display: block; }
/* open-card.js glides the card picture from the envelope to its place; the note then slides out from behind it,
   and the rest of the page follows. */
.envelope-on.envelope-done .open-layout .note { animation: note-out .6s .4s cubic-bezier(.2, .8, .2, 1) both; }
.envelope-on.envelope-done .open-reveal > :not(.open-layout) { animation: open-reveal .5s .75s ease-out both; }
@keyframes note-out { from { opacity: 0; translate: -40px 0; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 899px) { @keyframes note-out { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } } }
@keyframes open-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.open-layout .media { position: relative; z-index: 1; }

.envelope {
  position: relative; display: block; width: var(--w); height: calc(var(--w) * .64);
  padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px;
  filter: drop-shadow(0 14px 22px rgb(74 16 80 / 22%));
  animation: env-in .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.envelope > span { position: absolute; display: block; }
.env-back { inset: 1px; border-radius: 6px; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); }
.env-card { left: 6%; right: 6%; bottom: 7%; z-index: 2; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
.env-card img { width: 100%; aspect-ratio: 640 / 335; object-fit: cover; }
.envelope > .env-front {
  inset: 0; z-index: 3; border-radius: 6px;
  background: linear-gradient(180deg, #fbf4e8 0%, #f1e4cf 100%);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 7%;
}
.env-to { font: italic 600 clamp(1rem, calc(var(--w) * .055), 1.55rem)/1.2 var(--serif); color: var(--ink-2); }
.env-from { font-size: clamp(.78rem, calc(var(--w) * .033), .9rem); color: var(--muted); margin-top: .15rem; }
.env-flap {
  left: 0; right: 0; top: 0; height: 56%; z-index: 4; transform-origin: 50% 0;
  background: linear-gradient(180deg, #f3e7d3 0%, #e9d8bd 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 6px 6px 0 0;
}
.envelope > .env-seal {
  --seal: clamp(32px, calc(var(--w) * .095), 46px);
  display: grid; left: 50%; top: 56%; z-index: 5; width: var(--seal); height: var(--seal); margin: calc(var(--seal) / -2) 0 0 calc(var(--seal) / -2); border-radius: 50%;
  place-items: center; color: #f7d9f9;
  background: radial-gradient(circle at 35% 30%, var(--brand-bright), var(--brand) 55%, var(--brand-deep));
  box-shadow: 0 2px 6px rgb(0 0 0 / 25%), inset 0 0 0 3px rgb(255 255 255 / 12%);
}
.envelope-hint { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; transition: opacity .2s; }

.envelope.opening .env-seal { animation: env-seal .3s ease-in both; }
.envelope.opening .env-flap { animation: env-flap .5s .15s ease-in-out both, env-flap-drop .45s 1.35s ease-in forwards; }
.envelope.opening .env-card { animation: env-card .7s .6s cubic-bezier(.2, .8, .25, 1) both; }
.envelope.opening .env-back,
.envelope.opening .env-front { animation: env-drop .45s 1.35s ease-in forwards; }
.envelope.opening ~ .envelope-hint { opacity: 0; }

@keyframes env-in { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes env-seal { to { opacity: 0; transform: scale(1.35); } }
@keyframes env-flap {
  0% { transform: rotateX(0); z-index: 4; }
  49% { z-index: 4; }
  50% { z-index: 1; }
  100% { transform: rotateX(180deg); z-index: 1; }
}
@keyframes env-card {
  0% { transform: translateY(0); z-index: 2; }
  70% { transform: translateY(-112%) scale(1.02); z-index: 2; }
  71% { z-index: 6; }
  100% { transform: translateY(-104%) scale(1.06); z-index: 6; box-shadow: 0 16px 34px rgb(29 23 32 / 28%); }
}
@keyframes env-drop { to { opacity: 0; transform: translateY(35%); } }
@keyframes env-flap-drop {
  from { transform: rotateX(180deg); z-index: 1; }
  to { opacity: 0; transform: translateY(35%) rotateX(180deg); z-index: 1; }
}

.reply-panel {
  margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); text-align: center;
  background: linear-gradient(180deg, var(--brand-soft), var(--brand-tint)); border: 1px solid var(--line);
}
.reply-panel h2 { color: var(--brand-deep); }
.reply-panel p { margin: 0 auto 1rem; max-width: 52ch; color: var(--ink-2); }
.reply-panel .actions { justify-content: center; }
.open-actions { margin-top: 2rem; }

/* Account */
.tabs ul { display: flex; gap: .3rem; list-style: none; margin: 0 0 1.5rem; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; padding: .5rem 1rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: 999px; background: var(--bg-soft); font-weight: 650; }
.tabs a:hover { background: var(--brand-soft); color: var(--brand); }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .5rem 1rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.row:not(:has(.thumb)) { grid-template-columns: minmax(0, 1fr); }
.row-main { display: grid; gap: .1rem; }
.row-title { font-weight: 750; color: var(--ink); text-decoration: none; }
.row-title:hover { color: var(--brand); }
.row.unread { border-color: var(--brand-soft); background: var(--brand-tint); }
.row.unread .row-title { color: var(--brand); }
.row-actions { grid-column: 1 / -1; display: flex; gap: .5rem; flex-wrap: wrap; }
.row-actions form { margin: 0; }
@media (min-width: 700px) {
  .row { grid-template-columns: 128px minmax(0, 1fr) auto; }
  .row:not(:has(.thumb)) { grid-template-columns: minmax(0, 1fr) auto; }
  .row-actions { grid-column: auto; }
}
.thumb img { width: 100%; border-radius: 8px; aspect-ratio: 1200 / 628; object-fit: cover; }
.thumb-missing { display: block; aspect-ratio: 1200 / 628; border-radius: 8px; background: var(--brand-soft); }
.empty { padding: 2.5rem 1rem; color: var(--muted); text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); }
.inline-form { display: grid; gap: .75rem; align-items: end; margin-bottom: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
@media (min-width: 800px) { .inline-form { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table td form { display: inline; }
.table input { margin: 0; }

.search-large { margin-bottom: 1.5rem; max-width: 640px; gap: .5rem; }
.search-large .btn { flex: none; }

.error-page { padding-block: 3rem; max-width: 720px; }
.seo-summary { margin-top: 3rem; color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { margin-top: 3rem; padding-block: 2.5rem 1.25rem; background: #1f1622; color: #e3d9e6; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand { margin-bottom: .5rem; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.footer-about p { color: #bfb0c4; max-width: 36ch; font-size: .95rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #bfa6c6; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .25rem 0; }
.site-footer time { color: #bfa6c6; margin-left: .35rem; font-size: .9rem; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .85rem; color: #a493aa; }
.step:has(#when-now:checked) .when-date { display: none; }
