/* ==========================================================================
   Love Letters with Lou
   Palette and type come straight from the brand: logo red on sage cream,
   Libre Baskerville from the business card, Atkinson Hyperlegible for reading.
   ========================================================================== */

:root {
  --paper: #F5F8EE;        /* logo background */
  --paper-bright: #FDFEF9; /* letter sheets, the business card */
  --red: #C04646;          /* logo red */
  --red-deep: #9C3337;     /* hover, seal shadow */
  --blush: #F4C9CC;        /* pink hearts on the business card */
  --ink: #2B2427;          /* body text */
  --ink-soft: #5D5458;     /* secondary text */
  --rule: rgba(43, 36, 39, 0.18);
  --envelope: #E9ECE3;
  --envelope-edge: #8E928A;

  --serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --gutter: 16px;
  --wrap: 1120px;
  --measure: 62ch;
  --radius: 6px;
  --shadow-paper: 0 1px 0 rgba(43, 36, 39, 0.06), 0 24px 48px -28px rgba(43, 36, 39, 0.45);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* The tilted sheets, cards and stamps poke a few px past the edge; clip that
   so phones never get a sideways wobble. (clip, not hidden: no scroll box) */
main { flex: 1; overflow-x: clip; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--red-deep); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Anything the Sheet empties gets the hidden attribute; make sure no
   display rule (like .btn's inline-block) can override it. */
[hidden] { display: none !important; }

/* While the Google Sheet loads, hide the text it controls so the built-in
   text doesn't flash and then change. boot.js / content.js manage this. */
.content-pending [data-text],
.content-pending [data-list],
.content-pending [data-setting],
.content-pending [data-setting-href] { visibility: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--paper);
  cursor: pointer;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--paper); }

.btn-outline {
  background: transparent;
  color: var(--red-deep);
}
.btn-outline:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Small phones: buttons fill the row so they line up and are easy to hit */
@media (max-width: 479px) {
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img { width: 76px; height: auto; }
.brand:hover { color: var(--red-deep); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  padding-block: 0.35rem;
  display: inline-block;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--red-deep); border-bottom-color: var(--blush); }
.nav-list a[aria-current="page"] { color: var(--red-deep); border-bottom-color: var(--red); }

@media (max-width: 599px) {
  .site-header nav { width: 100%; }
  .nav-list { justify-content: space-between; gap: 0.25rem 0.75rem; }
  .nav-list a { font-size: 1rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--rule); }

.page-intro { padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) 0; }
.lead { font-size: 1.25rem; }
.page-intro .lead { color: var(--ink-soft); }
.page-intro + .section { padding-top: 2rem; }
.about-grid h2 { margin-top: 2.5rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; }

/* ---------- Home: the letter ---------- */

.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(3rem, 2rem + 5vw, 5.5rem); }

.letter-stack {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

/* Two sheets peeking out underneath, like a stack of correspondence */
.letter-stack::before,
.letter-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
}
.letter-stack::before { background: var(--blush); transform: rotate(-2.2deg) translate(-6px, 10px); }
.letter-stack::after { background: var(--paper-bright); transform: rotate(1.4deg) translate(8px, 6px); }

.letter {
  position: relative;
  z-index: 1;
  background: var(--paper-bright);
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  padding: clamp(1.75rem, 1rem + 4vw, 4rem) clamp(1.25rem, 0.5rem + 5vw, 4.5rem);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.8;
}

.letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.letterhead img { width: clamp(150px, 30vw, 230px); }
.letterhead-place {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0;
  text-align: right;
}

.letter h1 {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.6rem);
  margin-bottom: 0.6em;
}

.letter p { max-width: none; }

.letter-signoff {
  margin-top: 2rem;
  font-style: italic;
}
.letter-signature {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  color: var(--red);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.hero .btn-row { justify-content: center; margin-top: 2.75rem; }

@media (prefers-reduced-motion: no-preference) {
  .letter-stack { animation: letter-arrive 900ms cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes letter-arrive {
    from { opacity: 0; transform: translateY(28px) rotate(-1deg); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Home: what Lou does ---------- */

.offer-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}
.offer {
  border-top: 3px solid var(--red);
  padding-top: 1.25rem;
}
.offer p { color: var(--ink-soft); }

/* ---------- Home: reviews (notecards) ---------- */

.review-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  align-items: start;
  margin-top: 0.5rem;
}

/* Row under the cards: pager on the left, Google buttons on the right */
.review-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.review-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--red-deep);
  background: transparent;
}
.review-action svg { width: 1.15em; height: 1.15em; flex: none; }
.review-action:hover { background: var(--red); color: var(--paper); }

.review-action-primary { background: var(--red); color: var(--paper); }
.review-action-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--paper); }

.review-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 599px) {
  .review-links { width: 100%; }
  .review-action { flex: 1 1 auto; justify-content: center; }
}
.event-pager { margin-top: 1.75rem; }

.pager-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: transparent;
  color: var(--red-deep);
  cursor: pointer;
}
.pager-btn svg { width: 1.25rem; height: 1.25rem; }
.pager-btn:hover:not(:disabled) { background: var(--red); color: var(--paper); }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-status {
  margin: 0;
  min-width: 5.5em;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.review {
  margin: 0;
  background: var(--paper-bright);
  border-top: 4px solid var(--blush);
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  padding: 1.6rem 1.6rem 1.4rem;
  transform: rotate(-0.6deg);
}
.review:nth-child(even) { transform: rotate(0.5deg); }

.review-stars {
  margin: 0 0 0.6rem;
  color: var(--red);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.review-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.075rem;
  line-height: 1.65;
}
.review-quote p { margin: 0 0 0.75em; }
.review-quote p:last-child { margin-bottom: 0; }

/* Long reviews: about 8 lines, fading out, with a Read more button */
.review-quote.is-clamped {
  max-height: calc(1.65em * 8);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.review-more {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.6rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.review-more:hover { color: var(--ink); }

.review-name {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- Events ---------- */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.event:last-child { border-bottom: 1px solid var(--rule); }

/* Postage-stamp date block. Perforated edge via mask. */
.stamp {
  --r: 3.5px;
  position: relative;
  width: 5.25rem;
  padding: calc(2.4 * var(--r));
  background: var(--red);
  color: var(--paper);
  -webkit-mask:
    radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask:
    radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  transform: rotate(-2deg);
}
.event:nth-child(even) .stamp { transform: rotate(1.5deg); }

.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid currentColor;
  padding: 0.45rem 0.25rem 0.5rem;
  text-align: center;
  font-family: var(--serif);
}
.stamp-month { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.stamp-day { font-size: 2rem; font-weight: 700; line-height: 1.05; }
.stamp-year { font-size: 0.75rem; line-height: 1.3; opacity: 0.9; }

/* Past events: a used stamp, with a wavy postmark cancellation */
.event-list-past .stamp { background: var(--blush); color: var(--red-deep); }
.event-list-past .stamp::after {
  content: "";
  position: absolute;
  inset: -10% -40% -10% 15%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='none' stroke='%232B2427' stroke-width='2.2' stroke-opacity='.55'%3E%3Cpath d='M0 15c10-8 20 8 30 0s20 8 30 0 20 8 30 0 20 8 30 0'/%3E%3Cpath d='M0 30c10-8 20 8 30 0s20 8 30 0 20 8 30 0 20 8 30 0'/%3E%3Cpath d='M0 45c10-8 20 8 30 0s20 8 30 0 20 8 30 0 20 8 30 0'/%3E%3C/g%3E%3C/svg%3E") center / 100% 70% no-repeat;
  pointer-events: none;
}

.event-date {
  font-weight: 700;
  color: var(--red-deep);
  margin-bottom: 0.25rem;
}
.event-list-past .event-date { color: var(--ink-soft); }

.event-text {
  font-size: 1.1875rem;
  margin-bottom: 0;
  white-space: pre-line;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 1rem 0 0;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--red-deep);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
}
.event-link:hover { background: var(--red); color: var(--paper); }
.event-link svg { width: 1.1em; height: 1.1em; flex: none; }

.events-status {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.events-status p { margin: 0; }

.sample-notice {
  background: var(--paper-bright);
  border: 2px dashed var(--red);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: none;
}

.events-past { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.events-past h2 { color: var(--ink-soft); }

@media (max-width: 479px) {
  .event { gap: 1.1rem; }
  .stamp { width: 4.5rem; }
  .stamp-day { font-size: 1.7rem; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: start;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: minmax(260px, 5fr) 7fr; }
}

/* Photo slot, taped to the page */
.photo {
  position: relative;
  margin: 0;
  background: var(--paper-bright);
  padding: 0.75rem 0.75rem 3rem;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.5deg);
  max-width: 420px;
}
.photo::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  background: color-mix(in srgb, var(--blush) 80%, transparent);
  transform: translateX(-50%) rotate(3deg);
}
/* Shown uncropped at its own proportions; width/height in the HTML reserve the space. */
.photo img { display: block; width: 100%; height: auto; }
@media (max-width: 799px) {
  .photo { max-width: min(340px, 100%); margin-inline: auto; }
}
.photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0.7rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- Pricing ---------- */

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}

.price-item {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.price-item:last-child { border-bottom: 1px solid var(--rule); }

.price-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.price-head h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.65rem);
  margin: 0;
}
.price-leader {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--ink-soft);
  transform: translateY(-0.3em);
}
.price-amount {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  color: var(--red-deep);
  white-space: nowrap;
}
.price-amount small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.price-item p.price-desc { color: var(--ink-soft); margin: 0; }

@media (max-width: 479px) {
  .price-head { flex-wrap: wrap; row-gap: 0.25rem; }
  .price-head h2 { flex-basis: 100%; }
  .price-leader { display: none; }
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Contact: envelope + business card ---------- */

.envelope-section { padding-block: 2rem clamp(3rem, 2rem + 5vw, 5.5rem); }

.envelope-stage {
  display: grid;
  max-width: 680px;
  margin-inline: auto;
  perspective: 1400px;
}
.envelope-stage > * { grid-area: 1 / 1; }

.envelope {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 7 / 4;
  z-index: 1;
}
@media (max-width: 599px) {
  .envelope { aspect-ratio: 7 / 5; }
}

.env-back,
.env-pocket,
.env-flap {
  position: absolute;
  inset: 0;
}
.env-back {
  background: #DCE0D5;
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
}
.env-pocket {
  z-index: 3;
  background: linear-gradient(180deg, #EEF1E8, var(--envelope));
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  border-radius: 4px;
}
.env-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.env-lines path { stroke: var(--envelope-edge); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }

.env-flap {
  z-index: 4;
  background: linear-gradient(180deg, #F3F5EE, #E5E9DE);
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  transform-origin: 50% 0;
  transition: transform 650ms cubic-bezier(.4, 0, .2, 1), z-index 0s linear 320ms;
}

.seal {
  position: relative;
  z-index: 6;
  align-self: center;
  justify-self: center;
  width: clamp(130px, 30%, 200px);
  aspect-ratio: 1 / 0.92;
  margin-top: 6%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 220ms ease, opacity 250ms ease;
  filter: drop-shadow(0 8px 10px rgba(92, 24, 28, 0.35));
}
.seal:hover { transform: scale(1.04) rotate(-2deg); }
.seal:focus-visible { outline-offset: 6px; }
.seal-heart { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-logo {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 62%;
  transform: translate(-50%, -50%);
}

.envelope-hint {
  text-align: center;
  color: var(--ink-soft);
  margin: 1.25rem auto 0;
  font-style: italic;
  font-family: var(--serif);
}

/* The card itself */
.biz-card {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: 94%;
  background: var(--paper-bright);
  border-radius: 4px;
  box-shadow: var(--shadow-paper);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  display: grid;
  gap: 1.5rem 2rem;
  align-items: center;
}
/* Focus is moved here after opening so screen readers land on the card;
   it isn't interactive itself, so no ring. */
.biz-card:focus,
.biz-card:focus-visible { outline: none; }

@media (min-width: 600px) {
  .biz-card { grid-template-columns: 1fr auto 1.25fr; }
}

.biz-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.biz-card-badge {
  width: clamp(96px, 22vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}
.biz-card-badge img { width: 74%; }
.biz-card-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 24ch;
}

.biz-card-divider {
  width: 100%;
  height: 1.5px;
  background: var(--ink);
}
@media (min-width: 600px) {
  .biz-card-divider { width: 1.5px; height: 100%; }
}

.biz-card-name {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  margin: 0;
}
.biz-card-title {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
}
.biz-card-links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.biz-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
  text-decoration-color: var(--blush);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.biz-card-links a:hover { color: var(--red-deep); text-decoration-color: var(--red); }
.biz-card-links svg {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 6px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-bright);
}

/* Closed state only exists when JS is running; without JS the card just shows. */
html:not(.js) .envelope,
html:not(.js) .seal,
html:not(.js) .envelope-hint { display: none; }

.js .envelope-stage:not(.is-open) .biz-card {
  opacity: 0;
  transform: translateY(6%) scale(0.86);
  pointer-events: none;
}

.envelope-stage.is-open .env-flap { transform: rotateX(180deg); z-index: 0; }
.envelope-stage.is-open .seal { opacity: 0; transform: scale(0.8); pointer-events: none; }
.envelope-stage.is-open + .envelope-hint { visibility: hidden; }
.envelope-stage.is-open .biz-card { animation: card-out 1500ms cubic-bezier(.3, .7, .2, 1) 450ms both; }
.envelope-stage.is-open .envelope { animation: envelope-away 600ms ease-in 1250ms both; }

@keyframes card-out {
  0%   { opacity: 0; transform: translateY(6%) scale(0.86); z-index: 2; }
  12%  { opacity: 1; }
  50%  { transform: translateY(-48%) scale(0.86); z-index: 2; }
  51%  { z-index: 7; }
  100% { opacity: 1; transform: none; z-index: 7; }
}
@keyframes envelope-away {
  to { opacity: 0; transform: translateY(30%); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .env-flap, .seal { transition: none; }
  .envelope-stage.is-open .biz-card { animation: none; opacity: 1; transform: none; z-index: 7; }
  .envelope-stage.is-open .envelope { animation: none; visibility: hidden; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--red);
  color: var(--paper);
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) 2rem;
  margin-top: auto;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--blush); }
.site-footer :focus-visible { outline-color: var(--paper); }

.footer-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 0 2.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(245, 248, 238, 0.35);
}
.footer-row img { width: 150px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-weight: 700;
}
/* Taller tap area (about 44px) without changing how the links look */
.footer-links a {
  display: inline-block;
  padding-block: 0.6rem;
}
.fineprint {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}
.lost p { margin-inline: auto; }
.lost img { width: 180px; margin: 0 auto 2rem; }
.lost .btn-row { justify-content: center; }
