:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --text: #24312a;
  --muted: #5b6a60;
  --border: #e4ddc9;
  --blue: #1b4965;
  --green: #3f7a3c;
  --gold: #c9932e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
header {
  background: var(--surface);
  border-bottom: 3px solid var(--gold);
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
header .wrap {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.brand span { color: var(--green); }
.tagline {
  color: var(--muted);
  font-size: 0.95rem;
}
main { padding: 40px 0 60px; }
.hero {
  background:
    linear-gradient(135deg, rgba(27,73,101,.88), rgba(36,90,128,.75)),
    url("/assets/brand/hero-construction-worker.jpg") center / cover no-repeat;
  color: #fff;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 40px;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #cfe3ee;
  margin: 0 0 8px;
}
.hero h1 { margin: 0 0 12px; font-size: 1.8rem; }
.hero p { margin: 0; color: #e6f0f5; }

article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 32px;
}
article .post-date {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}
article h1, article h2 { margin: 0 0 16px; color: var(--blue); }
article p { margin: 0 0 16px; }
article p:last-child { margin-bottom: 0; }
article ul { margin: 0 0 16px; padding-left: 22px; }
article li { margin: 0 0 8px; }
article a { color: var(--blue); }
article .post-figure { margin: 0 0 24px; }
article .post-figure svg,
article .post-figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
article .fine { font-size: 0.82rem; color: var(--muted); }
.byline { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

/* Home-page list of recent posts */
.posts-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 16px;
}
.posts-head h2 { color: var(--blue); margin: 0; font-size: 1.2rem; }
.posts-head a { color: var(--blue); font-size: 0.9rem; }
.post-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}
.post-card:hover { border-color: var(--gold); }
.post-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex: none;
}
.post-card-body { flex: 1; min-width: 0; }
.post-card .post-date {
  color: var(--gold); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px;
}
.post-card h3 { margin: 0 0 8px; color: var(--blue); }
.post-card p { margin: 0; color: var(--muted); }
@media (max-width: 480px) {
  .post-card { flex-wrap: wrap; }
  .post-thumb { width: 64px; height: 64px; }
}

.back-link { display: inline-block; margin-bottom: 20px; color: var(--blue); font-size: 0.9rem; }

section.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}
section.panel h3 { margin: 0 0 6px; color: var(--green); }
section.panel .sub { color: var(--muted); margin: 0 0 18px; font-size: 0.95rem; }
form { display: flex; gap: 10px; flex-wrap: wrap; }
form.stacked { flex-direction: column; }
input, textarea {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text);
}
form:not(.stacked) input[type="email"] { flex: 1; min-width: 200px; }
textarea { resize: vertical; min-height: 100px; }
button {
  font: inherit; font-weight: 600; padding: 10px 20px;
  border: none; border-radius: 6px; background: var(--green);
  color: #fff; cursor: pointer;
}
button:hover { background: #336333; }
.note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
footer {
  text-align: center; padding: 30px 20px;
  color: var(--muted); font-size: 0.9rem;
}
footer a { color: var(--blue); }
