/* Styles for the static content pages (templates, guides, about, 404). The
   editor has its own stylesheet; this one stays small and dependency-free. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #111827;
  --muted: #5b6472;
  --border: #e5e7eb;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --code-bg: #f3f4f6;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #16191f;
    --text: #e6e8eb;
    --muted: #9aa3af;
    --border: #262b34;
    --accent: #6394f8;
    --accent-text: #0f1115;
    --code-bg: #1b1f26;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

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

.site-skip {
  position: absolute;
  left: -9999px;
}
.site-skip:focus {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 10;
}

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

.site-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.site-brand span { color: var(--accent); }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a[aria-current='page'] { color: var(--accent); font-weight: 600; }
.site-header nav a.site-button { color: var(--accent-text); }

.site-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}
.site-narrow { max-width: 640px; }

.site-crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.site-crumbs a { color: var(--muted); }

.site-article { max-width: 820px; }
.site-prose { max-width: 720px; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.4rem; margin: 2em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 0.4em; }

.site-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.site-meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.site-note { color: var(--muted); font-size: 14px; }

.site-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.site-tags span {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.site-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.site-button {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.site-button:hover { filter: brightness(1.08); }

.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.site-cards a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.site-cards a:hover { border-color: var(--accent); }
.site-cards span { color: var(--muted); font-size: 15px; }

/* The sample resume keeps its own page styles and stays readable on paper colours. */
.resume-frame {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}
.resume-sample { color-scheme: light; }
.resume-sample .page { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12); }

pre, code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.88em; }
code { padding: 1px 4px; border-radius: 4px; background: var(--code-bg); }
pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--code-bg);
  line-height: 1.5;
}
pre code { padding: 0; background: none; }

.site-source summary { cursor: pointer; font-weight: 600; }
.site-source pre { max-height: 520px; }

table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; }
th, td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--bg-soft); }

blockquote {
  margin: 1em 0;
  padding: 4px 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.site-faq dt { font-weight: 700; margin-top: 18px; }
.site-faq dd { margin: 4px 0 0; }

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
}
