:root {
  --bean: #2a1810;
  --roast: #3b2418;
  --crema: #f3e6d3;
  --milk: #fbf6ee;
  --clay: #c8693d;
  --clay-soft: #e08a5c;
  --leaf: #4f7a4a;
  --ink: #2a1810;
  --muted: #8a7462;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #4a2e1f 0%, transparent 60%),
    var(--bean);
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--milk);
  min-height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

@media (min-width: 520px) {
  .card { margin: 32px 0; min-height: auto; border-radius: 28px; overflow: hidden; }
}

/* Hero */
.hero { position: relative; height: 380px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42, 24, 16, 0.05) 20%, rgba(42, 24, 16, 0.55) 62%, var(--milk) 100%);
}
.brand { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; padding: 0 24px; }
.logo {
  width: 72px; height: 72px; margin: 0 auto 10px;
  border-radius: 22px; background: var(--roast); color: var(--crema);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(42, 24, 16, 0.35), 0 0 0 4px var(--milk);
}
.logo svg { width: 46px; height: 46px; }
h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 700;
  font-size: 2.1rem; letter-spacing: -0.02em; margin: 0; color: var(--bean);
}
.tagline { margin: 4px 0 10px; color: var(--muted); font-size: 0.95rem; }
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 0.8rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(79, 122, 74, 0.12); color: var(--leaf);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.status.closed { background: rgba(200, 105, 61, 0.12); color: var(--clay); }
.status.closed .dot { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 122, 74, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(79, 122, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 122, 74, 0); } }

/* Socials */
.socials { display: flex; justify-content: center; gap: 12px; padding: 22px 20px 6px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--crema); color: var(--roast);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.socials a:hover, .socials a:focus-visible { background: var(--roast); color: var(--crema); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }

/* Links */
.links { display: grid; gap: 10px; padding: 18px 20px 8px; }
.link {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px;
  border-radius: var(--radius); border: 1px solid #eadcc8;
  background: #fff; color: var(--ink);
  text-decoration: none; font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 2px 0 #eadcc8;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.link:hover, .link:focus-visible { border-color: var(--clay-soft); transform: translateY(-1px); box-shadow: 0 4px 0 #eadcc8; }
.link:active { transform: translateY(1px); box-shadow: 0 1px 0 #eadcc8; }
.link .ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem; background: var(--milk);
}
.link .txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.link strong { font-weight: 700; font-size: 1rem; }
.link small { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link .arrow { color: var(--muted); font-size: 1.1rem; }
.link.primary { background: var(--roast); border-color: var(--roast); color: var(--crema); box-shadow: 0 3px 0 var(--bean); }
.link.primary .ico { background: rgba(243, 230, 211, 0.12); }
.link.primary small, .link.primary .arrow { color: #cdb59b; }

/* Promo */
.promo {
  margin: 14px 20px 0; padding: 18px 20px; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #f6ebdb 0 12px, #f2e3cf 12px 24px);
  border: 1px dashed #d8bfa2;
}
.promo p { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; line-height: 1.4; }
.promo em { color: var(--clay); font-style: italic; }
.promo .eyebrow { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); font-weight: 700; margin-bottom: 4px; }

/* Footer */
footer { text-align: center; padding: 22px 20px 4px; color: var(--muted); font-size: 0.8rem; }
footer p { margin: 12px 0 0; }
.share {
  font: inherit; font-weight: 500; font-size: 0.9rem;
  background: none; border: 1px solid #d8bfa2; color: var(--roast);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.share:hover { background: var(--crema); }

/* Menu dialog */
.menu {
  width: min(440px, calc(100% - 24px)); max-height: 85dvh;
  padding: 0; border: none; border-radius: 24px;
  background: var(--milk); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.menu::backdrop { background: rgba(42, 24, 16, 0.6); backdrop-filter: blur(3px); }
.menu-head {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: var(--roast); color: var(--crema);
}
.menu-head h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; }
.close { background: none; border: none; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.menu-body { padding: 8px 22px 22px; }
.menu h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay); margin: 18px 0 6px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px dotted #d8bfa2; }
.menu li span { flex: 1; }
.menu li i { font-style: normal; font-size: 0.7rem; background: var(--clay); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.menu li b { font-family: 'Fraunces', Georgia, serif; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 0.85rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bean); color: var(--crema); padding: 12px 18px; border-radius: 999px;
  font-size: 0.9rem; transition: all 0.25s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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