/* Women of Malta — The Library. Brand tokens per Women_of_Malta_Brand_Guidelines.md v2. */

:root {
  --cream: #FBF0E0;
  --card: #FCF5E8;
  --red: #C53231;
  --red-dark: #A82826;
  --rose: #D68DA1;
  --rose-deep: #C77488;
  --beige: #C0B194;
  --beige-soft: #E1D9C4;
  --cocoa: #2A1A14;
  --cocoa-mute: #5A4A40;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--cocoa);
  font-family: 'Inter', -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

em.accent, .accent {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* ---------- header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.wordmark {
  font-weight: 800; font-size: 22px; color: var(--cocoa); text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 600; font-size: 1.06em;
}
.wordmark .dot { color: var(--red); font-style: normal; }
.head-cta {
  font: 600 14px/1 'Inter', sans-serif; color: var(--cocoa); text-decoration: none;
  border: 2px solid var(--cocoa); border-radius: 999px; padding: 12px 20px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: background .15s ease;
}
.head-cta:hover { background: var(--beige-soft); }

/* ---------- layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 24px 24px 0; }
.wide { max-width: 1080px; }

.breadcrumb { font-size: 13px; color: var(--cocoa-mute); margin-bottom: 28px; }
.breadcrumb a { color: var(--cocoa-mute); text-decoration: none; border-bottom: 1px solid var(--beige); }
.breadcrumb a:hover { color: var(--cocoa); }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rose-deep); margin-bottom: 14px;
}

h1 {
  font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
h1 em, h2 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 600; font-size: 1.08em;
}
@media (min-width: 720px) { h1 { font-size: 46px; } }

/* The answer-first block — the passage built to be quoted. */
.answer-first {
  font-size: 19px; line-height: 1.55; font-weight: 500; margin-bottom: 16px;
}

.verified {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--cocoa-mute);
  background: var(--beige-soft); border-radius: 999px; padding: 6px 14px; margin: 4px 0 36px;
}

h2 { font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; margin: 44px 0 14px; }
h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
p { margin-bottom: 14px; }
p.small, .small { font-size: 13px; color: var(--cocoa-mute); }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }
a { color: var(--cocoa); text-decoration-color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
strong { font-weight: 700; }

/* ---------- fact tables ---------- */
.fact-table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--card); border: 1px solid var(--beige-soft); border-radius: 16px;
  overflow: hidden;
}
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--beige-soft); vertical-align: top; }
th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa-mute); background: var(--beige-soft); }
tr:last-child td { border-bottom: none; }

/* ---------- callouts ---------- */
.callout {
  background: var(--card); border: 1px solid var(--beige-soft); border-radius: 16px;
  padding: 20px 22px; margin: 20px 0 24px;
  box-shadow: 0 8px 24px rgba(42, 26, 20, .06);
}
.callout.rose { background: color-mix(in srgb, var(--rose) 16%, var(--cream)); border-color: color-mix(in srgb, var(--rose) 40%, var(--cream)); }
.callout .label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rose-deep); margin-bottom: 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: color-mix(in srgb, var(--rose) 22%, var(--cream));
  border-radius: 20px; padding: 36px 28px; margin: 56px 0 8px; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { max-width: 480px; margin: 0 auto 22px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--cream); text-decoration: none;
  font: 600 16px/1 'Inter', sans-serif; border-radius: 999px;
  padding: 16px 30px; min-height: 48px; transition: background .15s ease;
}
.btn-primary:hover { background: var(--red-dark); }
.cta-band .kit-line { font-size: 13px; color: var(--cocoa-mute); margin: 14px auto 0; }
.cta-band .kit-line a { color: var(--cocoa-mute); }

/* ---------- sources ---------- */
.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--beige) 50%, transparent); }
.sources h2 { font-size: 15px; margin: 0 0 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--cocoa-mute); }
.sources ol { font-size: 13px; color: var(--cocoa-mute); margin-left: 18px; }
.sources a { color: var(--cocoa-mute); overflow-wrap: anywhere; }

/* ---------- related ---------- */
.related { margin-top: 40px; }
.related h2 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--cocoa-mute); margin-bottom: 14px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }

/* ---------- hub index cards ---------- */
.hub-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0 8px; }
@media (min-width: 720px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  display: block; background: var(--card); border: 1px solid var(--beige-soft);
  border-radius: 16px; padding: 22px; text-decoration: none; color: var(--cocoa);
  box-shadow: 0 8px 24px rgba(42, 26, 20, .06); transition: border-color .15s ease;
}
.hub-card:hover { border-color: var(--rose-deep); }
.hub-card h3 { margin: 0 0 6px; font-size: 17px; }
.hub-card p { margin: 0; font-size: 14px; color: var(--cocoa-mute); }
.hub-section { margin-top: 44px; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--cocoa); color: var(--cream); margin-top: 72px;
  padding: 44px 24px 36px;
}
.site-foot .inner { max-width: 720px; margin: 0 auto; }
.site-foot .wordmark { color: var(--cream); }
.site-foot .wordmark .dot { color: var(--red); }
.site-foot p { font-size: 13px; color: color-mix(in srgb, var(--cream) 75%, var(--cocoa)); margin: 14px 0 0; }
.site-foot a { color: color-mix(in srgb, var(--cream) 85%, var(--cocoa)); }
.site-foot .disclaimer { font-size: 12px; line-height: 1.6; }
