:root {
  --verde: #004B26;
  --verde-ink: #0a3322;
  --rosso: #8F050E;
  --parchment: #F7F1E4;
  --parchment-alt: #EFE6D2;
  --ink: #16231B;
  --sage: #5E6E5F;
  --sage-line: #D8CDB4;
  --oro: #A9822E;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --shadow-soft: 0 18px 40px -18px rgba(10, 30, 20, 0.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --parchment: #10190F; --parchment-alt: #17231A; --ink: #EDE6D6;
    --sage: #9FAE9F; --sage-line: #2B3A2A; --verde: #4C9A70; --verde-ink: #DDECD5;
    --rosso: #E2626B; --oro: #D8B067;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--parchment); color: var(--ink);
  font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--verde-ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(3rem, 7vw, 5rem) 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rosso);
  font-weight: 700; margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rosso); }

.btn {
  display: inline-block; background: var(--rosso); color: #FBF3EC; font-weight: 600;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid var(--rosso);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--verde); font-weight: 600;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid var(--verde);
  transition: background .2s ease, transform .2s ease;
}
.btn-outline:hover { background: color-mix(in srgb, var(--verde) 8%, transparent); transform: translateY(-2px); }

/* header */
header.site {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--parchment) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--sage-line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 4.4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 34px; width: auto; }
.brand span.word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--verde-ink); }
nav.links { display: flex; align-items: center; gap: 1.8rem; }
nav.links a { color: var(--ink); font-weight: 600; font-size: .9rem; opacity: .82; transition: opacity .2s ease; }
nav.links a:hover { opacity: 1; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: .4rem; color: var(--verde-ink); }
.mobile-panel { display: none; flex-direction: column; gap: .9rem; padding: 1rem 0 1.4rem; border-top: 1px solid var(--sage-line); }
.mobile-panel.open { display: flex; }
@media (max-width: 780px) {
  nav.links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* hero */
.hero { padding-top: clamp(3.2rem, 8vw, 5.2rem); }
h1.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.14; margin-bottom: 1.2rem; max-width: 22ch; }
.hero-p { font-size: 1.08rem; margin-bottom: 0; max-width: 54ch; color: var(--sage); }

/* blog list */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2.6rem; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card {
  display: block; padding: 1.7rem; border: 1px solid var(--sage-line); border-radius: .75rem;
  background: var(--parchment-alt); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { border-color: var(--rosso); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.post-date { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-bottom: .6rem; display: block; }
.post-card h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.post-card p { font-size: .92rem; color: var(--sage); }
.post-card .readmore { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 700; color: var(--rosso); }

/* article */
article.post { max-width: 66ch; margin: 0 auto; }
.post-meta-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem;
}
.post-meta-row .back-link { margin-bottom: 0; }
.byline { display: flex; align-items: center; gap: .6rem; }
.byline .avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--verde);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}
.byline .who { text-align: right; line-height: 1.35; }
.byline .who .author { display: block; font-size: .85rem; font-weight: 700; color: var(--verde-ink); }
.byline .who .date { display: block; font-size: .78rem; color: var(--sage); }
article.post .post-date { margin: 1.4rem 0 .6rem; }
article.post h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.6rem; }
article.post h2 { font-size: 1.4rem; margin: 2.2rem 0 1rem; color: var(--verde-ink); }
article.post p { font-size: 1.03rem; margin-bottom: 1.1rem; color: var(--ink); }
article.post ul, article.post ol { margin: 0 0 1.1rem 1.3rem; padding: 0; }
article.post li { font-size: 1.03rem; color: var(--ink); margin-bottom: .5rem; list-style: disc; }
article.post strong { color: var(--verde-ink); }
.back-link { display: inline-block; margin-bottom: 2rem; font-size: .9rem; font-weight: 700; color: var(--rosso); }

.post-cta {
  margin-top: 2.6rem; padding: 1.9rem; border-radius: .75rem; background: var(--parchment-alt);
  border: 1px solid var(--sage-line); text-align: center;
}
.post-cta p { margin-bottom: 1rem; font-size: 1.02rem; font-family: var(--font-display); color: var(--verde-ink); }

/* footer */
footer.site { background: var(--verde-ink); color: #D9E4DA; padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.2rem; align-items: start; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid img { height: 32px; margin-bottom: .8rem; }
.footer-grid h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid p { font-size: .88rem; color: #B9CBBB; }
.footer-grid li { margin-bottom: .5rem; font-size: .88rem; }
.footer-grid li a { color: #D9E4DA; }
.footer-grid li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; font-size: .82rem; text-align: center; color: #B9CBBB; }
.footer-bottom a:hover { color: #fff; }
