/* Pactlore — cream, navy, gold. System fonts only; no external requests. */
:root {
  --cream: #F7F3EC;
  --cream-dark: #EDE7DB;
  --ink: #192B3E;
  --ink-soft: #3D4F61;
  --line: #D6D0C4;
  --gold: #C9A24D;
  --copper: #B8613A;
  --white: #FFFdf8;
  --font-serif: "Source Serif Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 42rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--copper); text-decoration-color: var(--copper); }
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.site-header, main, .site-footer {
  width: 100%;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); text-decoration: none; }

nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
}
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.7rem;
}
h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.45rem;
}

.pubdate {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 1.5rem;
}

p { margin: 0 0 1rem; }

blockquote {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem 0.9rem 1.15rem;
  background: var(--white);
  border-left: 4px solid var(--copper);
  box-shadow: 0 0 0 1px var(--line);
}
blockquote p { margin: 0; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin: 0.3rem 0; }
li > strong:first-child { color: var(--ink); }

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

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.45;
  min-width: 32rem;
}
th, td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbf8f2; }

pre.sheet {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 1.15rem 0 1.4rem;
  max-width: 100%;
}
pre.sheet code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  white-space: pre;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--cream-dark);
  padding: 0.08em 0.32em;
  border-radius: 3px;
}
pre.sheet code { background: none; padding: 0; font-size: inherit; }

.lede { font-size: 1.15rem; }
.tools { margin: 1.4rem 0; }
.guides { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.guides li {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.guides li:last-child { border-bottom: 1px solid var(--line); }
.guides a { font-family: var(--font-serif); font-size: 1.15rem; text-decoration: none; }
.guides a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  padding-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer p { margin: 0; }

.not-found { padding: 2rem 0 3rem; }
.not-found h1 { margin-bottom: 1rem; }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .site-header { flex-wrap: wrap; }
}
