/* Mã Beer — public OAuth information pages. Local, dependency-free CSS. */
:root {
  --burgundy: #8f1a1c;
  --burgundy-dark: #6b1214;
  --cream: #f7ebdd;
  --cream-soft: #fcf6ef;
  --gold: #d8a64e;
  --ink: #2a1a17;
  --muted: #5c4741;
  --line: #e4d3c0;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 72rem;
  --readw: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a { color: var(--burgundy); text-underline-offset: 0.18em; }
a:hover { color: var(--burgundy-dark); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--burgundy);
  font-weight: 600;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header / nav */
.site-header {
  background: var(--burgundy);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 44px;
  align-items: center;
}
.brand:hover { color: var(--white); }
.brand small { font-weight: 400; font-size: 0.85rem; opacity: 0.9; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--cream);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
.site-nav a:hover { background: var(--burgundy-dark); color: var(--white); }
.site-nav a[aria-current="page"] { background: var(--cream); color: var(--burgundy); }
.site-header :focus-visible { outline-color: var(--gold); }

/* Hero */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2.25rem;
}
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); margin: 2.25rem 0 0.75rem; color: var(--burgundy); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: var(--readw); margin: 0 0 1.5rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--burgundy);
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--burgundy); }
.btn-secondary:hover { background: var(--white); }

/* Content */
main { display: block; }
.section { padding: 1rem 0 0.5rem; }
.prose { max-width: var(--readw); }
.prose p, .prose li { margin: 0 0 0.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1rem 0;
}
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.card h3 { margin-top: 0.25rem; color: var(--burgundy); }
.card p { margin: 0; color: var(--muted); }

.notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--burgundy);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  max-width: var(--readw);
}
.notice p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; max-width: 100%; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: var(--radius); }
caption { text-align: left; font-weight: 700; padding: 0 0 0.5rem; }
th, td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
th { background: var(--cream); }

.status {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
td:last-child, th:last-child { width: 38%; }
@media (min-width: 48rem) { td:last-child, th:last-child { width: 30%; } }
.status-live { background: #e6f2e8; color: #1f5a2c; }
.status-prep { background: #fbefd6; color: #6a4708; }
.status-plan { background: #efe7f3; color: #4f2d63; }

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--readw);
}
.toc h2 { margin-top: 0; font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin: 0.35rem 0; }
.toc a { padding: 0.2rem 0; }

.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }

code {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--cream);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: var(--cream);
  padding: 1.75rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0.35rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .skip-link, .actions { display: none; }
  body { background: #fff; }
}
