:root {
  --ink: #34231d;
  --brown: #4b2f23;
  --brown-2: #684534;
  --brown-3: #845f49;
  --cream: #fbf7ef;
  --paper: #fffdf8;
  --sand: #eadcc8;
  --gold: #b78a4c;
  --gold-light: #dfc18f;
  --muted: #74655c;
  --line: rgba(75, 47, 35, .16);
  --shadow: 0 20px 55px rgba(52, 35, 29, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(183, 138, 76, .12), transparent 22rem),
    var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
a { color: var(--brown-2); }
a:hover { color: #8d5b31; }
img, svg { display: block; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--brown);
  border-radius: 0 0 .5rem .5rem;
}
.skip-link:focus { top: 0; }

.site-header {
  min-height: 76px;
  padding: .85rem max(1rem, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--brown);
  text-decoration: none;
  line-height: 1.2;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-light);
  box-shadow: 0 4px 14px rgba(75,47,35,.2);
}
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); font-size: .72rem; }

.hero-wrap {
  position: relative;
  overflow: hidden;
  color: #fffaf1;
  background:
    linear-gradient(135deg, rgba(39, 22, 16, .98), rgba(83, 51, 36, .96)),
    var(--brown);
}
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(30deg, transparent 46%, var(--gold-light) 48%, transparent 50%),
    linear-gradient(150deg, transparent 46%, var(--gold-light) 48%, transparent 50%);
  background-size: 52px 90px;
}
.breadcrumbs, .hero, .chapter-nav, .article-card, .related, .subscribe, .share {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.breadcrumbs { position: relative; z-index: 1; padding-top: 1.15rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font: .75rem/1.4 Arial, sans-serif;
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--gold-light); }
.breadcrumbs a { color: #f2dfc1; text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: #fff; }
.hero {
  position: relative;
  z-index: 1;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: 3rem 4.5rem;
}
.eyebrow {
  margin: 0 0 .6rem;
  color: var(--gold);
  font: 700 .73rem/1.3 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold-light); }
h1, h2 { text-wrap: balance; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}
.lead {
  max-width: 680px;
  margin: 1.5rem 0 1.2rem;
  color: #f2e8db;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}
.feast {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .5rem .85rem;
  color: #f7e8cd;
  border: 1px solid rgba(223, 193, 143, .42);
  border-radius: 99px;
  font-size: .84rem;
}
.feast span { color: var(--gold-light); }
.portrait {
  margin: 0;
  padding: 9px;
  background: linear-gradient(145deg, #e4c994, #a87a3e);
  border: 3px solid #f7e8c8;
  border-radius: 4px;
  box-shadow: 0 28px 60px rgba(10, 4, 2, .38);
}
.portrait picture {
  overflow: hidden;
  border: 1px solid rgba(75, 47, 35, .45);
  border-radius: 0;
  background: var(--sand);
}
.portrait img { width: 100%; height: auto; aspect-ratio: 355 / 401; object-fit: cover; }
.portrait figcaption {
  margin-top: 9px;
  padding: .65rem .3rem .55rem;
  color: var(--brown);
  background: #fffaf0;
  text-align: center;
  font-size: .86rem;
  font-style: italic;
}

.chapter-nav {
  position: relative;
  z-index: 2;
  margin-top: -1.8rem;
  padding: 1rem 1.2rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(52,35,29,.1);
}
.chapter-nav p {
  margin: 0 0 .65rem;
  color: var(--muted);
  font: 700 .7rem/1 Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chapter-nav div { display: flex; flex-wrap: wrap; gap: .5rem; }
.chapter-nav a {
  padding: .45rem .75rem;
  color: var(--brown);
  background: #f7efe3;
  border: 1px solid #ead8bd;
  border-radius: 99px;
  text-decoration: none;
  font: 700 .75rem/1.2 Arial, sans-serif;
  transition: .2s ease;
}
.chapter-nav a:hover { color: #fff; background: var(--brown-2); border-color: var(--brown-2); transform: translateY(-1px); }

.article-card {
  margin-top: 2rem;
  padding: clamp(1.5rem, 5vw, 4.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.content-section {
  max-width: 850px;
  margin: 0 auto;
  scroll-margin-top: 1.5rem;
}
.content-section + .content-section {
  margin-top: 3.4rem;
  padding-top: 3.2rem;
  border-top: 1px solid var(--line);
}
.section-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.5rem; }
.section-symbol {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff8e9;
  background: var(--brown-2);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #f2e7d7;
}
.section-heading h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 500;
}
.content-section p { margin: 0 0 1.25rem; }
.content-section p:first-of-type::first-letter {
  float: left;
  margin: .13em .1em 0 0;
  color: var(--brown-2);
  font-size: 3.5em;
  line-height: .75;
}
.content-section:not(#biografia) p:first-of-type::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.anecdote {
  padding: 1rem 1.1rem;
  background: #fbf4e9;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.anecdote > span { color: var(--gold); font-weight: 700; }
.source-note {
  max-width: 850px;
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 3.5rem auto 0;
  padding: 1rem 1.2rem;
  color: var(--muted);
  background: #f7efe3;
  border-radius: 10px;
}
.source-note svg { width: 32px; height: 32px; flex: 0 0 auto; fill: var(--brown-3); }
.source-note p { margin: 0; font-size: .83rem; line-height: 1.5; }

.related { padding-block: 5rem 2rem; text-align: center; }
.related h2, .subscribe h2, .share h2 { margin: 0; color: var(--brown); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 500; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; text-align: left; }
.related-grid a {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  color: var(--brown);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(52,35,29,.07);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.related-grid a:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(52,35,29,.12); }
.related-grid a:hover {
  color: #fffaf1;
  background: var(--brown);
  border-color: var(--brown);
}
.related-grid a:hover small { color: #f1e3d3; }
.related-grid strong { margin: .4rem 0 .25rem; font-size: 1.05rem; }
.related-grid small { color: var(--muted); line-height: 1.45; }

.subscribe {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  margin-block: 2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  color: #fff;
  background: linear-gradient(135deg, var(--brown), #6b4836);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.subscribe-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border: 3px solid var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(18, 7, 3, .28);
}
.subscribe h2 { color: #fff; }
.subscribe p:not(.eyebrow) { margin: .45rem 0 0; color: #ecded0; font-size: .9rem; line-height: 1.5; }
.subscribe .eyebrow { color: var(--gold-light); }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.1rem;
  color: var(--brown);
  background: #fff6e6;
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  box-shadow: 0 4px 0 #b9915b;
  text-decoration: none;
  white-space: nowrap;
  font: 700 .82rem/1.2 Arial, sans-serif;
}
.primary-button:hover { color: var(--brown); transform: translateY(2px); box-shadow: 0 2px 0 #b9915b; }

.share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3rem 5rem;
}
.share-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .75rem;
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 3px 0 rgba(0,0,0,.2);
  text-decoration: none;
  font: 700 .72rem/1 Arial, sans-serif;
}
.share-buttons a:hover { color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.share-buttons svg { width: 18px; height: 18px; fill: currentColor; }
.whatsapp { background: #188b52; }
.facebook { background: #2565b3; }
.x-twitter { background: #1d1d1f; }
.telegram { background: #168bc1; }

footer {
  padding: 2rem 1rem;
  color: #e9ddcf;
  background: #2b1c17;
  text-align: center;
  border-top: 4px solid var(--gold);
  font: .77rem/1.6 Arial, sans-serif;
}
footer p { margin: 0; }
footer a { color: var(--gold-light); }

@media (max-width: 850px) {
  body { font-size: 17px; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; padding-block: 2.5rem 4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid a { min-height: 0; }
  .subscribe { grid-template-columns: auto 1fr; }
  .subscribe .primary-button { grid-column: 1 / -1; justify-self: start; }
  .share { align-items: flex-start; flex-direction: column; }
  .share-buttons { justify-content: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; line-height: 1.68; }
  .site-header { min-height: 66px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand strong { font-size: .88rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .portrait { width: min(82%, 330px); justify-self: center; order: -1; }
  .chapter-nav { padding: .85rem; }
  .chapter-nav div { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
  .chapter-nav a { flex: 0 0 auto; }
  .article-card { width: min(100% - 1rem, 1180px); padding: 1.35rem 1.1rem; border-radius: 14px; }
  .section-heading { align-items: flex-start; }
  .section-symbol { width: 32px; height: 32px; }
  .content-section + .content-section { margin-top: 2.5rem; padding-top: 2.4rem; }
  .subscribe { grid-template-columns: 1fr; text-align: center; }
  .subscribe-logo, .subscribe .primary-button { justify-self: center; }
  .share { padding-bottom: 3rem; text-align: center; align-items: center; }
  .share-buttons { justify-content: center; }
  .share-buttons a { flex: 1 1 calc(50% - .55rem); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .chapter-nav, .related, .subscribe, .share, footer { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero-wrap { color: #000; background: #fff; }
  .hero { min-height: 0; grid-template-columns: 1fr 180px; padding: 1rem 0; }
  .hero .eyebrow, .lead, .feast, .breadcrumbs a, .breadcrumbs [aria-current="page"] { color: #000; }
  .article-card { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
}
