/* ============================================================
   QuoteWiki — Global Styles
   ============================================================ */

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

:root {
  --primary:      #1a3a5c;
  --primary-light:#2563a8;
  --accent:       #c0392b;
  --accent-light: #e74c3c;
  --bg:           #f4f6f8;
  --surface:      #ffffff;
  --border:       #dce1e7;
  --text:         #1c2b3a;
  --text-muted:   #5a6a7a;
  --quote-bg:     #fdf8f0;
  --quote-border: #c0392b;
  --radius:       8px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: .5px;
  text-decoration: none;
}
.logo-icon {
  font-size: 2rem;
  color: #f0c040;
  line-height: 1;
}
.logo-text { font-family: sans-serif; }

.nav { display: flex; gap: 24px; }
.nav a {
  color: rgba(255,255,255,.85);
  font-family: sans-serif;
  font-size: .9rem;
  letter-spacing: .3px;
  transition: color .2s;
}
.nav a:hover { color: #fff; text-decoration: none; }

/* ---- BREADCRUMB ---- */
.breadcrumb-bar {
  background: #e8ecf0;
  border-bottom: 1px solid var(--border);
  font-family: sans-serif;
  font-size: .82rem;
  color: var(--text-muted);
  padding: 8px 0;
}
.breadcrumb-bar a { color: var(--primary-light); }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar span { color: var(--text); font-weight: 600; }

/* ---- LAYOUT ---- */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 48px;
  align-items: start;
}

/* ---- PERSON CARD (aside) ---- */
.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 20px;
  position: sticky;
  top: 80px;
  text-align: center;
}

.avatar-wrap { margin-bottom: 16px; }
.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  line-height: 100px;
  margin: 0 auto;
  border: 4px solid var(--border);
}

.avatar-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 0 auto;
  border: 4px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.person-name {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.person-meta {
  font-family: sans-serif;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-style: italic;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: .82rem;
  text-align: left;
}
.info-table tr { border-top: 1px solid var(--border); }
.info-table th {
  color: var(--text-muted);
  font-weight: 600;
  padding: 7px 4px;
  width: 48%;
  vertical-align: top;
}
.info-table td {
  color: var(--text);
  padding: 7px 4px;
  vertical-align: top;
}

/* ---- CONTENT AREA ---- */
.page-title {
  font-size: 1.85rem;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.page-intro {
  color: var(--text-muted);
  font-size: .97rem;
  margin-bottom: 28px;
  font-family: sans-serif;
  line-height: 1.65;
}

/* ---- FEATURED QUOTE BLOCK ---- */
.featured-quote-block {
  background: var(--quote-bg);
  border: 1px solid #e5d8c0;
  border-left: 6px solid var(--quote-border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.fq-label {
  font-family: sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 14px;
}

.featured-quote {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}
.featured-quote p {
  font-size: 1.45rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.55;
  quotes: '\00AB' '\00BB';
}

.fq-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.fq-author {
  font-family: sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
}
.fq-date {
  font-family: sans-serif;
  font-size: .82rem;
  color: var(--text-muted);
  padding: 2px 10px;
  background: #f0e8d8;
  border-radius: 20px;
}

.fq-context {
  border-top: 1px solid #e5d8c0;
  margin-top: 20px;
  padding-top: 18px;
}
.fq-context h3 {
  font-family: sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.fq-context p {
  font-size: .93rem;
  color: var(--text);
  margin-bottom: 10px;
  font-family: sans-serif;
  line-height: 1.65;
}
.fq-context p:last-child { margin-bottom: 0; }

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: 1.3rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ---- QUOTES GRID ---- */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.qc-mark {
  font-size: 2.2rem;
  color: #d0d8e0;
  line-height: 1;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}
.qc-text {
  font-style: italic;
  font-size: .97rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}
.qc-year {
  font-family: sans-serif;
  font-size: .78rem;
  color: #fff;
  background: var(--primary-light);
  border-radius: 12px;
  padding: 2px 10px;
  display: inline-block;
}

/* ---- SOURCES ---- */
.sources-block {
  background: #eef1f4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: sans-serif;
}
.sources-block h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.sources-block ul {
  padding-left: 20px;
}
.sources-block li {
  font-size: .87rem;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.5;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  margin-top: 40px;
  padding: 22px 0;
  font-family: sans-serif;
  font-size: .83rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a {
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .person-card { position: static; }
  .quotes-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
