/* Alberighi.com — shared design system */

:root {
  --ink: #201c16;
  --ink-soft: #4a4238;
  --muted: #79705f;
  --cream: #faf7f2;
  --cream-alt: #f2ead9;
  --card: #ffffff;
  --line: #e7ddc9;
  --gold: #a97416;
  --gold-light: #c98d2a;
  --gold-dark: #8a5e10;
  --charcoal: #201c16;
  --charcoal-soft: #2c261e;
  --cream-80: rgba(250, 247, 242, 0.8);
  --maxw: 1080px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.62;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
  font-family: ui-serif, Georgia, serif;
}
nav.links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.nav-links-inner { display: flex; gap: 22px; align-items: center; }
nav.links a {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}
nav.links a:hover { color: var(--gold-dark); text-decoration: none; }
nav.links a.active { color: var(--gold-dark); }
@media (max-width: 760px) {
  nav.links .nav-links-inner { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: rgba(32,28,22,0.22); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-outline-invert { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-outline-invert:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream-alt), var(--cream));
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 64px; }
.eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  max-width: 780px;
}
.hero .lede {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 620px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--cream-alt); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 6px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1rem; }
.section-foot { margin-top: 32px; }

/* Grid + Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(169,116,22,0.35); box-shadow: 0 8px 24px rgba(32,28,22,0.06); }
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card:hover { text-decoration: none; }
a.card:hover h3 { color: var(--gold-dark); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card .meta { color: var(--gold-dark); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.card p.desc { color: var(--muted); font-size: 0.96rem; }

/* Placeholder / "edit me" content blocks */
.placeholder-card {
  border: 1.5px dashed rgba(169,116,22,0.45);
  background: rgba(169,116,22,0.05);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.placeholder-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.placeholder-card p { color: var(--ink-soft); font-size: 0.94rem; }
.placeholder-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.placeholder-card li { margin-bottom: 4px; }

/* Family / person cards */
.person-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.person-card .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-serif, Georgia, serif; font-weight: 700; font-size: 1.3rem;
}
.person-card h3 { font-size: 1.25rem; }
.person-card .role { color: var(--gold-dark); font-size: 0.85rem; font-weight: 600; }
.person-card p.desc { color: var(--muted); font-size: 0.95rem; }

/* News list */
.news-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 0; }
.news-item .date-badge {
  flex: none;
  width: 92px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding-top: 3px;
}
.news-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.news-item p { color: var(--muted); font-size: 0.94rem; }

/* Timeline (story page) */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; }
.timeline-item { position: relative; padding: 4px 0 32px 28px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
}
.timeline-item .year { color: var(--gold-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px; }

/* Prose + long-form content */
.prose { max-width: 680px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }

/* Pull quote — for verse and primary-source quotations */
.pullquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 24px 0;
}
.pullquote .verse {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
}
.pullquote .translation {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 12px;
}
.pullquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
}

/* Note / caveat card — real content with a caveat, not a placeholder */
.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.note-card h3 { font-size: 1.02rem; margin-bottom: 10px; }
.note-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.note-card p:last-child { margin-bottom: 0; }

/* Source list */
.sources { list-style: none; padding: 0; margin: 0; }
.sources li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.sources li:last-child { border-bottom: none; }
.sources a { font-weight: 600; }

/* Fact row — key/value pairs */
.facts { border-top: 1px solid var(--line); margin-top: 20px; }
.facts div {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.facts dt {
  flex: none;
  width: 150px;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 3px;
}
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 620px) {
  .facts div { flex-direction: column; gap: 4px; }
  .facts dt { width: auto; }
}

/* Contact cards */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: center; }
.contact-card .avatar { margin: 0 auto 14px; }
.contact-card a.mail { display: block; margin-top: 10px; font-weight: 600; }

/* CTA banner */
.cta-banner {
  background: var(--charcoal);
  color: #fff;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-banner p { color: rgba(255,255,255,0.75); margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .cta-row { justify-content: center; margin-top: 26px; }

/* Footer */
footer.site-footer {
  background: var(--charcoal);
  color: rgba(250,247,242,0.8);
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.footer-inner .brand { color: #fff; margin-bottom: 10px; }
.footer-inner .brand .mark { background: var(--gold); color: var(--charcoal); }
.footer-tagline { font-size: 0.88rem; color: rgba(250,247,242,0.6); max-width: 240px; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 0.88rem;
  color: rgba(250,247,242,0.75);
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(250,247,242,0.12);
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(250,247,242,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
