/* archetype: broadsheet */

:root {
  --color-bg: #f8f6f2;
  --color-text: #2d221a;
  --color-accent: #a54027;
  --color-accent-dark: #973921;
  --color-surface: #ece7df;
  --hairline: rgba(45, 34, 26, 0.15);
  --hairline-strong: rgba(45, 34, 26, 0.28);

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;

  --border-radius-base: 0px;
  --heading-weight: 700;
  --heading-letter-spacing: 0;
  --section-padding: 3.5rem 0;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Narrow editorial reading measure — overrides Bootstrap's .container widths */
.container {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  letter-spacing: var(--heading-letter-spacing);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

h2 {
  font-weight: var(--heading-weight);
  font-size: 1.9rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.4rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

h3 {
  font-weight: var(--heading-weight);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

h4 { font-weight: var(--heading-weight); font-size: 1.1rem; }

p { margin: 0 0 1.2rem; }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-accent-dark); }

strong { font-weight: 600; }

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

/* ---------- Layout ---------- */

.page-main { padding: 2.5rem 0 3rem; }

.article-body > section { padding: var(--section-padding); }
.article-body > section:first-of-type { padding-top: 1rem; }

/* ---------- Site header ---------- */

.site-header {
  background-color: var(--color-bg);
  border-bottom: 2px solid var(--color-text);
}
.site-header .container { max-width: 900px; }
.site-header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  padding-bottom: 0.9rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 30px; width: auto; max-width: 66vw; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

/* CSS-only hamburger toggle (mandatory; no JavaScript) */
.nav-toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-toggle { display: none; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-text); border-radius: 2px;
}
.nav-toggle-input:focus-visible ~ .nav-toggle {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Intro / drop-cap (broadsheet intro-block: no box) ---------- */

.lead-section { margin-bottom: 0.5rem; }
.lead-section > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.6em;
  line-height: 0.78;
  padding: 0.05em 0.09em 0 0;
  color: var(--color-accent);
}
.lead-section > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ---------- Signature: editorial hairline divider ---------- */

.section-break {
  width: 60px;
  height: 2px;
  margin: 0.5rem auto;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border: 0;
}

/* ---------- Highlight-box (broadsheet: framed by top+bottom hairlines, no fill) ---------- */

.key-note {
  margin: 2rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.4;
  font-style: italic;
  text-align: center;
}
.key-note::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 0.9rem;
}

/* ---------- Structure: 3-column H3 group (tri-panel) ---------- */

.tri-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 1.5rem 0 0.5rem;
}
.split-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin: 1.5rem 0 0.5rem;
}
.panel-item {
  background-color: var(--color-surface);
  border-top: 2px solid var(--color-text);
  padding: 1.1rem 1.1rem 0.4rem;
  border-radius: var(--border-radius-base);
}
.panel-item h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.panel-item p { font-size: 0.98rem; line-height: 1.65; }
.tri-panel .panel-item:nth-child(3) { grid-column: 1 / -1; }

/* ---------- Content images ---------- */

figure { margin: 0 0 1.4rem; }
.img-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5rem 0 0.4rem;
}
figure.img-center { margin: 1.6rem 0; text-align: center; }
figure.img-center img { display: block; width: 100%; height: auto; }
figure.img-left,
figure.img-right {
  max-width: 46%;
  margin-bottom: 1rem;
}
figure.img-left { float: left; margin-right: 1.6rem; }
figure.img-right { float: right; margin-left: 1.6rem; }
figure.img-left img,
figure.img-right img { display: block; width: 100%; height: auto; }
figcaption {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-text);
  opacity: 0.75;
  padding-top: 0.35rem;
  border-top: 1px solid var(--hairline);
  margin-top: 0.35rem;
}
section::after { content: ""; display: table; clear: both; }

.clearfix { clear: both; }

/* ---------- Structure: list renderings ---------- */

.card-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card-list li {
  background-color: var(--color-surface);
  border-top: 2px solid var(--color-text);
  padding: 1rem;
}
.feature-list { list-style: none; padding-left: 1.4rem; margin: 1.4rem 0; }
.feature-list li { position: relative; margin-bottom: 0.6rem; }
.feature-list li::before {
  content: "\00B7";
  position: absolute;
  left: -1.1rem;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.ordered-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; }
.ordered-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
  min-height: 1.8rem;
}
.ordered-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-accent);
  line-height: 1.2;
}

/* ---------- steps-compact (guide-steps) ---------- */

.guide-steps { display: flex; gap: 1.5rem; margin: 1.5rem 0; flex-wrap: wrap; }
.guide-item { display: flex; align-items: center; gap: 0.6rem; }
.guide-num {
  width: 2em; height: 2em; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  text-align: center;
  line-height: 2em;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
}
.guide-label { font-size: 0.9em; }

/* ---------- Content block: table (broadsheet borderless) ---------- */

.ref-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.ref-table th {
  background-color: transparent;
  color: var(--color-text);
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px double var(--hairline-strong);
}
.ref-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--color-text);
}

/* ---------- Content block: pros/cons ---------- */

.compare-block { margin: 1.5rem 0; padding: 1.25rem 0; border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong); }
.compare-block .row { display: flex; flex-wrap: wrap; }
.compare-block .col-md-6 { flex: 1 1 50%; }
.compare-block h4 { color: var(--color-text); font-variant: small-caps; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.compare-block ul { padding-left: 1.2rem; margin: 0; }
.compare-block li { margin-bottom: 0.4rem; }
.compare-block .col-md-6:first-child { border-right: 1px solid var(--hairline); padding-right: 1.5rem; }
.compare-block .col-md-6:last-child { padding-left: 1.5rem; }

/* ---------- Content block: button (broadsheet text-forward) ---------- */

.content-btn {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-base);
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.content-btn:hover { background-color: var(--color-accent); color: var(--color-bg); text-decoration: none; }

/* ---------- Content block: note (broadsheet hanging hairline) ---------- */

.info-note {
  position: relative;
  margin: 1.4rem 0;
  padding: 0.4rem 0 0.4rem 1.25rem;
  border-left: 1px solid var(--color-accent);
  color: var(--color-text);
  font-size: 0.98rem;
}
.info-note::before {
  content: "Noot";
  display: block;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

/* ---------- Section zones (unused this build) ---------- */

.section-tint { background-color: var(--color-surface); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--color-text);
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
}
.site-footer .footer-inner { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: baseline; justify-content: space-between; }
.site-footer a { color: var(--color-accent); }
.site-footer .footer-meta { opacity: 0.85; }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.6rem; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; padding: 10px; cursor: pointer;
    border-radius: var(--border-radius-base);
  }
  .primary-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-toggle-input:checked ~ .primary-nav { display: flex; }
  .primary-nav .nav-link {
    display: block; width: 100%; padding: 0.7rem 0;
    border-bottom: 1px solid var(--hairline);
    text-transform: uppercase;
  }
  .site-header .container { max-width: 760px; }
  .site-header-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

  .tri-panel, .split-cols, .card-list { grid-template-columns: 1fr; }

  figure.img-left, figure.img-right { float: none; max-width: 100%; margin-left: 0; margin-right: 0; }

  /* Tables collapse to stacked data-label layout (no horizontal scroll) */
  .ref-table thead { display: none; }
  .ref-table tr { display: block; margin-bottom: 1rem; border-bottom: 1px solid var(--hairline-strong); }
  .ref-table td {
    display: flex; justify-content: space-between; gap: 0.5rem;
    border-bottom: 1px solid var(--hairline); padding: 0.5rem 0;
  }
  .ref-table td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-accent);
    flex-shrink: 0;
  }

  .compare-block .row { display: block; }
  .compare-block .col-md-6:first-child { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--hairline); padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
  .compare-block .col-md-6:last-child { padding-left: 0; }
}
