/* PressLoom docs - one shared stylesheet. Light and dark via tokens. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1c1f23;
  --text-muted: #5a6169;
  --rule: #e2e5ea;
  --accent: #2f5bd7;
  --accent-soft: #eef2fd;
  --code-bg: #f2f3f5;
  --code-text: #22262b;
  --shadow: 0 1px 2px rgba(16, 20, 28, 0.06), 0 6px 20px rgba(16, 20, 28, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --bg-soft: #1b1f24;
    --text: #e6e9ed;
    --text-muted: #a2aab4;
    --rule: #2b3138;
    --accent: #8ba9f5;
    --accent-soft: #1d2534;
    --code-bg: #1f242a;
    --code-text: #dfe4ea;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

/* ---- top nav ---- */

.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav .nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}

.site-nav .wordmark {
  font-family: Iowan Old Style, "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: 0.75rem;
}

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

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

/* ---- content column ---- */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

h1, h2, h3, h4 {
  font-family: Iowan Old Style, "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
}

h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.18rem; }

p, ul, ol { margin: 0 0 1.1rem; }

ul, ol { padding-left: 1.35rem; }

li { margin-bottom: 0.35rem; }

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ---- callout ---- */

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.callout > :last-child { margin-bottom: 0; }

.callout .callout-title {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* ---- screenshots ---- */

figure {
  margin: 1.75rem 0;
}

figure img,
img.shot {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- code ---- */

code, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  font-size: 0.88em;
}

pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th { font-weight: 600; }

footer.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem 1.25rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}
