: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; }
.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.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; }

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text);
  text-decoration: none;
  font: 600 0.85rem/1 system-ui, sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.archive-link:hover, .archive-link:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--accent);
}
.archive-icon { display: block; flex: 0 0 20px; }

.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;
}

.share-block {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.share-block[hidden] { display: none; }
.share-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font: 600 0.78rem/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.share-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  font: 600 0.78rem/1 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.share-action::before {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
}
.share-facebook::before { content: "f"; }
.share-instagram::before { content: "◎"; }
.share-google::before { content: "G"; }
.share-youtube::before { content: "▶"; }
.share-x::before { content: "𝕏"; }
.share-copy::before { content: "↗"; }
.share-native::before { content: "↗"; }
.share-action:hover, .share-action:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.share-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-status {
  min-height: 1.3em;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font: 0.8rem/1.4 system-ui, sans-serif;
}

.site-footer { padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
.legal-links { margin-top: 0.35rem; }
.legal-links a { color: inherit; }

.product-cta {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}
.product-cta a {
  display: inline-block;
  font: 600 1rem/1.3 system-ui, sans-serif;
  color: var(--accent);
  text-decoration: underline;
}
.product-cta .disclosure {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 500;
  font-family: system-ui, sans-serif;
}
.product-cta .product-prompt {
  margin: 0.7rem 0 0.25rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.product-cta .disclosure a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.92;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 1rem 2rem rgba(35, 32, 27, 0.18);
  font: 0.9rem/1.5 system-ui, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 20rem; color: var(--text); }
.cookie-banner a { color: var(--accent); }
.cookie-banner button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  font: 600 0.85rem/1 system-ui, sans-serif;
  cursor: pointer;
}

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

@media (max-width: 520px) {
  .page { padding: 1.5rem 0 3rem; }
  .masthead { padding-bottom: 1.75rem; }
  .masthead-row { justify-content: flex-start; gap: 0.6rem 0.75rem; }
  .brand { gap: 0.6rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; flex-basis: 2.25rem; }
  .archive-link { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  .archive-link span:last-child { display: none; }
  h1 { font-size: clamp(2.1rem, 12vw, 2.8rem); }
  .card { padding: 1.25rem; border-radius: 1.1rem; }
  .card-head h2 { font-size: 1.4rem; }
  .badges { gap: 0.5rem; }
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.85rem 1rem; }
  .cookie-banner button { flex: 1 1 100%; }
  .pagination { flex-direction: column; align-items: stretch; text-align: center; gap: 0.6rem; }
  .archive-item a { padding: 0.85rem 0.95rem; }
}

.archive-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.archive-item a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.4);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.archive-item a:hover, .archive-item a:focus-visible { background: rgba(255, 255, 255, 0.7); }
.archive-date {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font: 600 0.78rem/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.archive-title { display: block; font-size: 1.2rem; margin-bottom: 0.3rem; }
.archive-lead { display: block; color: var(--muted); font-size: 0.95rem; }

.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font: 600 0.9rem/1.2 system-ui, sans-serif;
}
.pagination a { color: var(--accent); }
.pagination-status { color: var(--muted); font-weight: 400; }

.success { color: #3e7352; }
.error { color: #a33b2f; }

.newsletter {
  margin-top: 2rem;
}
.newsletter > summary {
  cursor: pointer;
}
.newsletter-title {
  display: inline;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
}
.newsletter[open] > summary { margin-bottom: 1.25rem; }
.newsletter .lead { margin-bottom: 1.25rem; }
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}
.newsletter-grid .field-full { grid-column: 1 / -1; }
.newsletter label,
.newsletter-field-label {
  display: block;
  margin: 0;
  color: var(--muted);
  font: 600 0.8rem/1.3 system-ui, sans-serif;
}
.birth-date-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.newsletter input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.7);
  font: 1rem/1.3 system-ui, sans-serif;
  color: var(--text);
}
.newsletter select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.7);
  font: 1rem/1.3 system-ui, sans-serif;
  color: var(--text);
}
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.newsletter-consent input { width: auto; margin-top: 0.2rem; }
.newsletter-consent a { color: var(--accent); }
.newsletter button {
  margin-top: 1.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: white;
  font: 600 0.95rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.newsletter button:disabled { opacity: 0.6; cursor: wait; }
.newsletter-message { margin-top: 0.85rem; font-size: 0.9rem; }

.embed-page { background: transparent; }
.embed-shell { width: min(54rem, calc(100% - 1rem)); margin: 0 auto; padding: 0.5rem 0 1rem; }
.embed-shell .card { box-shadow: 0 0.8rem 2rem rgba(35, 32, 27, 0.08); }
.embed-shell h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.embed-credit { margin: 0.65rem 0 0; text-align: right; font: 0.78rem/1.2 system-ui, sans-serif; }
.embed-credit a { color: var(--accent); }

@media (max-width: 520px) {
  .newsletter-grid { grid-template-columns: 1fr; }
}
