/* ==========================================================================
   Hope Beans — stylesheet
   Hand-written, no build step, no CDN. Fonts self-hosted so the site loads
   normally on mainland networks.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f8f5f0;
  --cream-2: #f1ece3;
  --cream-3: #e7dfd2;
  --white: #ffffff;
  --ink: #1f2421;
  --ink-2: #414842;
  --ink-3: #6b716b;
  --sage: #4e7a3e;
  --sage-dark: #3a5c2d;
  --sage-mid: #6b8e55;
  --sage-light: #e8efe1;
  --espresso: #2c1e16;
  --espresso-2: #1a120c;
  --clay: #c4763f;
  --amber: #b8892f;
  --line: rgba(44, 30, 22, 0.14);
  --line-soft: rgba(44, 30, 22, 0.08);
  --shadow-sm: 0 1px 2px rgba(44, 30, 22, 0.06);
  --shadow: 0 10px 30px -18px rgba(44, 30, 22, 0.45);
  --shadow-lg: 0 30px 60px -30px rgba(44, 30, 22, 0.5);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Let the <img> size itself inside its container instead of the inline wrapper. */
picture {
  display: contents;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: -0.014em;
}

h4 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--sage-dark);
  text-decoration-color: rgba(78, 122, 62, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sage);
  text-decoration-color: currentColor;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.8125rem;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

::selection {
  background: var(--sage);
  color: var(--white);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--espresso);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip:focus {
  left: 0;
  color: var(--white);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.brand__name {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand__name span {
  color: var(--sage);
  margin-left: 0.4rem;
  font-size: 0.9em;
}

.brand__tag {
  display: block;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav__link:hover {
  background: var(--cream-3);
  color: var(--ink);
}

.nav__link[aria-current="page"] {
  background: var(--sage);
  color: var(--white);
}

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav__cta:hover {
  background: var(--espresso-2);
  color: var(--white);
}

.nav__cta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ed321;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 560px) {
  .brand__tag {
    display: none;
  }

  .brand img {
    width: 2.1rem;
    height: 2.1rem;
  }

  .brand__name {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex: none;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    padding: 0.5rem 0 0.9rem;
    border-top: 1px solid var(--line-soft);
    margin-top: 0.4rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 0.7rem 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
  }

  .nav__cta {
    margin: 0.35rem 0 0;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* ---------- typography helpers ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.7rem;
}

.eyebrow--light {
  color: #b6d3a2;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--ink-3);
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.section {
  padding-block: clamp(2.6rem, 5vw, 4.4rem);
}

.section--tight {
  padding-block: clamp(1.8rem, 3vw, 2.6rem);
}

.section--white {
  background: var(--white);
  border-block: 1px solid var(--line-soft);
}

.section--espresso {
  background: var(--espresso);
  color: var(--cream);
}

.section--espresso h2,
.section--espresso h3 {
  color: var(--white);
}

.section--sage {
  background: var(--sage);
  color: var(--white);
}

.section--sage h2 {
  color: var(--white);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 56ch;
  margin-bottom: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--sage);
  color: var(--white);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  background: var(--sage-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--dark {
  background: var(--espresso);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--espresso-2);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--white);
  border-color: var(--sage);
  color: var(--sage-dark);
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 4rem);
}

.hero__copy {
  max-width: 34rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 3.9vw, 3.25rem);
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--sage);
}

.hero p {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  max-width: 31rem;
}

.hero .btn-row {
  margin-top: 1.6rem;
}

.hero__note {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.hero__note span::before {
  content: "✓";
  color: var(--sage);
  margin-right: 0.35rem;
  font-weight: 800;
}

.hero__figure {
  margin: 0;
}

.hero__frame {
  position: relative;
}

.hero__figure img {
  width: 100%;
  height: clamp(19rem, 36vw, 30rem);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.hero__badge {
  position: absolute;
  right: -1.1rem;
  bottom: 1.3rem;
  background: var(--espresso);
  color: var(--cream);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  max-width: 13rem;
}

.hero__badge strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.hero__badge span {
  display: block;
  font-size: 0.72rem;
  color: rgba(248, 245, 240, 0.75);
  margin-top: 0.25rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: 2rem 2.4rem;
  }

  .hero__figure img {
    height: 16rem;
  }

  .hero__badge {
    left: auto;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.7rem 0.9rem;
    max-width: 11rem;
  }

  .hero__badge strong {
    font-size: 1.2rem;
  }
}

/* Dark variant, used where a page opens on a photo-free band */
.hero--dark {
  background: radial-gradient(120% 120% at 15% 0%, #3f5a2f 0%, #2c1e16 55%, #1a120c 100%);
  border-bottom: 0;
  color: var(--cream);
}

.hero--dark h1,
.hero--dark .hero__copy p {
  color: var(--cream);
}

.hero--dark .hero__copy p {
  color: rgba(248, 245, 240, 0.82);
}

.hero--dark h1 em {
  color: #b7d6a1;
}

.hero--dark .hero__inner {
  grid-template-columns: 1fr;
}

.hero--dark .hero__copy {
  max-width: 46rem;
  padding-block: clamp(1rem, 3vw, 2rem);
}

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.stats__item {
  padding: 1.6rem 1.2rem;
  border-right: 1px solid var(--line-soft);
}

.stats__item:last-child {
  border-right: 0;
}

.stats__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stats__value {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.3rem;
  line-height: 1.05;
}

.stats__note {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 0.35rem;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2n) {
    border-right: 0;
  }

  .stats__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
}

/* ---------- photo grid ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
  cursor: zoom-in;
  color: var(--white);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.035);
}

.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 0.9rem 0.8rem;
  background: linear-gradient(to top, rgba(14, 9, 6, 0.94) 0%, rgba(14, 9, 6, 0.7) 45%, transparent 100%);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.shot--full {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot--full {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- image tiles ---------- */

.tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.tile--wide {
  aspect-ratio: 16 / 10;
}

/* ---------- cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* step cards */

.step {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.step__num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.step h3 {
  margin: 0.55rem 0 0.5rem;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ---------- mirror: the ledger ---------- */

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ledger th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ledger td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.ledger tbody tr:hover {
  background: var(--cream);
}

.ledger .amount {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ledger .in {
  color: var(--sage-dark);
}

.ledger .out {
  color: var(--ink);
}

.ledger tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--sage);
  font-weight: 800;
  padding-block: 1rem;
  background: var(--sage-light);
}

.ledger .date {
  white-space: nowrap;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
}

.filters {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--cream-2);
  border-radius: 999px;
}

.filters button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

/* ---------- impact numbers ---------- */

.impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.impact__card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.impact__card--sage {
  background: var(--sage-light);
  border-color: rgba(78, 122, 62, 0.3);
}

.impact__card--dark {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

.impact__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.impact__card--dark .impact__label {
  color: #d8b98a;
}

.impact__value {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.4rem;
  line-height: 1.05;
}

.impact__card--dark .impact__value {
  color: var(--white);
}

.impact__note {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.6rem;
}

.impact__card--dark .impact__note {
  color: rgba(248, 245, 240, 0.72);
}

@media (max-width: 820px) {
  .impact {
    grid-template-columns: 1fr;
  }
}

.beneficiary {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--white);
}

.beneficiary + .beneficiary {
  margin-top: 0.75rem;
}

.beneficiary__amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tag--clay {
  background: #f6e3d5;
  color: #8a4a20;
}

.tag--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- chalkboard menu ---------- */

.menu-board {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2rem);
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 15% 0%, #333a35 0%, #1d211f 60%, #171a18 100%);
  border: 9px solid #c69c6d;
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.35);
}

.menu-board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(248, 245, 240, 0.18);
}

.menu-board__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #b7d6a1;
  letter-spacing: 0.01em;
}

.menu-board__sub {
  font-size: 0.72rem;
  color: rgba(248, 245, 240, 0.55);
  letter-spacing: 0.04em;
}

.menu-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(248, 245, 240, 0.16);
  margin: 0;
}

.menu-list li:last-child {
  border-bottom: 0;
}

.menu-list__name {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.menu-list__cn {
  color: rgba(248, 245, 240, 0.62);
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.35rem;
}

.menu-list__desc {
  flex: 1 1 auto;
  min-width: 2rem;
  font-size: 0.76rem;
  color: rgba(248, 245, 240, 0.55);
  line-height: 1.4;
}

.menu-list li {
  align-items: baseline;
}

.menu-list__price {
  font-weight: 800;
  font-size: 1.1rem;
  color: #f2b3a4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-board__foot {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(248, 245, 240, 0.08);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(248, 245, 240, 0.8);
}

@media (max-width: 520px) {
  .menu-list__desc {
    display: none;
  }

  .menu-list__name {
    font-size: 0.95rem;
  }
}

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

.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  border-color: rgba(78, 122, 62, 0.4);
  box-shadow: var(--shadow);
}

.product__media {
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  overflow: hidden;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}

.product__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.product__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.product__cn {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-top: 0.15rem;
}

.product__price {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.product__desc {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0;
}

.product__charity {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.product__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- order builder ---------- */

.order {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

@media (max-width: 900px) {
  .order {
    grid-template-columns: 1fr;
  }
}

.line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.line-item:last-child {
  border-bottom: 0;
}

.line-item__name {
  font-size: 0.92rem;
  font-weight: 600;
}

.line-item__price {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.stepper button {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.stepper button:hover {
  background: var(--sage-light);
}

.stepper output {
  min-width: 2.2rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
}

.total-row--grand {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.total-row--charity {
  color: var(--sage-dark);
  font-weight: 700;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field > label,
.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(78, 122, 62, 0.14);
}

.field .hint {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  background: var(--sage-light);
  border-color: rgba(78, 122, 62, 0.35);
  color: var(--sage-dark);
}

.form-status.is-error {
  background: #fbeae4;
  border-color: rgba(180, 64, 32, 0.3);
  color: #8f3418;
}

/* ---------- pricing table ---------- */

.tiers {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.tiers__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.tiers__row:last-child {
  border-bottom: 0;
}

.tiers__head {
  background: var(--cream-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tiers__price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .tiers__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .tiers__head {
    display: none;
  }
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.tier-card--feature {
  border-color: var(--sage);
  box-shadow: var(--shadow);
}

.tier-card__price {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier-card__unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.tier-card li {
  padding-left: 1.15rem;
  position: relative;
  margin-top: 0.4rem;
}

.tier-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
}

/* ---------- QR card ---------- */

.qr-card {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  background: var(--cream);
  border: 2px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-card img {
  width: 11rem;
  height: 11rem;
  margin: 0.9rem auto;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 10px;
}

.qr-card__url {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- portal ---------- */

.portal-bar {
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2.6vw, 1.9rem);
}

.portal-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
}

.portal-bar .field-label {
  color: #e0bd92;
}

.portal-bar input,
.portal-bar select {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.portal-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  flex: 1 1 22rem;
  max-width: 40rem;
}

@media (max-width: 700px) {
  .portal-controls {
    grid-template-columns: 1fr;
  }
}

.segmented {
  display: inline-flex;
  padding: 0.22rem;
  gap: 0.2rem;
  background: var(--cream-2);
  border-radius: 999px;
}

.segmented button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}

.segmented button[aria-pressed="true"] {
  background: var(--sage);
  color: var(--white);
}

.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}

.pos-btn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease;
}

.pos-btn:hover {
  background: var(--sage-light);
  border-color: var(--sage);
}

.pos-btn:active {
  transform: scale(0.975);
}

.pos-btn__name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.pos-btn__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-3);
  font-weight: 600;
}

.pos-btn__price {
  color: var(--sage-dark);
  font-weight: 800;
}

.feed {
  max-height: 24rem;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.84rem;
  margin: 0;
}

.feed li:last-child {
  border-bottom: 0;
}

.feed__meta {
  color: var(--ink-3);
  font-size: 0.76rem;
}

.feed__amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feed__void {
  display: block;
  margin: 0.3rem 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-3);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.45rem;
}

.feed__void:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.stock-table td input {
  width: 5rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.empty {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
  background: var(--cream);
  border-radius: var(--radius);
}

.login-card {
  max-width: 26rem;
  margin: 0 auto;
}

.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  background: var(--sage-light);
  border: 1px solid rgba(78, 122, 62, 0.3);
  color: var(--sage-dark);
}

.notice--warn {
  background: #fdf3e3;
  border-color: #e5c98f;
  color: #7a5518;
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--sage);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- dialog / lightbox ---------- */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 62rem);
  width: 100%;
  color: inherit;
}

dialog::backdrop {
  background: rgba(16, 11, 7, 0.82);
  backdrop-filter: blur(3px);
}

.lightbox__frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__img {
  background: #120c08;
}

.lightbox__img img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  margin-inline: auto;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}

.lightbox__cap {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0.2rem 0 0;
}

.lightbox__close {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  width: 2.3rem;
  height: 2.3rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
  flex: none;
}

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

.footer {
  background: var(--espresso-2);
  color: rgba(248, 245, 240, 0.72);
  font-size: 0.85rem;
  padding-block: 3rem 2rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer a {
  color: rgba(248, 245, 240, 0.78);
  text-decoration: none;
}

.footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

.footer li + li {
  margin-top: 0.45rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.footer__brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.footer__brand strong {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(248, 245, 240, 0.12);
  font-size: 0.75rem;
  color: rgba(248, 245, 240, 0.5);
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  transform: translate(-50%, 0.75rem);
  opacity: 0;
  pointer-events: none;
  max-width: min(92vw, 30rem);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="error"] {
  background: #8f3418;
}

/* ---------- utilities ---------- */

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

.hidden {
  display: none !important;
}

.stack > * + * {
  margin-top: var(--stack, 1rem);
}

.mt-2 {
  margin-top: 2rem;
}

.center {
  text-align: center;
}

.measure {
  max-width: 62ch;
}

.divider {
  height: 1px;
  background: var(--line-soft);
  margin-block: 2rem;
}

.imprint {
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ---------- print: table tent ---------- */

@media print {
  body * {
    visibility: hidden;
  }

  .qr-card,
  .qr-card * {
    visibility: visible;
  }

  .qr-card {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 16rem;
    height: fit-content;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- transfer form ---------- */

.transfer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.7fr auto;
  gap: 0.6rem;
  align-items: end;
}

@media (max-width: 760px) {
  .transfer {
    grid-template-columns: 1fr 1fr;
  }

  .transfer .btn {
    grid-column: 1 / -1;
  }
}

/* ---------- portal details ---------- */

details > summary.portal-summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

details > summary.portal-summary::-webkit-details-marker {
  display: none;
}

details > summary.portal-summary::after {
  content: "+";
  color: var(--sage);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
}

details[open] > summary.portal-summary::after {
  content: "\2212";
}
