/* Texas Cement Archive: simplified single-column layout */
:root {
  --bg: #f6f4ee;
  --paper: #ffffff;
  --ink: #26302c;
  --muted: #66706a;
  --accent: #2c5b4c;
  --accent-soft: #e6eee9;
  --rule: #d8d3c4;
  --wrap: 52rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { padding-top: 1.1rem; padding-bottom: 0.4rem; }
.brand {
  display: inline-block;
  font: 600 1.4rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
}
.brand:hover { text-decoration: underline; }

.site-nav ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.15rem; }
.site-nav li { margin: 0; }
.site-nav a, .site-nav .nav-muted {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.site-nav .nav-muted { color: var(--muted); cursor: default; }

/* ---------- archive notice: directly under the header, above the content ---------- */
.archive-notice {
  background: var(--accent-soft);
  border-bottom: 1px solid #c9d8d0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
}
.archive-notice .wrap { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.archive-notice p { margin: 0; }
.archive-notice strong { color: var(--accent); }

/* ---------- content ---------- */
.content { padding-top: 1.75rem; padding-bottom: 2.5rem; }
.content > :first-child { margin-top: 0; }

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.85rem; margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
h2 { font-size: 1.4rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1.3rem 0 0.4rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin: 0 0 0.35rem; }
blockquote { margin: 1rem 0; padding: 0.1rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:visited { color: #54635b; }
a:hover { color: #1b3d32; }

img { max-width: 100%; height: auto; }
img[align="left"], img[align="LEFT"] { float: left; margin: 0.2rem 1rem 0.5rem 0; }
img[align="right"], img[align="RIGHT"] { float: right; margin: 0.2rem 0 0.5rem 1rem; }

table { border-collapse: collapse; max-width: 100%; margin: 0 0 1rem; }
td, th { padding: 0.4rem 0.6rem; vertical-align: top; text-align: left; }
td[align="center"], th[align="center"] { text-align: center; }
td[align="right"] { text-align: right; }

iframe { display: block; width: 100%; border: 1px solid var(--rule); background: var(--paper); margin: 0 0 1rem; }

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

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); color: var(--muted); font-size: 0.82rem; }
.site-footer .wrap { padding-top: 1.1rem; padding-bottom: 1.4rem; }
.site-footer p { margin: 0 0 0.3rem; }
.site-footer br { display: none; }
.site-footer a { display: inline-block; margin-top: 0.3rem; }
.site-footer a { color: var(--muted); }

/* ---------- detail pages (plain, no header) ---------- */
.framed .archive-notice { display: none; }   /* the page that frames this one already shows the notice */
body.detail .archive-notice .wrap { max-width: 40rem; }
body.detail .content { max-width: 40rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }

@media (max-width: 40rem) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.55rem; }
  .site-nav ul { gap: 0 0.9rem; }
  img[align="left"], img[align="right"] { float: none; display: block; margin: 0.5rem 0; }
}

@media print {
  .site-nav { display: none; }
  body { background: #fff; }
}
