/* DeeGee — one stylesheet for every page. No web fonts, no external assets. */

:root {
  color-scheme: dark light;

  /* Dark (default) — from the logo: brown ground, orange accent, warm off-white */
  --bg: #1a120d;
  --bg-raised: #241912;
  --rule: #3d2b1f;
  --text: #f2e8da;          /* 15.6:1 on --bg */
  --text-muted: #c9b7a3;    /* 9.6:1 on --bg */
  --accent: #f2801f;        /* 6.6:1 on --bg — used for text and marks */
  --accent-ink: #1a120d;    /* text placed on an orange fill */
  --focus: #ffb366;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 70ch;
  --wide: 62rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5eee3;
    --bg-raised: #ece2d3;
    --rule: #d6c6b1;
    --text: #22170f;        /* 15.4:1 on --bg */
    --text-muted: #5a4636;  /* 8.0:1 on --bg */
    --accent: #a4460a;      /* 5.9:1 on --bg */
    --accent-ink: #fff8ef;
    --focus: #a4460a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 2em 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p, ul, ol, table { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 0.9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.site-header nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.site-header nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* ---- hero ---- */
.hero { padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--accent); }
.hero .mark { width: 128px; height: 128px; border-radius: 22px; margin-bottom: 1.5rem; }
.tagline { font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 700; line-height: 1.35; max-width: 32ch; margin-bottom: 1rem; }
.lede { color: var(--text-muted); max-width: 58ch; font-size: 1.1rem; }

/* ---- sections ---- */
.section { padding: 2.75rem 0; border-bottom: 1px solid var(--rule); }
.section > .wrap > h2:first-child { margin-top: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin: 0 0 0.75rem; font-weight: 700;
}

.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border: 1px solid var(--rule);
}
.features li { background: var(--bg-raised); padding: 1.25rem 1.25rem 1.4rem; }
.features h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.features h3 span { font-family: var(--mono); color: var(--accent); margin-right: 0.5rem; }
.features p { margin: 0; color: var(--text-muted); }

.pitch { font-size: 1.2rem; max-width: 52ch; margin: 0; }

.status {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
  border-left: 4px solid var(--accent); padding: 0.25rem 0 0.25rem 1rem;
}
.status p { margin: 0; }
.badge {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; background: var(--accent); color: var(--accent-ink); padding: 0.15rem 0.5rem;
}

/* ---- simple pages (support, invite, 404) ---- */
.page { padding: 3rem 0 3.5rem; }
.page h2 { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.contact {
  font-size: 1.25rem; font-weight: 700; background: var(--bg-raised);
  border: 1px solid var(--rule); padding: 1rem 1.25rem; display: inline-block;
}
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: 0.35rem; }
kbd {
  font-family: var(--font); font-size: 0.95em; font-weight: 600;
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 4px; padding: 0.05em 0.4em;
}

/* ---- legal documents ---- */
.legal { padding: 3rem 0 3.5rem; }
.legal .updated { color: var(--text-muted); font-family: var(--mono); font-size: 0.9rem; }
.toc { background: var(--bg-raised); border: 1px solid var(--rule); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.legal h2, .legal h3 { scroll-margin-top: 1rem; }
.legal h2 a.anchor, .legal h3 a.anchor { color: var(--text-muted); text-decoration: none; margin-left: 0.35rem; font-weight: 400; }
.legal h2 a.anchor:hover, .legal h3 a.anchor:hover { color: var(--accent); }

.table-scroll { overflow-x: auto; margin: 0 0 1.25em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border: 1px solid var(--rule); }
th { background: var(--bg-raised); font-weight: 700; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 1.75rem 0 2.25rem; color: var(--text-muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; }
.site-footer p { margin: 0; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .hero { padding-top: 2.5rem; }
  .hero .mark { width: 96px; height: 96px; }
  .site-header nav ul { gap: 0.9rem; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
