:root {
  --bg: #f3f0e8;
  --bg-alt: #ebe4d5;
  --text: #23201b;
  --muted: #686156;
  --line: rgba(35, 32, 27, 0.12);
  --accent: #9a6e24;
  --accent-soft: rgba(154, 110, 36, 0.12);
  --card: rgba(255, 255, 255, 0.68);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(circle at top, rgba(154, 110, 36, 0.10), transparent 32%),
    linear-gradient(180deg, var(--bg), var(--bg-alt));
  color: var(--text);
  font: 17px/1.65 Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(35, 32, 27, 0.03) 1px, transparent 1px);
  background-size: 100% 2.5rem;
  opacity: 0.35;
}

.page {
  width: min(54rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  position: relative;
}

.masthead { padding: 1.5rem 0 3rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}
.brand:link, .brand:visited, .brand:hover, .brand:focus-visible { text-decoration: none; }
.brand-mark { display: block; width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; }
.brand .eyebrow { margin-bottom: 0; }
.masthead-note { color: var(--muted); margin: 0; }

.eyebrow, .label {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font: 600 0.75rem/1.2 system-ui, sans-serif;
  color: var(--accent);
}

h1, h2, p { margin-top: 0; }

h1 {
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.subtitle {
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font: 600 0.85rem/1 system-ui, sans-serif;
}

.card, .panel {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 1.4rem 3rem rgba(35, 32, 27, 0.08);
}

.card { padding: clamp(1.5rem, 5vw, 3rem); }

.card-head, .card-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.card-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 0;
}

.date, .meta {
  margin-bottom: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 1.25rem 0;
}

.body { font-size: 1.05rem; }
.body p { margin: 0 0 1rem; }
.body strong { color: var(--accent); }

.moral {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 0.75rem;
  font-style: italic;
}

.site-footer { padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .page { width: min(100% - 1rem, 68rem); }
  .card-head, .card-foot { flex-direction: column; }
  .masthead { padding-top: 1rem; }
}
