/* relli.app — shared stylesheet.
 *
 * Brand tokens mirror client/theme.ts (L21–L25): accent #FFE600, surface
 * #FFFFFF, text/CTA #16150F, muted #5F5E5A. Yellow is a FILL, never a text
 * colour (L24, 1.1:1 on white). Typeface is Inter (L95). No third-party CSS,
 * no analytics, no cookies — the pages are static files.
 */

:root {
  --accent: #ffe600;
  --on-accent: #16150f;
  --surface: #ffffff;
  --text: #16150f;
  --muted: #5f5e5a;
  --border: rgba(22, 21, 15, 0.12);
  --fill-subtle: rgba(22, 21, 15, 0.06);
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

a:hover {
  text-decoration-color: var(--text);
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

main {
  padding: 48px 0 72px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* --- Type --------------------------------------------------------------- */

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: var(--measure);
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

.prose {
  max-width: var(--measure);
}

.prose h2:first-of-type {
  margin-top: 32px;
}

/* --- Components --------------------------------------------------------- */

.hero {
  padding: 32px 0 8px;
}

.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
}

.btn:hover {
  filter: brightness(0.94);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.card {
  background: var(--fill-subtle);
  border-radius: 16px;
  padding: 22px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card a {
  text-decoration: none;
}

/* Contact rows — the support channels. */
.contact {
  display: grid;
  gap: 12px;
  margin: 24px 0 8px;
  max-width: var(--measure);
}

.contact a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--fill-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
}

.contact a:hover {
  background: rgba(22, 21, 15, 0.1);
}

.contact .label {
  color: var(--muted);
  font-size: 14px;
  min-width: 6.5rem;
}

.contact .value {
  font-weight: 600;
  font-size: 1.05rem;
}

.note {
  background: var(--fill-subtle);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--muted);
  max-width: var(--measure);
}

.note p:last-child {
  margin-bottom: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: var(--measure);
  margin: 0 0 20px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.toc {
  background: var(--fill-subtle);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 40px;
  max-width: var(--measure);
  font-size: 15px;
}

.toc ol {
  margin: 0;
}

.toc li {
  margin-bottom: 4px;
}

.center {
  text-align: center;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 32px 0 56px;
  }
}
