/* ==========================================================================
   Hearth & Tallow — storefront

   Design note. The reference is the Victorian pharmacopoeia label: bottle
   green and oxblood printed on beeswax paper, with gilt used sparingly the
   way a real gold-blocked tin used it. The one bold move is the product
   card, which is drawn as an apothecary tin rather than a rectangle with a
   shadow. Everything else stays quiet so that one thing carries the page.

   Colour custom properties are set in :root by the server from the owner's
   settings, so the palette is editable without touching this file. The
   fallbacks below are the defaults.
   ========================================================================== */

:root {
  --ink:      #241a12;
  --paper:    #efe6ce;
  --bottle:   #1f3b2c;
  --oxblood:  #6b2028;
  --gilt:     #a98b3c;
  --display:  "Hoefler Text", Baskerville, Georgia, serif;

  /* Derived tones. Kept few on purpose. */
  --paper-deep: color-mix(in srgb, var(--paper) 88%, var(--ink));
  --paper-lift: color-mix(in srgb, var(--paper) 96%, #fff);
  --ink-soft:   color-mix(in srgb, var(--ink) 68%, var(--paper));
  --rule:       color-mix(in srgb, var(--ink) 24%, var(--paper));

  --measure: 34rem;   /* comfortable serif line length */
  --wrap:    72rem;
  --step:    clamp(1rem, 0.6rem + 1.2vw, 1.6rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  /* Serif body text wants more leading than a sans would. */
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* A faint laid-paper tint. Two very soft gradients, no image request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 0%,
      color-mix(in srgb, var(--gilt) 7%, transparent), transparent 60%),
    radial-gradient(ellipse at 90% 100%,
      color-mix(in srgb, var(--bottle) 6%, transparent), transparent 55%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--oxblood); text-underline-offset: 0.18em; }
a:hover { color: var(--bottle); }

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

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
  background: var(--bottle); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, calc(var(--measure) + 8rem)); }
.center { text-align: center; }
.right  { text-align: right; }
.muted  { color: var(--ink-soft); }
.small  { font-size: 0.875rem; }

/* --------------------------------------------------------------- masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}

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

.wordmark { text-decoration: none; color: inherit; display: block; }
.wordmark-name {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  letter-spacing: 0.06em;
  font-variant: small-caps;
  line-height: 1.1;
}
.wordmark-sub {
  display: block;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--ink-soft);
}

.nav ul {
  display: flex; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
  align-items: center; flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gilt); }

.pip {
  display: inline-block;
  min-width: 1.35em;
  padding: 0.05em 0.3em;
  background: var(--oxblood);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.75rem;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--rule);
  border-radius: 2px; padding: 0.55rem 0.7rem; cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 1.15rem; height: 1px; background: var(--ink);
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; }
.menu-bars::before { top: -6px; }
.menu-bars::after  { top: 6px; }

.tier-banner {
  margin: 0;
  text-align: center;
  background: var(--bottle);
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-variant: small-caps;
  padding: 0.3rem;
}

@media (max-width: 46rem) {
  .menu-toggle { display: block; }
  .nav { flex-basis: 100%; display: none; }
  .nav[data-open] { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .nav a { display: block; padding: 0.5rem 0; width: 100%; }
}

/* ------------------------------------------------------------- structure */

.page { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem); }

.page-title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 0.03em;
}

.lede {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
}

/* The ornament. A gilt lozenge between two tapering rules, drawn entirely in
   CSS — it stands in for a printer's fleuron and is the only decorative motif
   that repeats. */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.3rem auto 2rem;
  max-width: 16rem;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule));
}
.ornament::after {
  background: linear-gradient(to left, transparent, var(--rule));
}
/* the lozenge: a square rotated 45 degrees, sized to sit on the rule */
.ornament {
  --lozenge: 0.5rem;
  position: relative;
}
.ornament > span,
.ornament-mark {
  width: var(--lozenge);
  height: var(--lozenge);
  background: var(--gilt);
  transform: rotate(45deg);
  flex: none;
}
/* When no inner element is present, draw the lozenge with a background so the
   markup can stay a bare <div class="ornament">. */
.ornament:not(:has(*)) {
  background: center / var(--lozenge) var(--lozenge) no-repeat
    linear-gradient(var(--gilt), var(--gilt));
  -webkit-mask: none;
}
.ornament:not(:has(*))::before { margin-right: 0.5rem; }
.ornament:not(:has(*))::after  { margin-left: 0.5rem; }

.ornament-lg { max-width: 24rem; }

.flash {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--bottle);
  background: var(--paper-lift);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
}
.flash-warn { border-left-color: var(--oxblood); }
.flash ul { margin: 0.4rem 0 0 1.1rem; padding: 0; }

.empty {
  text-align: center; font-style: italic;
  color: var(--ink-soft); padding-block: 2rem;
}

/* ---------------------------------------------------------------- blocks */

.blk { margin-block: var(--step); }
.blk-heading {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.15;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  margin-block: 1.6rem 0.2rem;
}
.al-center { text-align: center; }
.al-center.blk-text > * { margin-inline: auto; }

.blk-text > * { max-width: var(--measure); }
.al-left.blk-text > * { margin-inline: 0; }
.w-narrow > * { max-width: 28rem; }
.w-wide   > * { max-width: none; }
.w-narrow, .w-normal { margin-inline: auto; }

.blk-image figcaption,
.blk-image + figcaption {
  font-size: 0.8125rem; font-style: italic;
  color: var(--ink-soft); text-align: center; padding-top: 0.5rem;
}
.blk-image { margin-inline: auto; }
.blk-image img { margin-inline: auto; }

.blk-space { height: 3rem; }
.blk-rule { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5rem; }

.blk-notice {
  border: 1px solid var(--gilt);
  border-inline-width: 3px;
  background: color-mix(in srgb, var(--gilt) 8%, transparent);
  padding: 1rem 1.4rem;
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}
.blk-notice p:first-child { margin-top: 0; }
.blk-notice p:last-child { margin-bottom: 0; }

.blk-testimonial {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gilt);
  font-style: italic;
  font-size: 1.15em;
}
.blk-testimonial cite {
  display: block; font-style: normal; font-size: 0.8125rem;
  letter-spacing: 0.06em; font-variant: small-caps; color: var(--ink-soft);
  margin-top: 0.6rem;
}

.blk-cta { text-align: center; }
.blk-cta.al-left { text-align: left; }

.blk-columns {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .blk-columns.ratio-1-1 { grid-template-columns: 1fr 1fr; }
  .blk-columns.ratio-2-1 { grid-template-columns: 2fr 1fr; }
  .blk-columns.ratio-1-2 { grid-template-columns: 1fr 2fr; }
}

.blk-gallery { display: grid; gap: 1rem; }
.blk-grid    { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }

.blk-gallery, .blk-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
@media (min-width: 60rem) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.blk-feature {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}
@media (min-width: 50rem) {
  .blk-feature { grid-template-columns: 1fr 1fr; }
  .blk-feature.side-right .feature-figure { order: 2; }
}
.feature-body h2 { font-variant: small-caps; letter-spacing: 0.03em; margin-top: 0; }
.feature-body .tagline { font-style: italic; color: var(--ink-soft); margin-top: -0.5rem; }
.feature-body .price { font-size: 1.2rem; color: var(--oxblood); }

.blk-posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.post-card h3 { margin: 0 0 0.3rem; font-variant: small-caps; letter-spacing: 0.03em; }
.post-card a { text-decoration: none; }
.post-card a:hover { text-decoration: underline; }

/* Where to buy: the map and the list of shops beneath it. */
/* Its own stacking context, so Leaflet's layers (z-index 400 and up) stay
   beneath the sticky header and the comment box. */
.stockist-map { position: relative; height: 26rem; margin: 1rem 0 0.3rem; border-radius: 6px; border: 1px solid var(--rule, #ccc); z-index: 0; }
@media (max-width: 40rem) { .stockist-map { height: 20rem; } }
.map-credit { margin: 0 0 1rem; text-align: right; }
.stockist-list { list-style: none; padding: 0; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.stockist-list li { line-height: 1.45; }
.stockist-links a { white-space: nowrap; }
.stockist-pop { font-size: 0.95rem; line-height: 1.4; }
.stockist-pop .stockist-links { margin-top: 0.3rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ the tin
   The one place the design spends its boldness. Each product is drawn as a
   round-shouldered apothecary tin: a lid face holding the photograph, and a
   printed label beneath it inside a double keyline. Hover lifts the lid a
   millimetre, which is motion answering an action rather than decoration. */

.tin { --lid: 0.9rem; }

.tin-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ink);
  border-radius: var(--lid);
  background: var(--paper-lift);
  padding: 0.55rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.tin-face {
  display: block;
  border-radius: calc(var(--lid) - 0.3rem);
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 1 / 1;
}
.tin-face img { width: 100%; height: 100%; object-fit: cover; }

/* the printed label: double keyline, the way a gold-blocked tin is struck */
.tin-label {
  display: block;
  margin-top: 0.55rem;
  padding: 0.85rem 0.7rem;
  text-align: center;
  border: 1px solid var(--gilt);
  outline: 1px solid var(--gilt);
  outline-offset: 3px;
  border-radius: calc(var(--lid) - 0.4rem);
}

.tin-name {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.07em;
  font-size: 1.0625rem;
  line-height: 1.25;
}
.tin-tagline {
  display: block;
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.tin-price {
  display: block;
  margin-top: 0.5rem;
  color: var(--oxblood);
  font-size: 0.9375rem;
}

.tin-link:hover, .tin-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--rule);
}

@media (prefers-reduced-motion: reduce) {
  .tin-link { transition: none; }
  .tin-link:hover { transform: none; }
}

/* --------------------------------------------------------------- product */

.product { display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 52rem) {
  .product { grid-template-columns: 1fr 1fr; align-items: start; }
  .product-figure { position: sticky; top: 6rem; }
}

.product-hero {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0.9rem;
  background: var(--paper-deep);
}
.thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem; margin-top: 0.6rem;
}
.thumbs img { border: 1px solid var(--rule); border-radius: 0.3rem; aspect-ratio: 1; object-fit: cover; }

.product-detail h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem);
  font-variant: small-caps; letter-spacing: 0.03em;
  margin: 0 0 0.2rem; line-height: 1.1;
}
.product-detail .tagline { font-style: italic; color: var(--ink-soft); margin: 0; }
.product-detail .ornament { margin-inline: 0; max-width: 12rem; }

.prose { max-width: var(--measure); }
.prose p { margin-block: 0 1em; }
.prose h3, .prose h4 { font-variant: small-caps; letter-spacing: 0.03em; margin-block: 1.6em 0.4em; }
.prose-long { font-size: 1.05em; }
.prose-long p + p { text-indent: 1.4em; }

.ingredients {
  font-size: 0.9375rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 0.7rem;
  color: var(--ink-soft);
}
.ingredients-head {
  font-variant: small-caps; letter-spacing: 0.08em;
  color: var(--ink); margin-right: 0.4rem;
}

.buy { margin-top: 1.6rem; }
.variants { border: 0; padding: 0; margin: 0 0 1rem; }
.variants legend {
  font-variant: small-caps; letter-spacing: 0.07em;
  font-size: 0.875rem; padding: 0; margin-bottom: 0.5rem;
}
.variant {
  display: flex; align-items: baseline; gap: 0.6rem;
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.65rem 0.8rem; margin-bottom: 0.4rem;
  cursor: pointer;
}
.variant:has(input:checked) { border-color: var(--bottle); background: var(--paper-lift); }
.variant-out { opacity: 0.5; cursor: default; }
.variant-label { flex: 1; }
.variant-price { color: var(--oxblood); }
.variant-note { font-size: 0.75rem; font-style: italic; color: var(--ink-soft); }

.single-price { font-size: 1.35rem; color: var(--oxblood); margin: 0 0 1rem; }

.buy-row { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.qty input, .qty-input {
  width: 4.5rem; padding: 0.55rem;
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--paper-lift); color: inherit; font: inherit;
}
.wholesale-note { font-size: 0.8125rem; color: var(--ink-soft); font-style: italic; }
.soldout {
  border: 1px dashed var(--oxblood); padding: 1rem;
  text-align: center; font-style: italic;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9375rem;
  font-variant: small-caps;
  letter-spacing: 0.09em;
  text-decoration: none;
  cursor: pointer;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--bottle);
  border-radius: 2px;
  background: var(--bottle);
  color: var(--paper);
  transition: background 120ms ease;
}
.btn:hover { background: color-mix(in srgb, var(--bottle) 82%, #000); color: var(--paper); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.0625rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-quiet { background: transparent; color: var(--bottle); }
.btn-quiet:hover { background: color-mix(in srgb, var(--bottle) 10%, transparent); color: var(--bottle); }

/* ----------------------------------------------------------- ledger/forms */

.ledger { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.ledger th, .ledger td {
  padding: 0.7rem 0.5rem; text-align: left;
  border-bottom: 1px solid var(--rule);
}
.ledger thead th {
  font-variant: small-caps; letter-spacing: 0.07em;
  font-size: 0.8125rem; font-weight: normal; color: var(--ink-soft);
}
.ledger tfoot th, .ledger tfoot td {
  border-bottom: 0; border-top: 2px solid var(--ink); font-size: 1.05em;
}

.checkout-form { display: grid; gap: 1.1rem; max-width: var(--measure); margin-inline: auto; }
.checkout-form fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1.2rem 0 0; margin: 0; }
.checkout-form legend {
  font-variant: small-caps; letter-spacing: 0.08em;
  font-size: 0.875rem; padding-right: 0.7rem;
}
.checkout-form label { display: block; margin-bottom: 0.9rem; font-size: 0.9375rem; }
.checkout-form input, .checkout-form textarea, .checkout-form select {
  display: block; width: 100%; margin-top: 0.25rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--paper-lift); color: inherit;
  font: inherit; font-size: 1rem;
}
.checkout-form .hint { display: block; font-size: 0.8125rem; color: var(--ink-soft); font-style: italic; }
.field-row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }

.rates { display: grid; gap: 0.4rem; }
.rate-option {
  display: flex; align-items: baseline; gap: 0.7rem;
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.65rem 0.8rem; cursor: pointer;
}
.rate-option:has(input:checked) { border-color: var(--bottle); background: var(--paper-lift); }
.rate-name { flex: 1; }
.rate-days { font-size: 0.8125rem; color: var(--ink-soft); font-style: italic; }
.rate-price { color: var(--oxblood); }

/* --------------------------------------------------------------- journal */

.journal-list { display: grid; gap: 2.5rem; }
.journal-item h2 { font-variant: small-caps; letter-spacing: 0.03em; margin: 0 0 0.2rem; }
.journal-item a { text-decoration: none; }
.journal-item a:hover { text-decoration: underline; }
.dateline {
  font-size: 0.8125rem; font-variant: small-caps;
  letter-spacing: 0.09em; color: var(--ink-soft); margin: 0 0 0.5rem;
}
.post-hero { margin-block: 1.5rem; border: 1px solid var(--rule); }

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding-block: 2.5rem 3.5rem;
  text-align: center;
}
.footer-note { font-style: italic; color: var(--ink-soft); margin: 0 0 0.6rem; }
.footer-meta {
  font-size: 0.8125rem; color: var(--ink-soft);
  font-variant: small-caps; letter-spacing: 0.08em; margin: 0.2rem 0;
}

@media print {
  .masthead, .footer, .btn { display: none; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------- invoices */

.invoice-head {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 1rem; margin-block: 1.5rem;
}
.invoice-label {
  font-size: 0.75rem; font-variant: small-caps; letter-spacing: 0.09em;
  color: var(--ink-soft); margin: 0;
}
.invoice-value { margin: 0.15rem 0 0; }
.invoice-to { margin-bottom: 1.5rem; }
@media print {
  .no-print, .flash { display: none; }
}

/* Accounts elsewhere: a quiet row of links above the copyright line. */
.footer-social { margin: 0.4rem 0 0.2rem; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.footer-social a { font-variant: small-caps; letter-spacing: 0.06em; text-decoration: none; border-bottom: 1px solid currentColor; }

/* The honeypot field: off-screen for people, present for scripts. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Offer code on the basket page. */
.code-row { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1.2rem; }
.code-row label { flex: 1 1 12rem; }

/* Video block: the player fills its column; the figure keeps the caption style. */
.blk-video { margin-inline: auto; }
.blk-video video { display: block; width: 100%; height: auto; background: #000; border-radius: 2px; }
.mediaitem video { width: 100%; max-height: 12rem; background: #000; }

/* Newsletter sign-up block and the checkout tick box. */
.blk-subscribe { max-width: var(--measure); margin-inline: auto; text-align: center; padding: 1.5rem; border: 1px solid var(--gilt); }
.blk-subscribe h2 { margin-top: 0; }
.subscribe-row { display: flex; gap: 0.6rem; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.subscribe-row label { flex: 1 1 14rem; text-align: left; }
.checkout-form .check { display: flex; align-items: center; gap: 0.5rem; }
.checkout-form .check input { width: auto; margin: 0; }

/* ------------------------------------------------------------ comment box --
   On every page while the owner has comments switched on. A <details>
   element, so it opens and closes with no script at all. Shared verbatim
   with admin.css, because the box appears on both sides of the shop. */
.fb { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: min(24rem, calc(100vw - 2rem));
  font: 15px/1.45 system-ui, sans-serif; color: #1d1d1d; }
.fb-tab { list-style: none; cursor: pointer; display: inline-block; float: right; padding: 0.55rem 0.95rem;
  background: #1d1d1d; color: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgb(0 0 0 / 25%); font-weight: 600; }
.fb-tab::-webkit-details-marker { display: none; }
.fb-tab:focus-visible { outline: 3px solid #f2b600; outline-offset: 2px; }
.fb[open] .fb-tab { margin-bottom: 0.5rem; }
.fb-form { clear: both; background: #fff; border: 1px solid #bbb; border-radius: 10px; padding: 0.9rem 1rem;
  box-shadow: 0 6px 24px rgb(0 0 0 / 22%); display: grid; gap: 0.45rem; }
.fb-head { margin: 0; font-weight: 700; }
.fb-note, .fb-version { margin: 0; font-size: 0.82rem; color: #555; }
.fb-label { font-size: 0.85rem; font-weight: 600; }
.fb-form textarea, .fb-form input[type=email] { width: 100%; box-sizing: border-box; font: inherit;
  padding: 0.45rem; border: 1px solid #999; border-radius: 6px; background: #fff; color: #1d1d1d; }
.fb-check { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.88rem; }
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-actions { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; }
.fb-send { font: inherit; font-weight: 600; padding: 0.45rem 1rem; border: 0; border-radius: 6px; background: #1d1d1d; color: #fff; cursor: pointer; }
.fb-ideas { font-size: 0.88rem; color: #1d1d1d; }
@media print { .fb { display: none; } }

/* The ideas page. */
.ideas { list-style: none; padding: 0; display: grid; gap: 1rem; }
.idea { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); padding-top: 1rem; }
.idea h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.idea-votes { white-space: nowrap; text-align: right; }
