/* Nell'Essenziale — shabby / country-chic editorial theme
   Warm paper base, dusty-rose accent (carried over from the original site's
   #cc8aa4), sage secondary. Serif display + humanist sans body. */

:root {
  --paper:      #fbf8f4;
  --paper-2:    #f4eee6;
  --ink:        #3a332e;
  --ink-soft:   #6b615a;
  --ink-faint:  #9a9088;
  --rose:       #b8748c;
  --rose-deep:  #96566d;
  --rose-wash:  #f6e9ee;
  --sage:       #8a9a86;
  --sage-wash:  #eef1ea;
  --rule:       #e2d8cc;
  --shadow:     0 2px 4px rgba(90,70,60,.04), 0 8px 24px rgba(90,70,60,.07);
  --shadow-lg:  0 4px 8px rgba(90,70,60,.05), 0 16px 48px rgba(90,70,60,.10);
  --radius:     14px;
  --measure:    68ch;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* faint linen tooth so large cream areas don't read as flat */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(184,116,140,.045), transparent 42%),
    radial-gradient(circle at 85% 8%, rgba(138,154,134,.05), transparent 38%);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rose); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--rose-deep);
  color: #fff; padding: .6rem 1rem; z-index: 99; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: rgba(251,248,244,.92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  justify-content: space-between; padding: .85rem 0;
}
.brand {
  font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600; letter-spacing: .01em; color: var(--ink);
  text-decoration: none; line-height: 1.1; white-space: nowrap;
}
.brand span { color: var(--rose); }
.brand small {
  display: block; font-family: var(--body); font-size: .625rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint);
  font-weight: 600; margin-top: .15rem;
}
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.15rem; align-items: center; }
.nav a {
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); text-decoration: none;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--rose-deep); border-bottom-color: var(--rose);
}
.nav__toggle { display: none; }

/* ---------- shared blocks ---------- */
.breadcrumb {
  font-size: .8125rem; color: var(--ink-faint); padding: 1.25rem 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--rule); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose-deep); text-decoration: underline; }

.ornament {
  display: block; width: 100%; max-width: 190px; height: 14px; margin: 2.5rem auto;
  color: var(--rose);
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -.01em; margin: .4em 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin: 2.2em 0 .6em; }
h3 { font-size: clamp(1.22rem, 2.5vw, 1.5rem); margin: 1.9em 0 .5em; }
h4 { font-size: 1.1rem; margin: 1.6em 0 .4em; }

/* ---------- article ---------- */
.article { padding-bottom: 3rem; }
.article__head { max-width: var(--measure); margin: 0 auto; text-align: center; padding-top: .5rem; }
.kicker {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--rose); margin: 1.5rem 0 0;
}
.dek { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; margin: 0 auto 1.2rem; }
.byline {
  font-size: .8125rem; color: var(--ink-faint); letter-spacing: .04em;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
  display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap;
}
.hero { margin: 2rem auto 2.5rem; max-width: 900px; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

.prose { max-width: var(--measure); margin: 0 auto; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin: 2rem auto; width: 100%;
}
.prose figure { margin: 2rem 0; }
.prose figcaption {
  font-size: .8125rem; color: var(--ink-faint); text-align: center;
  margin-top: .6rem; font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  margin: 2rem 0; padding: .3rem 0 .3rem 1.4rem;
  border-left: 3px solid var(--rose); color: var(--ink-soft);
  font-family: var(--display); font-size: 1.2rem; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: .6rem .75rem; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 700; }
.prose a { font-weight: 600; }

.table-scroll { overflow-x: auto; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.75rem; margin: 2rem 0 0; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__cat { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--rose); }
.card__title { font-family: var(--display); font-size: 1.25rem; margin: 0; line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--rose-deep); }
.card__excerpt { font-size: .9375rem; color: var(--ink-soft); margin: 0; }

/* ---------- homepage ---------- */
.hero-panel {
  text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0 1rem;
}
.hero-panel h1 { margin-top: .2em; }
.hero-panel .dek { font-size: 1.1875rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 3.25rem 0 0; padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule); flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; text-decoration: none; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pills a {
  display: inline-block; font-size: .875rem; text-decoration: none;
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--rule);
  background: #fff; color: var(--ink-soft); font-weight: 600;
}
.pills a:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--rose-wash); }

/* ---------- footer ---------- */
.footer {
  margin-top: 4rem; border-top: 1px solid var(--rule);
  background: var(--paper-2); padding: 2.75rem 0 2rem;
  font-size: .9375rem; color: var(--ink-soft);
}
.footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h3 { font-family: var(--body); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin: 0 0 .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: .45rem; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--rose-deep); text-decoration: underline; }
.footer__base {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8125rem; color: var(--ink-faint);
}

/* ---------- 404 / notice ---------- */
.notice { text-align: center; padding: 4rem 0; max-width: 56ch; margin: 0 auto; }

@media (max-width: 720px) {
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .nav { gap: .2rem .85rem; }
  .article__head { text-align: left; }
  .byline { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

@media print {
  .masthead, .footer, .breadcrumb, .nav { display: none; }
  body { background: #fff; }
}
