:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text-primary: #14181b;
  --color-text-muted: #57636c;
  --color-accent: #9542ee;
  --color-border: #e5e7eb;
  --color-banner-bg: #fef9c3;
  --color-banner-text: #713f12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #101119;
    --color-surface: #101119;
    --color-text-primary: #f5f4f7;
    --color-text-muted: #a8a0be;
    --color-accent: #9542ee;
    --color-border: #252432;
    --color-banner-bg: #3f3510;
    --color-banner-text: #fef08a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 4px, not 10px -- same tighter-gap treatment the app's own header
     lockups (Swipe Deck, Sign In, Onboarding, in-app legal pages) already
     use, so the logo and wordmark read as one lockup here too. */
  gap: 4px;
  padding: 28px 24px 8px;
  text-decoration: none;
}

header.site img {
  /* 44px, matching Swipe Deck's (and now DocHeader's) header exactly --
     big and clear was the actual goal, not a compact nav-strip size. Both
     of the app's own top-of-page lockups use this size now, so this page
     matches both instead of undershooting either. */
  width: 44px;
  height: 44px;
}

header.site .wordmark {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  /* 24px, matching the app's text-2xl at this same logo size. */
  font-size: 24px;
  color: var(--color-accent);
}

a.site-link {
  text-decoration: none;
}

.banner {
  background: var(--color-banner-bg);
  color: var(--color-banner-text);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0;
}

h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 8px 0 4px;
}

.updated {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 0 0 28px;
}

h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 36px 0 12px;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: var(--color-text-primary);
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-accent);
}

.home-lead {
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 40px;
}

.home-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-links a {
  display: block;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
}

.home-links a span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

footer.site {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

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

/* Past ~860px there's real space on either side of the 720px reading column
   -- rather than leaving it as plain empty background (which reads as an
   unstyled mobile page stretched onto a monitor), give the column itself a
   card treatment and let a slightly different page wash show through around
   it. Mobile is untouched below this breakpoint: no card, no wash, exactly
   the layout it's always had. */
@media (min-width: 860px) {
  body {
    background: #f6f4fa;
  }

  .wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    margin: 56px auto;
    padding: 40px 56px 56px;
    box-shadow: 0 1px 2px rgba(20, 24, 27, 0.04), 0 16px 40px rgba(20, 24, 27, 0.07);
  }
}

@media (min-width: 860px) and (prefers-color-scheme: dark) {
  body {
    background: #0a0a10;
  }
}
