/* Shared Memory Backups — site styles.
   Single first-party stylesheet. No external fonts, images, or scripts. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #56565c;
  --accent: #1a4d8f;
  --accent-visited: #6b3fa0;
  --rule: #d7d7dc;
  --panel: #f4f5f7;
  --panel-border: #c9ccd4;
  --warn-bg: #fdf6e3;
  --warn-border: #b98900;
  --warn-fg: #4a3a00;
  --focus: #0a5ad6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d;
    --fg: #e9eaee;
    --muted: #a9adb8;
    --accent: #8ab6f0;
    --accent-visited: #c0a2e8;
    --rule: #3a3e47;
    --panel: #1f2229;
    --panel-border: #3a3e47;
    --warn-bg: #33290c;
    --warn-border: #d5a521;
    --warn-fg: #f6e6bd;
    --focus: #8ab6f0;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

/* Skip link: visible on focus for keyboard users. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--fg);
  padding: 0.6rem 1rem;
  border: 2px solid var(--focus);
  z-index: 10;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

a:hover {
  text-decoration-thickness: 0.15em;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}

.site-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.5rem;
}

section {
  padding-bottom: 0.5rem;
}

.lede {
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left-width: 0.4rem;
  border-radius: 0.35rem;
  padding: 1rem 1.1rem 0.25rem;
  margin: 0 0 1.25rem;
}

.notice-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-fg);
}

.notice-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.steps {
  padding-left: 1.5rem;
}

.steps > li {
  margin-bottom: 1.1rem;
}

.steps h3 + p {
  margin-bottom: 0;
}

dl {
  margin: 0 0 1rem;
}

dt {
  font-weight: 700;
  margin-top: 0.9rem;
}

dd {
  margin: 0.15rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  background: var(--panel);
}

.site-footer p {
  margin: 0 0 0.4rem;
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding: 1.25rem 1rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}

@media print {
  .site-header,
  .site-footer {
    background: none;
  }

  a {
    color: inherit;
  }
}
