/* The home page ("/"), loaded only by templates/core/home.html.
   A welcome with an airmail invitation, a row of Plaza characters standing on a ribbon of promises, then a few
   handmade things in a row: a cross-stitch sampler of what makes this place different, name tags for everyone who's
   welcome, index cards for the site's own words, and a patchwork quilt of everything members can do, each patch with a
   real screenshot or a small stitched detail. The fabric colours are the same palette members pick for their own pages
   (profiles/page_colors.py), each with a darker thread for its stitched seam. The wallpaper of hearts behind the page
   stays in retro.css (body.home-page). */

.home-page {
  --fabric-rose: #F8D7DF;      --seam-rose: #C7677A;
  --fabric-sky: #D0E6F7;       --seam-sky: #5D8FB8;
  --fabric-mint: #CFEBD6;      --seam-mint: #4E9A6B;
  --fabric-butter: #F9EDAE;    --seam-butter: #B3922A;
  --fabric-lavender: #E1D7F4;  --seam-lavender: #8770BD;
  --fabric-peach: #FCDCC6;     --seam-peach: #C47A4E;
  --fabric-orchid: #F0D3EE;    --seam-orchid: #B565A7;
  --fabric-aqua: #C6EBE6;      --seam-aqua: #3F9A8F;
  /* the invitation: a letter on warm paper in an airmail envelope's stripes (the colours of the Airmail frame in
     Heartbeats), the linen of the sampler, the rules of the index cards */
  --letter-paper: #FFF9F2;
  --letter-rule: #E8C9BE;
  --note-tint: rgba(217, 80, 107, .08);
  --airmail-red: #D9506B;
  --airmail-blue: #3F6FD0;
  --airmail-gap: #FFFBF0;
  --linen: #FFFDF7;
  --linen-thread: rgba(46, 33, 24, .045);
  --index-rule: rgba(93, 143, 184, .3);
  --index-red: #E58A9A;
}
/* .page drops the side padding of .wrap; give it back here so nothing touches the edges of a phone screen */
.home-page .wrap.page { max-width: calc(960px + 2rem); padding-inline: 1rem; padding-bottom: 3rem; }

/* ---- the welcome ---- */
.front-door { padding: 1rem 0 0; font-variant-ligatures: none; }
.front-door .eyebrow { font-size: .7rem; }
.front-door .front-door-title {
  margin: .55rem 0 0;
  font-family: 'Pixelify Sans', Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  line-height: 1.02;
  color: var(--dm-red-text, var(--thread-red));
  text-shadow: 3px 3px 0 var(--card), 6px 6px 0 var(--dm-shadow, var(--ink));
  overflow-wrap: anywhere;
}
/* what this place is, in one line, right under its name */
.front-door-tagline {
  max-width: 27em;
  margin: 1rem auto 0;
  font-size: clamp(1.15rem, 2.7vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}
.front-door-tagline-heart { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* The invitation: one letter with the lead, the way in, the small print and the guest door. Its edge is an airmail
   envelope's stripes (the border, painted by the second background); the paper is the first background. */
.front-door-card {
  position: relative;
  max-width: 41rem;
  margin: 1.7rem auto 0;
  padding: 1.45rem 2rem 1.3rem;
  background:
    linear-gradient(var(--letter-paper), var(--letter-paper)) padding-box,
    repeating-linear-gradient(-45deg, var(--airmail-red) 0 9px, var(--airmail-gap) 9px 18px, var(--airmail-blue) 18px 27px, var(--airmail-gap) 27px 36px) border-box;
  border: 9px solid transparent;
  box-shadow: 0 0 0 2px var(--dm-line, var(--ink)), 5px 5px 0 2px var(--dm-shadow, var(--ink));
}
.front-door-card--member { max-width: 34rem; padding-block: 1.1rem 1.2rem; }
/* the stamp in the corner: perforated edge, a heart, and what it costs */
.front-door-stamp {
  position: absolute;
  top: -20px;
  right: 14px;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: 58px;
  height: 66px;
  background: var(--card);
  border: 3px dashed var(--airmail-blue);
  outline: 3px solid var(--card);
  box-shadow: 3px 3px 0 3px rgba(46, 33, 24, .22);
  transform: rotate(6deg);
}
.front-door-stamp .front-door-stamp-heart { width: 24px; height: 21px; color: var(--airmail-red); }
.front-door-stamp-word {
  font-family: 'Silkscreen', monospace;
  font-size: .58rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--airmail-blue);
}
.front-door-card-title {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dm-red-text, var(--thread-red));
}
.front-door-card-title span { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: .85em; }
.front-door-lead { max-width: 33em; margin: .7rem auto 0; font-size: 1.06rem; line-height: 1.6; }
.front-door-card--member .front-door-lead { margin-top: 0; }
.front-door-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.5rem 0 0; }
.front-door-card .front-door-buttons { margin-top: 1.25rem; }
.front-door-buttons--join { align-items: center; gap: .7rem 1.3rem; }
/* the way in: the biggest button on the page */
.front-door-join {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.65rem;
  font-size: .92rem;
  box-shadow: 3px 3px 0 var(--dm-shadow, var(--ink));
}
.front-door-join .front-door-join-heart { width: 16px; height: 14px; flex: none; color: #F7A8B8; }
.front-door-login { font-size: .92rem; }
.front-door-note {
  display: table;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: .3rem .8rem;
  background: var(--note-tint);
  border: 1px dashed var(--airmail-red);
  font-size: .84rem;
}
/* the P.S. under the letter, for whoever just wants to look around first */
.front-door-peek {
  max-width: 35em;
  margin: 1.15rem auto 0;
  padding-top: .85rem;
  border-top: 2px dashed var(--letter-rule);
  font-size: .9rem;
  line-height: 1.55;
  text-align: left;
}
.front-door-peek b { color: var(--dm-red-text, var(--thread-red)); }

/* the welcome committee: characters drawn by the Plaza's own code, standing on the ribbon below */
.welcome-committee {
  position: relative;
  width: 871px;
  max-width: 100%;
  margin: 2.3rem auto 0;            /* room above for what they say */
  cursor: url("../img/cursor-pointer.a7d64dc8a0d3.png") 5 0, pointer;
}
.welcome-committee img { display: block; width: 100%; height: auto; margin-bottom: -4px; image-rendering: pixelated; }
.welcome-committee-hello {
  position: absolute;
  left: 44%;
  bottom: 86%;
  padding: 2px 10px 3px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 2px 2px 0 var(--dm-shadow, var(--ink));
  transform-origin: 0 100%;
}
.welcome-committee-hello::after {           /* the bubble's tail, pointing down at the one who waves */
  content: "";
  position: absolute;
  left: 8px;
  bottom: -7px;
  width: 9px;
  height: 9px;
  background: var(--card);
  border: solid var(--dm-line, var(--ink));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .welcome-committee-hello { animation: committee-hello 2.6s steps(1, end) .5s both; }
}
@keyframes committee-hello {                 /* says it once, after the page has appeared */
  0% { opacity: 0; transform: translateY(6px); }
  12% { opacity: 1; transform: translateY(-3px); }
  20%, 100% { opacity: 1; transform: none; }
}
/* The others chime in after "Hewo!", one at a time, and answer a click (the script at the end of home.html): the same
   bubble as "Hewo!", moved over whoever speaks (--at is where their head is). Over the right half it opens to the
   left, so it never runs off the edge. */
.welcome-committee-chat {
  position: absolute;
  left: calc(var(--at, 50%) - 14px);
  bottom: 86%;
  z-index: 1;
  padding: 2px 10px 3px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 2px 2px 0 var(--dm-shadow, var(--ink));
  transform-origin: 0 100%;
  visibility: hidden;
}
.welcome-committee-chat::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -7px;
  width: 9px;
  height: 9px;
  background: var(--card);
  border: solid var(--dm-line, var(--ink));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.welcome-committee-chat.is-flipped { left: auto; right: calc(100% - var(--at, 50%) - 14px); transform-origin: 100% 100%; }
.welcome-committee-chat.is-flipped::after { left: auto; right: 8px; }
.welcome-committee-chat.is-on { visibility: visible; }
.welcome-committee.is-chatting .welcome-committee-hello { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .welcome-committee-chat.is-on { animation: committee-chat .36s steps(3, end) both; }
}
@keyframes committee-chat {
  0% { opacity: 0; transform: translateY(6px); }
  60% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 1; transform: none; }
}

/* ---- the ribbon of promises the committee stands on ---- */
.promise-ribbon {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1.6rem;
  max-width: 880px;
  margin: 0 auto;
  padding: .85rem 1.4rem;
  list-style: none;
  background: var(--thread-red);
  border: 3px solid var(--dm-line, var(--ink));
  box-shadow: 4px 4px 0 var(--dm-shadow, var(--ink));
  color: var(--dm-on-accent, var(--card));
  font-family: 'Silkscreen', monospace;
  font-size: .66rem;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}
.promise-ribbon::after {                    /* the stitches along the ribbon */
  content: "";
  position: absolute;
  inset: 5px;
  border-block: 2px dashed rgba(255, 251, 240, .55);
  pointer-events: none;
}
.promise-ribbon li { display: inline-flex; align-items: center; gap: .45rem; text-wrap: balance; }
.promise-ribbon .pixel-heart { width: 11px; height: 9.6px; color: #F7A8B8; flex-shrink: 0; }
.promise-ribbon::before {                   /* the two notched ends tucked in behind */
  content: "";
  position: absolute;
  z-index: -1;
  left: -34px;
  right: -34px;
  top: 12px;
  bottom: -14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40' preserveAspectRatio='none'%3E%3Cpath d='M1.5 1.5H46.5V38.5H1.5L14 20Z' fill='%2374202D' stroke='%232E2118' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left / 48px 100% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40' preserveAspectRatio='none'%3E%3Cpath d='M46.5 1.5H1.5V38.5H46.5L34 20Z' fill='%2374202D' stroke='%232E2118' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") right / 48px 100% no-repeat;
}

/* ---- section headings ---- */
.front-section-title {
  margin: 3.4rem 0 1.4rem;
  font-family: 'Pixelify Sans', Verdana, Geneva, sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--dm-red-text, var(--thread-red));
  text-underline-offset: .3em;
  text-decoration-thickness: 2px;
}
/* a small aside under a heading pulls it closer */
.front-section-title:has(+ .front-section-aside) { margin-bottom: .55rem; }
.front-section-aside { margin: 0 auto 1.3rem; text-align: center; font-size: .92rem; opacity: .8; }

/* ---- why it feels different: a cross-stitch sampler on linen, a stitched X for each thing we don't do ---- */
.sampler {
  position: relative;
  max-width: 54rem;
  margin: 0 auto;
  padding: 1.65rem 1.9rem 1.5rem;
  background-color: var(--linen);
  background-image: linear-gradient(var(--linen-thread) 1px, transparent 1px), linear-gradient(90deg, var(--linen-thread) 1px, transparent 1px);
  background-size: 6px 6px;
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 4px 4px 0 var(--dm-shadow, var(--ink));
}
.sampler::before {                          /* the stitched border */
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed var(--seam-rose);
  pointer-events: none;
}
.sampler-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2.2rem; margin: 0; padding: 0; list-style: none; }
.sampler-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: .75rem; align-items: start; align-content: start; }
.sampler-row .sampler-mark { grid-row: span 2; width: 16px; height: 16px; margin-top: .3rem; color: var(--dm-red-text, var(--thread-red)); }
.sampler-title { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.sampler-row p { margin: .2rem 0 0; font-size: .95rem; line-height: 1.55; }
.sampler-row--heart { grid-column: 1 / -1; padding-top: 1.1rem; border-top: 2px dashed var(--seam-rose); }
.sampler-row--heart .sampler-mark { width: 16px; height: 14px; color: var(--heart-pink); }
.sampler-row--heart .sampler-title { color: var(--dm-red-text, var(--thread-red)); }

/* ---- there's room for all sorts of people: name tags, the kind you stick on at a party ---- */
.all-sorts { max-width: 54rem; margin: 0 auto; text-align: center; }
.all-sorts-text { max-width: 36em; margin: 0 auto; padding: .45rem 1.1rem; font-size: 1.06rem; line-height: 1.6; background: var(--paper); }
.name-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.name-tag {
  --tag-band: var(--thread-red);
  display: flex;
  flex-direction: column;
  min-width: 10.5rem;
  background: var(--card);
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 3px 3px 0 var(--dm-shadow, var(--ink));
  transform: rotate(-2deg);
}
.name-tag:nth-child(2) { --tag-band: var(--thread-teal); transform: rotate(1.5deg); }
.name-tag:nth-child(3) { --tag-band: #5B4796; transform: rotate(-.8deg); }
.name-tag:nth-child(4) { --tag-band: #2F5E8C; transform: rotate(2deg); }
.name-tag:nth-child(5) { --tag-band: #8A4B1E; transform: rotate(-1.4deg); }
.name-tag:nth-child(6) { --tag-band: #7A3F70; transform: rotate(1deg); }
.name-tag-hello {
  padding: .3rem .6rem .25rem;
  font-family: 'Silkscreen', monospace;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFFBF0;
  background: var(--tag-band);
}
.name-tag-name { padding: .55rem .9rem .65rem; font-size: 1.08rem; font-weight: 600; white-space: nowrap; }
.all-sorts-seat { margin: 1.4rem auto 0; font-size: .95rem; opacity: .85; }

/* ---- little words we use here: index cards, the term on the red line, the meaning on the blue ones ---- */
.little-words-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0; }
.little-word {
  padding: .75rem 1rem 1rem;
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.5rem - 1px), var(--index-rule) calc(1.5rem - 1px) 1.5rem);
  background-position: 0 3.275rem;          /* the blue rules start under the term (.75 + 1.75 + .2 + .125 + .45rem) */
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 3px 3px 0 var(--dm-shadow, var(--ink));
}
.little-word dt {
  margin: 0 0 .45rem;
  padding-bottom: .2rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.75rem;
  color: var(--dm-red-text, var(--thread-red));
  border-bottom: 2px solid var(--index-red);
}
.little-word dd { margin: 0; font-size: .92rem; line-height: 1.5rem; }

/* ---- the quilt: one patch of fabric per thing to do ---- */
.feature-quilt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem; }
.feature-patch {
  --patch-fabric: var(--card);
  --patch-seam: var(--heart-pink);
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.25rem 1.35rem 1.4rem;
  background-color: var(--patch-fabric);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 7px);
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 3px 3px 0 var(--dm-shadow, var(--ink));
}
.feature-patch::before {                    /* the seam, stitched all the way round */
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--patch-seam);
  pointer-events: none;
}
.feature-patch > p, .feature-patch-words > p { margin: 0 0 .7rem; max-width: 34em; }
.feature-patch-title { margin: 0 0 .35rem; font-size: 1.22rem; line-height: 1.25; color: var(--ink); }
.feature-patch-link { align-self: flex-start; margin-bottom: .2rem; font-weight: 600; }
.feature-patch-photo { position: relative; margin: auto 0 0; padding-top: 1.2rem; }
.feature-patch-photo::before {              /* a strip of tape holding the picture on */
  content: "";
  position: absolute;
  z-index: 1;
  top: .55rem;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  background: repeating-linear-gradient(90deg, rgba(255, 251, 240, .8) 0 6px, rgba(217, 80, 107, .55) 6px 12px);
  border-inline: 2px dotted rgba(46, 33, 24, .35);
  transform: rotate(-3deg);
}
.feature-patch-picture {
  display: block;
  width: 100%;
  height: auto;
  background: var(--card);
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 3px 3px 0 var(--dm-shadow, var(--ink));
}
.feature-patch-photo .feature-patch-picture { transform: rotate(-.8deg); }
.feature-patch:nth-child(even) .feature-patch-photo .feature-patch-picture { transform: rotate(.8deg); }
.feature-patch-picture--loose { margin-top: auto; padding-top: 1rem; background: none; border: 0; box-shadow: none; }

.feature-patch--profiles { grid-column: span 7; --patch-fabric: var(--fabric-rose); --patch-seam: var(--seam-rose); }
.feature-patch--browse { grid-column: span 5; --patch-fabric: var(--fabric-sky); --patch-seam: var(--seam-sky); }
.feature-patch--personals { --patch-fabric: var(--fabric-butter); --patch-seam: var(--seam-butter); }
.feature-patch--heartbeats { --patch-fabric: var(--fabric-orchid); --patch-seam: var(--seam-orchid); }
.feature-patch--profirings { --patch-fabric: var(--fabric-mint); --patch-seam: var(--seam-mint); }
.feature-patch--kindred { --patch-fabric: var(--fabric-aqua); --patch-seam: var(--seam-aqua); }
.feature-patch--plaza { grid-column: 1 / -1; --patch-fabric: var(--fabric-lavender); --patch-seam: var(--seam-lavender); }
.feature-patch--messages { grid-column: span 5; --patch-fabric: var(--fabric-peach); --patch-seam: var(--seam-peach); }
.feature-patch--hearts { grid-column: span 7; }

/* the Plaza patch runs the full width, its words beside the picture */
.feature-patch--plaza {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  column-gap: 1.8rem;
  padding-block: 1.1rem 1.5rem;
}
.feature-patch--plaza .feature-patch-words { display: flex; flex-direction: column; padding-left: .2rem; }
.feature-patch--plaza .feature-patch-photo { margin: 0; }

/* a cloud of example interests on the Browse patch, sized like the popular tags on the Browse page */
.feature-patch .interest-cloud {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-content: center;
  align-items: baseline;
  justify-content: center;
  gap: .15rem .95rem;
  max-width: none;
  margin: .9rem 0 0;
  padding: .4rem .3rem 0;
  font-family: 'Pixelify Sans', Verdana, Geneva, sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--dm-teal-text, var(--thread-teal));
}
.interest-cloud .interest-cloud-loud { font-size: 1.7rem; font-weight: 700; color: var(--dm-red-text, var(--thread-red)); }
.interest-cloud .interest-cloud-quiet { font-size: .85rem; color: var(--ink); }

/* the envelope sewn onto the messages patch */
.feature-patch-sticker { display: block; align-self: flex-end; width: 108px; height: auto; margin: auto .1rem 0 0; padding-top: .9rem; }

/* how hearts come in */
.heart-earnings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.heart-earnings li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: .6rem .7rem .7rem;
  background: var(--card);
  border: 2px solid var(--dm-line, var(--ink));
  box-shadow: 2px 2px 0 var(--heart-pink);
  font-size: .9rem;
  line-height: 1.35;
}
.heart-earnings b {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  padding: .12rem .4rem;
  font-family: 'Silkscreen', monospace;
  font-size: .85rem;
  color: var(--dm-on-accent, var(--card));
  background: var(--thread-red);
  border: 2px solid var(--dm-line, var(--ink));
}

/* ---- looking out for you ---- */
.care-strip {
  max-width: 44rem;
  margin: 3.2rem auto 0;
  padding: 1.1rem 1.4rem 1.2rem;
  text-align: center;
  background: var(--card);
  border: 2px dashed var(--thread-teal);
}
.care-strip-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  color: var(--dm-teal-text, var(--thread-teal));
}
.care-strip-title .pixel-heart { width: 14px; height: 12.25px; color: var(--dm-teal-text, var(--thread-teal)); }
.care-strip p { margin: 0 auto; max-width: 36em; }
.care-strip .care-strip-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: .7rem; }

/* ---- the last word, for visitors ---- */
.closing-invite { margin: 3.2rem auto 0; text-align: center; }
.closing-invite-title { margin: 0 0 .4rem; font-size: clamp(1.35rem, 4vw, 1.7rem); color: var(--dm-red-text, var(--thread-red)); }
.closing-invite-note { margin: 0 auto; font-size: .95rem; }
.closing-invite .front-door-buttons { margin-top: 1rem; }

/* ---- smaller screens ---- */
@media (max-width: 820px) {
  .feature-quilt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-patch, .feature-patch--messages, .feature-patch--hearts { grid-column: span 1; }
  .feature-patch--profiles, .feature-patch--browse, .feature-patch--plaza { grid-column: 1 / -1; }
  .heart-earnings { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .heart-earnings li { flex-direction: row; align-items: center; gap: .6rem; padding: .45rem .7rem .45rem .5rem; }
  .little-words-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .welcome-committee { width: 431px; }
  .welcome-committee-hello { left: 32%; font-size: .85rem; }
  /* on a phone a longer line wraps instead of running off the screen */
  .welcome-committee-chat { width: max-content; max-width: min(15rem, 62vw); font-size: .85rem; white-space: normal; }
  .front-door-card { padding: 1.35rem 1.1rem 1.15rem; }
  .front-door-card-title { padding-inline: 2.6rem; }
  .front-door-stamp { top: -16px; right: 6px; width: 46px; height: 54px; gap: 3px; }
  .front-door-stamp .front-door-stamp-heart { width: 18px; height: 15.75px; }
  .front-door-stamp-word { font-size: .5rem; }
  .front-door-join { padding: .8rem 1.3rem; }
  .sampler { padding: 1.4rem 1.2rem 1.25rem; }
  .sampler-rows { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .feature-quilt { grid-template-columns: minmax(0, 1fr); }
  .feature-patch, .feature-patch--messages, .feature-patch--hearts { grid-column: 1 / -1; }
  .feature-patch--plaza { grid-template-columns: minmax(0, 1fr); padding-block: 1.25rem 1.4rem; }
  .feature-patch--plaza .feature-patch-words { padding-left: 0; }
  .feature-patch--plaza .feature-patch-photo { margin-top: .5rem; }
  .promise-ribbon { margin-inline: 18px; padding-inline: .8rem; gap: .35rem 1rem; font-size: .6rem; letter-spacing: .02em; }
  .promise-ribbon::before { left: -22px; right: -22px; }
}
@media (max-width: 560px) {
  .little-words-cards { grid-template-columns: minmax(0, 1fr); }
  .name-tags { gap: .8rem; }
  .name-tag { min-width: 0; }
  .name-tag-name { font-size: 1rem; }
}

/* ---- dark mode (retro.css, "Dark mode"): the same fabrics, dyed for the night ---- */
:root[data-theme="dark"] .home-page {
  --fabric-rose: #3A2430;      --seam-rose: #D9879A;
  --fabric-sky: #1E2D3C;       --seam-sky: #6E9FCB;
  --fabric-mint: #1E3229;      --seam-mint: #62B07F;
  --fabric-butter: #3A3221;    --seam-butter: #CBA83F;
  --fabric-lavender: #2B2440;  --seam-lavender: #9C87D3;
  --fabric-peach: #3D2A22;     --seam-peach: #D38D61;
  --fabric-orchid: #3A2438;    --seam-orchid: #D08AC4;
  --fabric-aqua: #1C3533;      --seam-aqua: #5FB8AC;
  --letter-paper: #2B2130;
  --letter-rule: #5E4A5C;
  --note-tint: rgba(226, 98, 124, .12);
  --airmail-red: #C4455E;
  --airmail-blue: #5B83D6;
  --airmail-gap: #3B3043;
  --linen: #231B28;
  --linen-thread: rgba(255, 255, 255, .035);
  --index-rule: rgba(110, 159, 203, .2);
  --index-red: #A3364A;
}
