/* DR2028 — plain-PHP rebuild. Same palette and feel as the dr2028.org Raft theme. */
:root {
  --accent: #C26148;
  --accent-dark: #AC5039;
  --bg: #EBE8E6;
  --ink: #1D1F25;
  --paper: #FDFDFD;
  --dark: #1E1E1E;
  --muted: #5c5c5c;
  --line: #d8d3cf;
  --radius: 10px;
  --font: "Readex Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--paper); }
.brand-logo { border-radius: 8px; display: block; }
.brand-text { font-size: 1.02rem; line-height: 1.25; font-weight: 500; }
.brand-text strong { color: var(--accent); font-weight: 700; }
.brand-text small { display: block; font-size: .72rem; font-weight: 400; opacity: .75; letter-spacing: .04em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; align-items: center; }
.site-nav a {
  color: var(--paper); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 6px; white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a.current { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- hero / sections ---------- */
.hero { background: var(--bg); text-align: center; padding: 4.2rem 0 3.4rem; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.18; margin: 0 0 1rem; font-weight: 700; }
.hero h1 .accent { color: var(--accent-dark); }
.hero .lede { font-size: 1.12rem; color: #3c3c3c; max-width: 640px; margin: 0 auto 1.8rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none;
  font-weight: 600; padding: .8rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff !important; }
.hero-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.section { padding: 3.2rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .4rem; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.section-paper { background: var(--paper); }

/* ---------- pillars ---------- */
.pillars { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 14px rgba(29,31,37,.07);
}
.pillar img { width: 100%; height: auto; display: block; }
.pillar-body { padding: 1.3rem 1.4rem 1.6rem; }
.pillar-body p { margin: 0; font-size: .95rem; color: #3a3a3a; }

/* ---------- post cards ---------- */
.post-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: inherit; display: flex; flex-direction: column;
  box-shadow: 0 2px 14px rgba(29,31,37,.07); transition: transform .15s ease;
}
.post-card:hover { transform: translateY(-3px); color: inherit; }
.post-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #ddd; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-meta { font-size: .78rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.post-meta .cat {
  background: var(--accent); color: #fff; font-weight: 600; font-size: .72rem;
  padding: .15rem .6rem; border-radius: 999px; text-transform: capitalize;
}
.post-card-body h3 { margin: 0; font-size: 1.06rem; line-height: 1.4; }
.post-card-body .excerpt { margin: 0; font-size: .9rem; color: var(--muted); }
.read-more { font-weight: 600; font-size: .88rem; color: var(--accent-dark); margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--paper); text-align: center; padding: 3.6rem 0; }
.cta-band h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { margin: 0 0 1.6rem; opacity: .92; }
.cta-band .btn { background: var(--paper); color: var(--accent-dark) !important; }
.cta-band .btn:hover { background: #fff; }

/* ---------- content pages ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: 2.6rem 0; }
.page-hero h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; }
.breadcrumb { font-size: .82rem; margin-bottom: .9rem; opacity: .85; }
.breadcrumb a { color: var(--paper); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { margin: 0 .45rem; opacity: .6; }

.content-wrap { background: var(--paper); border-radius: var(--radius); padding: 2rem clamp(1.2rem, 4vw, 3rem); margin: 2rem auto; box-shadow: 0 2px 14px rgba(29,31,37,.06); }
.content-body { font-size: 1.02rem; }
.content-body h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.content-body h3 { font-size: 1.22rem; margin: 1.7rem 0 .6rem; color: var(--accent-dark); }
.content-body p { margin: 0 0 1.1rem; }
.content-body ul, .content-body ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.content-body li { margin-bottom: .45rem; }
.content-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.content-body blockquote { border-left: 4px solid var(--accent); margin: 1.5rem 0; padding: .6rem 1.2rem; background: var(--bg); border-radius: 0 8px 8px 0; }
.content-body figure.content-figure { margin: 1.6rem 0; text-align: center; }
.content-body figure.content-figure img { border-radius: 8px; }
.content-body .columns { display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .content-body .columns { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

.child-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 700px) { .child-cards { grid-template-columns: repeat(2, 1fr); } }
.child-card {
  display: block; padding: 1.1rem 1.25rem; background: var(--bg); border-radius: 8px;
  text-decoration: none; color: inherit; border-left: 4px solid var(--accent);
}
.child-card:hover { background: #f4f1ee; }
.child-card strong { display: block; font-size: .98rem; margin-bottom: .25rem; color: var(--ink); }
.child-card span { font-size: .84rem; color: var(--muted); }

/* ---------- single post ---------- */
.post-hero-img { margin: 2rem auto 0; border-radius: var(--radius); overflow: hidden; max-width: 1120px; width: 92%; }
.post-hero-img img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.post-byline { display: flex; gap: .8rem; align-items: center; font-size: .86rem; color: var(--muted); margin: 1.2rem 0 0; flex-wrap: wrap; }

/* ---------- contact form ---------- */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-card { background: var(--paper); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 2px 14px rgba(29,31,37,.07); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-ok { background: #e6f4ea; border: 1px solid #a3d9b1; color: #1d5c2e; padding: 1rem 1.2rem; border-radius: 8px; }
.form-err { background: #fdecea; border: 1px solid #f5a9a0; color: #8f1d12; padding: 1rem 1.2rem; border-radius: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #cfcfcf; margin-top: 0; }
.footer-inner { display: flex; gap: 2rem; justify-content: space-between; align-items: flex-start; padding: 2.6rem 0; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { border-radius: 8px; }
.footer-brand p { margin: 0; font-size: .92rem; }
.footer-brand strong { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; }
.footer-nav a { color: #cfcfcf; text-decoration: none; font-size: .88rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 1rem 0; font-size: .82rem; color: #9a9a9a; }
.footer-bottom a { color: #cfcfcf; }

/* ---------- pagination / misc ---------- */
.pager { display: flex; gap: .6rem; justify-content: center; margin: 2.4rem 0 1rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .55rem 1rem; border-radius: 8px; text-decoration: none; background: var(--paper); color: var(--ink); font-weight: 500; box-shadow: 0 1px 6px rgba(29,31,37,.08); }
.pager span.current { background: var(--accent); color: #fff; }
.not-found { text-align: center; padding: 5rem 0; }
.not-found h1 { font-size: 3rem; margin: 0 0 .5rem; color: var(--accent-dark); }

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: stretch;
    padding: .6rem 4%; gap: 0; border-top: 1px solid #333;
  }
  .site-nav.open ul { display: flex; }
  .site-nav a { display: block; padding: .75rem .4rem; border-bottom: 1px solid #2c2c2c; }
  .site-nav a.current { box-shadow: inset 3px 0 0 var(--accent); }
  .header-inner { position: relative; }
  .brand-text { font-size: .92rem; }
}
