/* Pizza Pilgrims Impact Hub: shared brand tokens and components.
   Use only these colour variables. See IMS Architecture Notes, section 8. */

:root {
  --pp-green: #026340;      /* dominant: headings, header bar, primary buttons */
  --pp-accent: #00F000;     /* highlights, status markers, focus rings. Never text on light backgrounds */
  --pp-bg: #FFF2CC;         /* page background */
  --pp-bg-light: #FFF9E7;   /* lighter alternative */
  --pp-text: #1B1B1B;       /* body text */
  --pp-muted: #5A5A50;
  --pp-card: #FFFFFF;
  --pp-line: #E8DDB8;
  --pp-green-tint: #E6F0EB;

  --font-head: "PizzaPilgrims", "ChelseaRR", Aptos, "Segoe UI", sans-serif;
  --font-body: "ChelseaRR", Aptos, "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(2, 99, 64, .06), 0 6px 20px rgba(2, 99, 64, .07);
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--pp-bg);
  color: var(--pp-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--pp-green); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: .01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--pp-green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--pp-accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header bar */
.pp-header { background: var(--pp-green); color: #fff; }
.pp-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.pp-brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.pp-brand .name { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .02em; }
.pp-brand .tag { font-size: .85rem; opacity: .85; border-left: 2px solid var(--pp-accent); padding-left: 10px; }
.pp-user { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.pp-user .who { opacity: .9; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 999px; padding: 10px 20px; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--pp-green); color: #fff; }
.btn-primary:hover { background: #014a30; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); padding: 6px 14px; }
.btn-light:hover { border-color: #fff; }
.btn-accent { background: var(--pp-accent); color: var(--pp-green); }

/* Cards */
.card { background: var(--pp-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--pp-green-tint); color: var(--pp-green); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.live::before { background: var(--pp-accent); box-shadow: 0 0 0 2px var(--pp-green); }
.pill.soon { background: #F3EEDC; color: var(--pp-muted); }

/* Notices */
.notice { border-radius: 10px; padding: 12px 16px; font-size: .95rem; margin: 16px 0; }
.notice.info { background: var(--pp-bg-light); border: 1px solid var(--pp-line); }
.notice.error { background: #FDECEA; border: 1px solid #F3B8B1; color: #7A1E14; }

.muted { color: var(--pp-muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

details summary { cursor: pointer; color: var(--pp-green); font-weight: 600; }

.pp-footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--pp-line); font-size: .88rem; color: var(--pp-muted); }
.pp-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 600px) {
  .pp-brand .tag { display: none; }
  .pp-user .who { display: none; }
  .card { padding: 18px; }
}
