/* Concrete Finishes Handbook */
:root {
  --sand: #f4efe8;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --muted: #6d655d;
  --accent: #b4532a;
  --accent-dark: #8f3f1d;
  --tint: #f3e3d9;
  --rule: #ddd3c7;
  --wrap: 56rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); 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: dark band */
.site-header { background: var(--ink); color: var(--sand); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--sand); }
.brand .logo { flex: none; }
.brand span { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; text-transform: lowercase; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 0.3rem 0; color: #e7dccf; text-decoration: none; font-size: 0.88rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: #8a7f74; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }

/* notice: directly under the header, above the content */
.site-notice { background: var(--tint); border-bottom: 1px solid #e3c9b8; font-size: 0.88rem; line-height: 1.5; }
.site-notice .wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.site-notice p { margin: 0; }
.site-notice strong { color: var(--accent-dark); }

/* content on a white sheet */
.content { padding-top: 1.75rem; padding-bottom: 2.5rem; }
body:not(.popup) .content { background: var(--paper); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
body:not(.popup) main.wrap { max-width: var(--wrap); }
.content > :first-child { margin-top: 0; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; font-weight: 700; color: var(--ink); }
h1 { font-size: 1.8rem; margin: 0 0 1rem; } h2 { font-size: 1.4rem; margin: 1.8rem 0 0.6rem; } h3 { font-size: 1.15rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1rem; } ul, ol { padding-left: 1.4rem; margin: 0 0 1rem; } li { margin-bottom: 0.3rem; }
a { color: var(--accent-dark); text-underline-offset: 0.15em; } a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; max-width: 100%; }
td, th { padding: 0.5rem 0.7rem; vertical-align: top; text-align: left; }
td[align="center"], th[align="center"] { text-align: center; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }
strong { font-weight: 700; }

/* footer */
.site-footer { background: var(--ink); color: #cfc3b6; font-size: 0.8rem; }
.site-footer .wrap { padding-top: 1.1rem; padding-bottom: 1.3rem; }
.site-footer p { margin: 0; }

/* popup sample pages (no header) */
body.popup .content { max-width: 40rem; margin: 0 auto; padding: 1rem 1.25rem 1.5rem; }
body.popup .site-notice .wrap { max-width: 40rem; }

@media (max-width: 40rem) {
  body { font-size: 15.5px; }
  .site-header .wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; }
  h1 { font-size: 1.5rem; }
  td, th { padding: 0.35rem 0.4rem; }
}
