/* =========================================
   thehumancause.org — shared stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=Cinzel:wght@400;600&display=swap');

/* --- Variables --- */
:root {
  --cream:        #f6f1e9;
  --cream-dark:   #ede6d8;
  --ink:          #221e18;
  --ink-light:    #4a4540;
  --navy:         #1b2a42;
  --gold:         #9a7b2f;
  --gold-light:   #c4a45a;
  --gold-rule:    #c9a84c;
  --border:       #d8ccb8;
  --shadow:       rgba(28, 22, 12, 0.10);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.8;
  min-height: 100vh;
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: 3.2rem; letter-spacing: 0.01em; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; font-style: italic; margin-bottom: 0.4rem; color: var(--gold); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-light); transition: color 0.2s, border-color 0.2s; }
a:hover { color: var(--navy); border-color: var(--navy); }

em { font-style: italic; }
strong { font-weight: 500; color: var(--navy); }

blockquote {
  border-left: 3px solid var(--gold-rule);
  padding: 0.6em 1.4em;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--ink-light);
  font-size: 1.05rem;
}

/* --- Layout --- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header / Nav --- */
.site-header {
  background-color: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold-rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
}

.site-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream);
  border-bottom: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-logo:hover { color: var(--gold-light); border-bottom: none; }

.site-nav {
  display: flex;
  gap: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0 0.85rem;
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #c8bfaf;
  border-bottom: none;
  text-transform: uppercase;
  transition: color 0.2s;
  line-height: 64px;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-light); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: 0.3s;
}

/* --- Gold rule divider --- */
.gold-rule {
  width: 60px;
  height: 2px;
  background: var(--gold-rule);
  margin: 1.4rem 0 2rem;
}

/* --- Page hero --- */
.page-hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ede6d4 0%, var(--cream) 100%);
}

.page-hero__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--navy);
}

.page-hero__sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-light);
  max-width: 640px;
  margin: 1.2rem auto 0;
  line-height: 1.6;
}

/* --- Home hero --- */
.home-hero {
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1b2a42 0%, #2d3f5c 60%, #1b2a42 100%);
}

.home-hero__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.home-hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: var(--gold-light);
  margin-top: 0.8rem;
  margin-bottom: 2.4rem;
  letter-spacing: 0.02em;
}

.home-hero__rule {
  width: 80px;
  height: 1px;
  background: var(--gold-rule);
  margin: 0 auto 2.4rem;
}

.home-hero__question {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: #c8bfaf;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
}

/* --- Main content area --- */
.main-content {
  padding: 4rem 2rem 5rem;
}

/* --- Cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 18px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--shadow); }

.card__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.card__text {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.card__link {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-rule);
  padding-bottom: 1px;
}
.card__link:hover { color: var(--gold); border-color: var(--gold); }

/* --- Paper entries --- */
.paper-list { list-style: none; margin-top: 2rem; }

.paper-entry {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.paper-entry:first-child { border-top: 1px solid var(--border); }

.paper-entry__year {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.paper-entry__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 400;
}

.paper-entry__venue {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--ink-light);
}

.paper-entry__abstract {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-top: 0.4rem;
}

.paper-entry__link {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Media entries (talks/podcasts) --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.6rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.media-card__type {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.media-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.media-card__meta {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: 0.8rem;
}

.media-card__desc {
  font-size: 0.86rem;
  color: var(--ink-light);
  line-height: 1.65;
}

/* --- Section label --- */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

/* --- Prose article --- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 3rem; font-size: 2.1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2.2rem; font-size: 1.45rem; }
.prose p { font-size: 1rem; }

/* --- Fiction page --- */
.fiction-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2a42 50%, #0f2139 100%);
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--gold-rule);
}

.fiction-hero h1 {
  color: var(--cream);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
}

.fiction-hero p {
  color: #9ab0c8;
  max-width: 580px;
  margin: 1.2rem auto 0;
  font-style: italic;
  font-size: 1.1rem;
}

.trilogy-link-box {
  background: var(--navy);
  color: var(--cream);
  padding: 2.2rem 2.4rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-left: 4px solid var(--gold-rule);
}

.trilogy-link-box__label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.4rem;
}

.trilogy-link-box__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--cream);
}

.trilogy-link-box a.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold-rule);
  color: var(--navy);
  padding: 0.7rem 1.4rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  font-weight: 600;
}
.trilogy-link-box a.btn:hover { background: var(--gold-light); border-bottom: none; }

/* --- About page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.about-sidebar {
  position: sticky;
  top: 100px;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.about-photo-placeholder span {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a8aaa;
}

.affiliation-list {
  list-style: none;
  font-size: 0.86rem;
  color: var(--ink-light);
  line-height: 2;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #8a8070;
  font-family: 'Lora', serif;
  background: var(--cream-dark);
}

.site-footer a { color: #8a8070; border-bottom: 1px solid #c0b090; }
.site-footer a:hover { color: var(--gold); }

.site-footer__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.7s ease both; }
.fade-in-2 { animation: fadeInUp 0.7s ease 0.15s both; }
.fade-in-3 { animation: fadeInUp 0.7s ease 0.3s both; }
.fade-in-4 { animation: fadeInUp 0.7s ease 0.45s both; }

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 2.4rem; }
  .page-hero h1 { font-size: 2.6rem; }

  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem 0; }
  .site-nav.open { display: flex; }
  .site-nav a { line-height: 1; padding: 0.9rem 2rem; font-size: 0.9rem; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .about-photo-placeholder { max-width: 260px; }

  .home-hero { padding: 5rem 1.5rem 4rem; }
  .main-content { padding: 3rem 1.5rem 4rem; }
  .page-hero { padding: 3.5rem 1.5rem 3rem; }
}
