:root {
  --cream: #FAF3E7;
  --parchment: #F3E7D3;
  --walnut: #4A2E1A;
  --walnut-deep: #2B1B0E;
  --brass: #B8863B;
  --brass-light: #D8B98A;
  --text-body: #3A2A1A;
  --text-muted: #7A5C3E;
  --max-width: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.8%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200.29%200%200%200%200%200.18%200%200%200%200%200.11%200%200%200%200.14%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--text-body);
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--walnut);
  color: var(--cream);
  padding: 8px 16px;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--parchment);
  border-bottom: 3px double var(--brass);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo { width: 210px; height: auto; flex-shrink: 0; }
.title-block { flex: 1; min-width: 240px; }
.site-header h1 {
  font-family: 'Playball', 'Goudy Bookletter 1911', cursive, serif;
  font-size: clamp(48px, 8.5vw, 78px);
  color: var(--walnut);
  margin: 0 0 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.tagline {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 15px;
}
.est {
  margin: 0;
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
}

/* Nav */
.site-nav {
  background: var(--walnut);
}
.site-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}
.site-nav a {
  display: block;
  padding: 12px 14px;
  color: var(--brass-light);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(216,185,138,0.15);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus {
  background: var(--walnut-deep);
  color: var(--cream);
}

/* Main content */
main { max-width: var(--max-width); margin: 0 auto; padding: 36px 20px 60px; }

.intro-panel { overflow: hidden; }

.figure {
  border: 6px solid var(--parchment);
  outline: 1px solid var(--brass);
  margin: 4px 0 16px;
}
.figure-right { float: right; width: 220px; margin-left: 24px; }
.figure-left { float: left; width: 160px; margin-right: 24px; }

.welcome {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--walnut);
  font-size: 22px;
  margin-top: 0;
}

.intro-panel p { margin: 0 0 20px; }

.rule {
  height: 1px;
  background: var(--brass);
  border-top: 1px solid var(--brass);
  margin: 40px 0 30px;
  clear: both;
}

.db-heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--walnut);
  font-size: 19px;
}

a { color: var(--brass) ; text-decoration: underline; text-decoration-color: rgba(184,134,59,0.4); }
a:hover { color: var(--walnut); }

/* Footer notice block: Capehart callout, trademark, copyright */
.site-notice {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px 10px;
  text-align: center;
  clear: both;
}
.capehart-callout {
  font-weight: 600;
  color: var(--walnut);
  margin: 0 0 16px;
}
.notice-img {
  display: inline-block;
  margin: 0 auto 16px;
  float: none;
}
.site-notice .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.site-notice .trademark,
.site-notice .copyright {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--parchment);
  border-top: 3px double var(--brass);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Compact header used on interior content pages */
.site-header-compact .header-inner { padding: 18px 20px; gap: 16px; }
.site-header-compact .logo { width: 130px; }
.site-header-compact h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 3.4vw, 28px);
  color: var(--walnut);
  margin: 4px 0 0;
  font-weight: 700;
}
.site-name { margin: 0; font-size: 24px; letter-spacing: 0.4px; font-family: 'Goudy Bookletter 1911', 'Playfair Display', Georgia, serif; }
.site-name a { text-decoration: none; color: var(--walnut); }
.site-name a:hover { color: var(--brass); }

/* Interior content pages (Getting Started series and beyond) */
.content-page { overflow: hidden; }
.content-page p { margin: 0 0 24px; }
.content-page .figure-start { clear: both; }
.content-page h2, .content-page h3, .content-page hr { clear: both; }
.content-page ul, .content-page ol { margin: 0 0 18px; padding-left: 28px; }
.content-page li { margin-bottom: 12px; }
.content-page hr { border: none; border-top: 1px solid var(--brass); margin: 24px 0; }

.content-img {
  border: 6px solid var(--parchment);
  outline: 1px solid var(--brass);
  margin: 8px 26px 30px 8px;
  max-width: min(100%, 320px);
}

/* Groups of images that sit together with no text between them render as a row */
.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  margin: 16px 0 30px;
}
.img-row .content-img {
  float: none;
  margin: 0;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-height: 260px;
  max-width: 100%;
}

.content-page .img-caption {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -6px;
  margin-bottom: 30px !important;
}

/* Old-school graphic nav buttons become clean text buttons */
.btn-vintage {
  display: inline-block;
  background: var(--walnut);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.btn-vintage:hover { background: var(--walnut-deep); }

/* Prev / next section pagination */
.page-pagination {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 50px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--brass-light);
  padding-top: 20px;
}
.pn-link {
  font-size: 17px;
  color: var(--walnut);
  text-decoration: none;
  max-width: 45%;
}
.pn-link:hover { color: var(--brass); }
.pn-next { text-align: right; margin-left: auto; }

/* Responsive */
@media (max-width: 600px) {
  .figure-right, .figure-left { float: none; width: 100%; margin: 0 0 16px; }
  .content-img:not(.img-row .content-img) { float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 0 16px; }
  .img-row .content-img { max-height: 170px; }
  .site-nav a { padding: 10px 12px; font-size: 12.5px; }
  .page-pagination { flex-direction: column; }
  .pn-next { text-align: left; margin-left: 0; }
}

/* "Back to FAQ's" link at the bottom of individual Q&A pages */
.faq-back {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 50px;
  border-top: 1px solid var(--brass-light);
  padding-top: 20px;
}
.faq-back a {
  font-size: 17px;
  color: var(--walnut);
  text-decoration: none;
}
.faq-back a:hover { color: var(--brass); }
