/* The app's light surfaces (Surfaces.swift): a warm off-white page, white
   blocks, a 6% hairline. Dark follows the system's grouped colours. The
   accent is the app's fixed ink — black on light, white on dark. */
:root {
  --page: #f9f9f7;
  --block: #ffffff;
  --stroke: rgba(0, 0, 0, 0.06);
  --text: #131313;
  --secondary: #52514e;
  --muted: #7a7974;
  --fill: #f0efeb;
  --ink: #131313;
  --on-ink: #ffffff;
  --live: #cc6200;
  --destructive: #822e2a;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --block: #1c1c1e;
    --stroke: transparent;
    --text: #ffffff;
    --secondary: rgba(235, 235, 245, 0.6);
    --muted: rgba(235, 235, 245, 0.6);
    --fill: #2c2c2e;
    --ink: #ffffff;
    --on-ink: #000000;
    --live: #ffb840;
    --destructive: #dd736e;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

a { color: inherit; }

.brand { margin: 4px 0 16px; }
.brand a {
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 16px;
  background: var(--fill);
  object-fit: cover;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0 4px;
  color: var(--secondary);
  font-size: 15px;
}

.pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.pill-live { background: var(--live); color: #ffffff; }
.pill-canceled { color: var(--destructive); }

h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lead { color: var(--secondary); }

.block {
  background: var(--block);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 4px 16px;
  margin: 0 0 16px;
}

.row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
}
.row:first-child { border-top: 0; }
.label {
  flex: 0 0 64px;
  color: var(--muted);
}
.stack { display: flex; flex-direction: column; min-width: 0; }
.value { overflow-wrap: anywhere; }
.secondary { color: var(--secondary); font-size: 15px; }

.note p { margin: 12px 0; overflow-wrap: anywhere; }

.directions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.button {
  flex: 1 1 140px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--ink); color: var(--on-ink); }

.landing h1 { margin-top: 24px; }
.footer { margin-top: 32px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); }
