/* Bricolage Grotesque, SIL Open Font License. Served from this site, so no
   customer data goes to a font provider. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f2f4f8;   /* stainless counter */
  --card: #f4c430;   /* mustard card stock */
  --ink: #1f2a7a;    /* stamp-pad blue */
  --night: #14183a;  /* text */
  --lingon: #c2264b; /* the free lunch, and errors */
  --leaf: #17694f;   /* the birthday discount */
  --white: #ffffff;
  --muted: #555b7d;
  --line: #d3d8e6;

  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--night);
  font: 400 1.0625rem/1.5 var(--font);
  min-height: 100dvh;
}

h1, h2, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

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

#app {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---- Shared pieces ------------------------------------------------------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.top-name { font-weight: 700; font-size: 1.0625rem; }
/* Small phones: keep the logo and the language switch on one line. */
@media (max-width: 380px) {
  .top { gap: 8px; }
  .top-name { font-size: 0.9375rem; }
  .top .link-button { font-size: 0.875rem; }
}

.brand { display: inline-flex; align-items: center; gap: 0.45em; color: var(--ink); }
.brand-x { font-weight: 400; opacity: 0.6; }
.brand-logo { display: block; height: 1.75em; width: auto; }

.card-nav { display: flex; justify-content: space-between; gap: 12px; margin: -8px 0 14px; }
.card-nav > :only-child { margin-left: auto; }
.card-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.card-nav-link:active { transform: translateY(1px); }

.link-button {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 0.9375rem;
}

.button {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
  text-decoration: none;
}
.button:active { transform: translateY(1px); }
.button:disabled { background: #b9bfd6; cursor: default; transform: none; }
.button--free { background: var(--lingon); }
.button--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button--danger { background: var(--lingon); }

.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 4px; }
.field-hint { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }
.field input[type="tel"],
.field input[type="password"],
.field input[type="text"],
.field input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid var(--night);
  border-radius: 10px;
  background: var(--white);
  font-size: 1.0625rem; /* 16px+ stops iOS from zooming in */
}
.field select {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 2px solid var(--night);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 1.0625rem;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 14px; font-size: 0.9375rem; line-height: 1.4; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }

.error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-left: 5px solid var(--lingon);
  background: var(--white);
  color: #8f1733;
  font-weight: 600;
}

.small { font-size: 0.9375rem; color: var(--muted); }

/* ---- Welcome ------------------------------------------------------------- */

.headline {
  font-size: clamp(1.625rem, 7.5vw, 2.125rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  text-wrap: balance;
}
.headline + p { margin: 8px 0 18px; max-width: 34ch; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 14px; border-bottom: 2px solid var(--night); }
.tab {
  border: 0;
  background: none;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px 10px 0 0;
}
.tab[aria-selected="true"] { background: var(--night); color: var(--white); }

.below-form { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* ---- The page the QR code opens -------------------------------------------- */

.choices { display: grid; gap: 14px; }
.choice {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 132px;
  padding: 20px;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 14px 30px -20px rgba(20, 24, 58, 0.6);
}
.choice:active { transform: translateY(1px); }
.choice-title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.choice-title::after { content: " →"; }
.choice-sub { font-size: 0.9375rem; font-weight: 500; }
.choice--menu { background: var(--ink); color: var(--white); }
.choice--card { background: var(--card) url("/kantha.svg"); color: var(--ink); }
.choice--review { background: var(--white); color: var(--night); border: 2px solid var(--ink); }

.review-qr { margin: 8px 0 22px; padding: 22px; display: grid; justify-items: center; gap: 12px; background: var(--white); border-radius: 18px; }
.review-qr img { display: block; width: min(240px, 100%); height: auto; }
.review-qr figcaption { color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.google-logo { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.28em; margin-right: 0.2em; }

/* ---- The card ------------------------------------------------------------ */

/* Mustard card stock embroidered like a nakshi kantha: a stitched flower
   pattern, framed by a running-stitch border in red thread. */
.card {
  position: relative;
  background: var(--card) url("/kantha.svg");
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 18px 0;
  box-shadow: 0 1px 0 #d9a90f, 0 14px 30px -18px rgba(20, 24, 58, 0.55);
}
.card::before {
  content: "";
  position: absolute;
  inset: 6px; /* the stub below paints over its lower end */
  border: 2px dashed rgba(194, 38, 75, 0.6);
  border-radius: 13px;
  pointer-events: none;
}
.card-head, .slots { position: relative; }
.card-title, .card-phone { background: var(--card); border-radius: 6px; padding: 0 4px; margin: 0 -4px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.card-phone { font-size: 0.875rem; font-weight: 500; white-space: nowrap; }

.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 8px; }
.slot {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 2px dashed rgba(31, 42, 122, 0.45);
  color: rgba(31, 42, 122, 0.6);
  font-weight: 600;
  font-size: 1rem;
}

/* A stamp: a pressed ring of ink with the day it was collected. */
.slot--stamped {
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3.5px var(--ink);
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  line-height: 1;
  text-align: center;
}
.stamp-day { display: block; font-size: 1.1875rem; font-weight: 800; }
.stamp-month { display: block; font-size: 0.6875rem; font-weight: 700; margin-top: 1px; }
.stamp-check { font-size: 1.375rem; font-weight: 800; }

.slot--new { animation: thunk 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes thunk {
  from { transform: rotate(var(--tilt, 0deg)) scale(2.1); opacity: 0; }
  55% { opacity: 1; }
  to { transform: rotate(var(--tilt, 0deg)) scale(1); opacity: 1; }
}

/* The free lunch is a tear-off stub: perforation line and two punched notches. */
.stub {
  position: relative;
  margin: 18px -18px 0;
  padding: 16px 18px 18px;
  background: var(--card);
  border-top: 2px dashed rgba(31, 42, 122, 0.55);
  border-radius: 0 0 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.stub::before, .stub::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--page);
}
.stub::before { left: -10px; }
.stub::after { right: -10px; }
.stub-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.stub-note { font-size: 0.875rem; font-weight: 500; text-align: right; }
.card--full .stub { background: var(--lingon); color: var(--white); border-top-color: var(--card); }

.status { margin: 22px 0 16px; }
.status-main { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.status-sub { color: var(--muted); }

.action-hint { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

/* ---- Birthday ------------------------------------------------------------ */

.birthday-banner {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--leaf);
  color: var(--white);
}
.birthday-banner-title { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 4px; }
.birthday-banner .button { margin-top: 14px; }
.birthday-banner-hint { margin-top: 8px; font-size: 0.9375rem; opacity: 0.9; }
.button--birthday { background: var(--white); color: var(--leaf); }

.birthday-add { margin-top: 28px; padding: 16px 18px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.birthday-add-title { font-size: 1.1875rem; font-weight: 700; margin-bottom: 4px; }
.birthday-add > p { margin-bottom: 14px; }
.birthday-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.birthday-form .small { margin: -4px 0 14px; }
.birthday-note { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

.account { margin-top: auto; padding-top: 36px; }
.account summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.account-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 8px; }
.account-body form { width: 100%; margin-top: 10px; }
.link-button--danger { color: #8f1733; }

/* ---- The QR code the customer shows at the till ---------------------------- */

.qr-box {
  width: min(100%, 260px);
  margin: 18px auto 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -20px rgba(20, 24, 58, 0.6);
}
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box[aria-busy="true"]::after { content: "…"; font-size: 2rem; color: var(--muted); }
.qr-live { color: var(--muted); font-size: 0.9375rem; text-align: center; margin-bottom: 18px; }

/* ---- The restaurant phone after scanning a customer's code ------------------ */

.scan-admin { flex: none; }
.scan-who { margin-top: -8px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
body[data-view^="done-"] .card-nav-link { color: inherit; border-color: currentColor; }
.scan-card { margin: 14px 0 18px; padding: 20px; border-radius: 18px; background: var(--card) url("/kantha.svg"); color: var(--ink); }
.scan-phone { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.scan-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 12px; }
.scan-slots li { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(31, 42, 122, 0.45); background: rgba(255, 255, 255, 0.55); }
.scan-slots li.on { border: 0; background: var(--ink); }
.scan-count { font-weight: 700; font-size: 1.125rem; }
.scan-note { margin: 14px 0 10px; font-weight: 600; color: var(--leaf); }
.scan-birthday { background: var(--leaf); margin-top: 0; }
.scan-next { margin-top: 18px; font-weight: 600; }
.scan-other { margin-top: 28px; }
.admin .scan-open { margin: 4px 0 16px; }
.done .scan-open { margin-top: 36px; }
.done .scan-back { margin-top: 12px; }
body[data-view^="done-"] .button.scan-back { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* ---- In-page camera scanner ------------------------------------------------- */

.scanner {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: #0b0e24;
  color: var(--white);
  text-align: center;
}
.scanner-frame { position: relative; width: min(100%, 420px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; }
.scanner-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-target { position: absolute; inset: 14%; border: 3px solid var(--card); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.scanner-message { max-width: 420px; font-weight: 600; min-height: 3em; }
.scanner-cancel { width: min(100%, 420px); background: var(--white); color: var(--ink); }

/* ---- Confirmation on both phones, big enough to read across the counter ---- */

body[data-view="done-stamp"] { background: var(--card); color: var(--ink); }
body[data-view="done-redeem"] { background: var(--lingon); color: var(--white); }
body[data-view="done-redeem"] :focus-visible { outline-color: var(--white); }
body[data-view="done-birthday"] { background: var(--leaf); color: var(--white); }
body[data-view="done-birthday"] :focus-visible { outline-color: var(--white); }

.done { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.done-word {
  font-size: clamp(3rem, 16vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-wrap: balance;
}
.done-count { font-size: 2rem; font-weight: 700; margin-top: 10px; line-height: 1.1; }
.done-who { font-size: 1.1875rem; font-weight: 500; margin-top: 4px; }
.done .button { margin-top: 36px; }
body[data-view="done-redeem"] .button { background: var(--white); color: var(--lingon); }
body[data-view="done-birthday"] .button { background: var(--white); color: var(--leaf); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Admin ---------------------------------------------------------------- */

.admin { max-width: 880px; margin: 0 auto; padding: 22px var(--gutter) 60px; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-bottom: 26px; }
.admin-top h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.admin-who { color: var(--muted); font-size: 0.9375rem; }
.row-actions select { min-height: 40px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; }
.row-form { flex-basis: 100%; margin-top: 4px; }
.staff-form .field { flex: 1 1 150px; }
.admin-login { max-width: 380px; }
.admin-login h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }

.admin section { margin-top: 38px; }
.admin-top + section { margin-top: 0; }
.admin .admin-page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.admin h2 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.admin section > p { max-width: 62ch; color: var(--muted); margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 2px solid var(--night); }
.stats div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: 0.875rem; color: var(--muted); }
.stats dd { font-size: 1.75rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }

.rows { border-top: 2px solid var(--night); }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.row-main { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-meta { color: var(--muted); font-size: 0.9375rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row--voided .row-main { text-decoration: line-through; color: var(--muted); }
.empty { padding: 14px 0; color: var(--muted); }

.chip {
  min-height: 40px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}
.chip--danger { border-color: var(--lingon); color: #8f1733; }
.chip--link { display: inline-flex; align-items: center; text-decoration: none; }

/* Admin charts */
.charts { display: grid; gap: 26px; margin-top: 22px; }
.charts figure { margin: 0; }
.charts figcaption { font-weight: 700; margin-bottom: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; font-size: 0.9375rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.swatch--paid { background: #3346b0; }
.swatch--free { background: #c2264b; }
.swatch--birthday { background: #23855f; }
.chart { display: block; width: 100%; height: auto; font-family: var(--font); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .count { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .bar:hover .hit { fill: rgba(31, 42, 122, 0.06); }
.chart-table summary { cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; font-size: 0.9375rem; }
.chart-table table { margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 4px 18px 4px 0; text-align: right; border-bottom: 1px solid var(--line); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; }
.inline-form .field { margin: 0; flex: 1 1 170px; }
.inline-form .button { width: auto; flex: 0 0 auto; min-height: 44px; padding: 8px 18px; font-size: 1rem; }

.notice { margin: 12px 0; padding: 12px 14px; background: var(--white); border-left: 5px solid var(--ink); font-weight: 600; }
.notice strong { font-size: 1.375rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

/* ---- Privacy page --------------------------------------------------------- */

.doc-page { max-width: 62ch; margin: 0 auto; padding: 22px var(--gutter) 60px; }
.doc-page h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 18px 0 10px; color: var(--ink); }
.doc-page h2 { font-size: 1.1875rem; font-weight: 700; margin: 24px 0 4px; }
.doc-page p { margin-bottom: 10px; }
.doc-page ul { list-style: disc; padding-left: 1.2em; margin-bottom: 10px; }
.doc-page hr { border: 0; border-top: 2px solid var(--night); margin: 36px 0 18px; }

/* ---- QR poster: 14 x 13.5 cm ---------------------------------------------- */

/* Bangla Luxe colours (banglaluxe.se): olive ground, gold headline, cream text. */
.poster-body { --olive: #3D4F38; --gold: #C9A96E; --cream: #F5F0E8; --espresso: #0f0d0b; }
.poster-help { max-width: 140mm; margin: 16px auto; padding: 0 var(--gutter); color: var(--muted); font-size: 0.9375rem; }
.poster {
  box-sizing: border-box;
  width: 140mm;
  height: 135mm;
  align-content: center;
  margin: 0 auto 40px;
  padding: 8mm 9mm;
  background: var(--olive) url("/kantha-olive.svg");
  color: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  /* QR code with the steps beside it; the offers side by side below. */
  display: grid;
  grid-template-columns: 40mm 1fr;
  column-gap: 6mm;
  align-items: start;
}
.poster > * { grid-column: 1 / -1; }
.poster-name { justify-self: start; font-weight: 700; font-size: 1rem; color: var(--cream); }
.poster-name .brand-x { opacity: 0.7; }
.poster h1 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
  margin: 3mm 0 4mm;
}
.poster > .poster-qr { grid-column: 1; background: var(--white); border-radius: 10px; padding: 3mm; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster > .poster-steps { grid-column: 2; align-self: center; list-style: decimal; padding-left: 1.2em; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.poster-steps li { margin-bottom: 3px; }

.poster-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 3mm; margin-top: 4mm; }
.poster-birthday { padding: 2.5mm 3mm; border-radius: 10px; background: var(--cream); color: var(--espresso); font-size: 0.8125rem; line-height: 1.35; }
.poster-birthday-title { font-weight: 700; margin-bottom: 1px; color: var(--olive); }
.poster-birthday [lang="en"] { margin-top: 2px; opacity: 0.85; }
.poster-en { margin-top: 3mm; font-size: 0.8125rem; line-height: 1.35; color: #e4dccd; }

/* On a phone the preview stacks instead of shrinking. */
@media screen and (max-width: 620px) {
  .poster { width: auto; height: auto; margin: 0 var(--gutter) 40px; display: block; }
  .poster > .poster-qr { width: 60%; margin-bottom: 4mm; }
  .poster-offers { grid-template-columns: 1fr; }
}

@media print {
  @page { size: 140mm 135mm; margin: 0; }
  body.poster-body { background: var(--olive); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .poster-help { display: none; }
  .poster { margin: 0; border-radius: 0; }
}
