/* Alma do Vinho look: the festival site's sage green and Barlow type
   (almadovinho.pt), with burgundy wine for actions. */
:root {
  --bg: #d5e5d1;
  --surface: #f5f9f3;
  --surface-2: #e8f0e5;
  --line: #b3c8ad;
  --text: #1a1c19;
  --text-2: #354033;
  --text-3: #4d5a4a;
  --wine: #8e2c48;
  --wine-dk: #71223a;
  --on-wine: #ffffff;
  --link: #8e2c48;
  --live: #137a3f;
  --live-bg: #d9efe0;
  --warn: #8a4f00;
  --warn-bg: #fbeccd;
  --danger: #b3261e;
  --danger-bg: #fbe1de;
  --radius: 14px;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

body {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

a { color: var(--link); font-weight: 600; }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

button:disabled { cursor: not-allowed; opacity: 0.5; }

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

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 16px;
}

.brand h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.2px; }
.brand .sub { margin: 2px 0 0; color: var(--text-2); font-size: 15px; font-weight: 600; }

.logo { display: block; height: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(26, 28, 25, 0.07);
  color: var(--text-3);
  white-space: nowrap;
}

.pill.live { background: var(--live); color: #fff; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.live .dot { animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.btn.primary { background: var(--wine); border-color: var(--wine-dk); color: var(--on-wine); }
.btn.danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }

.muted { color: var(--text-3); }
.note { color: var(--text-2); font-size: 14px; }

.banner {
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(138, 79, 0, 0.3); }
.banner.danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(179, 38, 30, 0.3); }
.banner.ok { background: var(--live-bg); color: var(--live); border-color: rgba(19, 122, 63, 0.3); }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pill.live .dot { animation: none; }
}
