/* mauriciogattobellora.com — editorial stylesheet
   Accent: navy #2C5F8A. Background: white / very light grey.
   Type: serif body (editorial), sans-serif UI/headings.
*/

:root {
  --navy: #2C5F8A;
  --navy-dark: #1F4A6E;
  --navy-tint: #E9EFF5;
  --ink: #1A1A1A;
  --ink-soft: #444;
  --ink-fade: #6E6E6E;
  --rule: #DCDCDC;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F4;
  --measure: 38rem;        /* readable column width */
  --measure-wide: 64rem;   /* wider grids */
  --serif: "Source Serif Pro", "Source Serif 4", "Charter", "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", "Helvetica", "Arial", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, .nav-brand, .meta, .eyebrow, .pillar h3, .button, nav, footer {
  font-family: var(--sans);
}

h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2 { font-size: 1.75rem; line-height: 1.25; font-weight: 600; margin: 2.5em 0 0.6em; }
h3 { font-size: 1.25rem; line-height: 1.3;  font-weight: 600; margin: 2em 0 0.5em; }
h4 { font-size: 1.05rem; font-weight: 600; margin: 1.6em 0 0.4em; }

p { margin: 0 0 1.1em; }

a { color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(44,95,138,0.3); transition: border-color 0.15s, color 0.15s; }
a:hover { color: var(--navy-dark); border-bottom-color: var(--navy-dark); }

a.bare { border-bottom: none; }

blockquote {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 2px solid var(--navy);
  padding: 0.2em 0 0.2em 1.4em;
  margin: 1.8em 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }

::selection { background: var(--navy); color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: var(--measure-wide); margin: 0 auto; padding: 0 1.5rem; }
.read { max-width: var(--measure); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(255,255,255,0.92);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.nav-brand {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink); border-bottom: none;
}
.nav-brand .name { color: var(--ink); }
.nav-brand .dot { color: var(--navy); }
.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: none;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }

/* mobile nav */
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
  .nav-links { gap: 1rem; font-size: 0.85rem; }
}

/* ---------- hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 3rem 0 2.5rem; }
  h1 { font-size: 2rem; }
}
.hero-name {
  font-family: var(--sans);
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.4em;
}
.hero-tagline {
  font-style: italic;
  color: var(--navy);
  font-size: 1.15rem;
  margin: 0 0 1.5em;
  font-family: var(--serif);
}
.hero-lede { font-size: 1.1rem; line-height: 1.65; margin-bottom: 1.5em; }
.hero-cta { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-fade); margin-bottom: 0.4em; }
.hero-links { font-family: var(--sans); font-size: 1rem; }
.hero-links a { margin-right: 0.8rem; font-weight: 500; }
.hero-photo { width: 100%; border-radius: 2px; box-shadow: 0 18px 50px -25px rgba(0,0,0,0.25); }
.hero-photo-wrap { position: relative; }

/* ---------- pillars ---------- */
.pillars {
  padding: 4rem 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 820px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars { padding: 3rem 0; }
}
.pillar h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.pillar p { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- featured writing / cards ---------- */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--sans);
  font-size: 1.75rem;
  margin: 0 0 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; gap: 1.5rem; } }

.card {
  display: block;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: inherit;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--navy); transform: translateY(-2px); }
.card-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.card-title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.card-teaser { font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); margin: 0; font-style: italic; }
.card-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-fade); margin-top: 0.8rem; }

/* ---------- about / article body ---------- */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.page-eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.page-title {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.page-deck {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.5em;
  line-height: 1.5;
}

.figure { margin: 3rem 0; }
.figure img { width: 100%; height: auto; border-radius: 2px; }
.figure figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-fade);
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}

.figure.full {
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  max-width: 100vw;
}
.figure.wide img { max-width: 100%; }

.article-body { padding: 3rem 0 5rem; }
.article-body p { font-size: 1.0625rem; }
.article-body h2 { color: var(--ink); }
.article-body h3 { color: var(--navy); }
.article-body img { max-width: 100%; height: auto; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body strong { color: var(--ink); }

.byline {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-fade);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.byline strong { color: var(--ink); font-weight: 500; }

/* ---------- press ---------- */
.press-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  margin: 3rem 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (max-width: 820px) { .press-feature { grid-template-columns: 1fr; gap: 1.5rem; } }
.press-feature img {
  width: 100%; border: 1px solid var(--rule);
  box-shadow: 0 12px 32px -18px rgba(0,0,0,0.25);
}
.press-feature .lang {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.press-list { padding-left: 0; list-style: none; }
.press-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.press-list li:last-child { border-bottom: none; }
.press-list .lang-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-right: 0.7rem;
}

.press-section-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}

/* ---------- consulting / contact ---------- */
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 2.5rem;
  margin: 3rem 0;
  border-radius: 2px;
}
.contact-card a { font-weight: 500; }

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.button:hover { background: var(--navy-dark); color: #fff; }

/* ---------- research / citations ---------- */
.citation {
  background: var(--bg-soft);
  border-left: 3px solid var(--navy);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.citation .authors { font-weight: 500; color: var(--ink); display: block; margin-bottom: 0.3em; }
.citation .title { font-style: italic; display: block; margin-bottom: 0.3em; }
.citation .source { color: var(--ink-fade); font-family: var(--sans); font-size: 0.85rem; display: block; }
.citation .note { color: var(--ink-fade); font-family: var(--sans); font-size: 0.85rem; margin-top: 0.6rem; display: block; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin: 0 0 0.7rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 0.92rem; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink-soft); border-bottom: none; }
.site-footer a:hover { color: var(--navy); }
.site-footer .colophon {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-fade);
}

/* ---------- placeholder image ---------- */
.placeholder-photo {
  background: var(--bg-soft);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center; justify-content: center;
  color: var(--ink-fade);
  font-family: var(--sans);
  font-size: 0.85rem;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 320px;
}

/* small utilities */
.center { text-align: center; }
.muted { color: var(--ink-fade); }
.sans { font-family: var(--sans); }
.small { font-size: 0.9rem; }
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-tint);
  padding: 0.2em 0.6em;
  border-radius: 2px;
  margin-right: 0.4em;
  border: none;
}
