/* ============================================================
   Debórah Dwork — Site Stylesheet
   Aesthetic: warm editorial / Saints & Liars reference
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Playfair+Display+SC:wght@400;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Josefin+Sans:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:            #FAF8F3;
  --bg-alt:        #F3EDE2;
  --bg-rule:       #E8E0D4;
  --ink:           #1C1914;
  --ink-mid:       #4A4038;
  --ink-muted:     #82746C;
  --rule:          #CEC4B6;
  --rule-dark:     #A8967E;
  --purple:        #5C2D8C;
  --purple-hover:  #7340A8;
  --warm:          #8A5C30;
  --serif:         'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif-sc:      'Playfair Display SC', Georgia, serif;
  --sans:          'Josefin Sans', 'Gill Sans', Optima, sans-serif;
  --body:          'Source Serif 4', Georgia, 'Times New Roman', serif;
  --max:           860px;
  --pad-x:         clamp(1.25rem, 5vw, 3rem);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-hover); text-decoration: underline; text-decoration-color: var(--rule-dark); }

/* ── Header / Navigation ────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--pad-x);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0 0.75rem;
  gap: 0.75rem;
}

.site-logo {
  font-family: var(--serif-sc);
  font-size: clamp(1.595rem, 3.625vw, 1.96rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.site-logo:hover { color: var(--purple); text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* ── Page Shell ─────────────────────────────────────────────── */
.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--pad-x) 6rem;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 2.5rem 0 0.9rem;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  margin: 2rem 0 0.6rem;
}

h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1.3rem; }

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

ul, ol {
  padding-left: 1.6rem;
  margin-bottom: 1.3rem;
}
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* ── Ornamental Rule ────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--rule-dark);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Pull Quotes / Blockquotes ──────────────────────────────── */
blockquote {
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--purple);
  background: var(--bg-alt);
}

blockquote p {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 0.75rem;
}
blockquote p:last-of-type { margin-bottom: 0; }

blockquote cite,
blockquote footer {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

/* ── Image Blocks ────────────────────────────────────────────── */
.img-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.img-block {
  display: flex;
  flex-direction: column;
}

.img-block img {
  width: 100%;
  border: 1px solid var(--bg-rule);
}

.img-caption {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
}

.img-float-right {
  float: right;
  margin: 0.25rem 0 1.5rem 2rem;
  max-width: 260px;
  width: 40%;
}

.img-float-right img { border: 1px solid var(--bg-rule); }

.img-float-left {
  float: left;
  margin: 0.25rem 2rem 1.5rem 0;
  max-width: 260px;
  width: 40%;
}
.img-float-left img { border: 1px solid var(--bg-rule); }

.clearfix::after { content: ''; display: table; clear: both; }

/* ── Section Intro Label ────────────────────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Book Entry ──────────────────────────────────────────────── */
.book-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  margin: 3rem 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.book-entry:last-child { border-bottom: none; }

.book-cover img {
  border: 1px solid var(--bg-rule);
  box-shadow: 0 2px 12px rgba(28,25,20,0.10);
}

.book-meta .pub-info {
  font-family: var(--sans);
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Doctoral Student Card ───────────────────────────────────── */
.student-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.student-card {
  display: grid;
  grid-template-columns: 202px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.student-card:last-child { border-bottom: none; }

.student-portrait img {
  border-radius: 2px;
  border: 1px solid var(--bg-rule);
  width: 202px;
  height: 202px;
  object-fit: cover;
}

.student-info h2 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  font-style: normal;
  margin: 0 0 0.3rem;
}

.student-info .dissertation {
  font-size: 0.92em;
  color: var(--ink-mid);
  margin-bottom: 0.5rem;
}

.student-info .current-position {
  font-family: var(--sans);
  font-size: 0.78 rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ── Films List ──────────────────────────────────────────────── */
.films-list {
  list-style: none;
  padding: 0;
}

.films-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.97rem;
}

.films-list li:first-child { border-top: 1px solid var(--rule); }

/* ── Chapters List ───────────────────────────────────────────── */
.chapters-list {
  list-style: none;
  padding: 0;
}

.chapters-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.6;
}
.chapters-list li:first-child { border-top: 1px solid var(--rule); }

/* ── Initiatives List ────────────────────────────────────────── */
.initiatives-section { margin-bottom: 2.5rem; }
.initiatives-section h2 { border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
  padding: 3rem var(--pad-x);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif-sc);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
}

.footer-nav a {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-nav a:hover { color: var(--purple); text-decoration: none; }

.footer-social {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-social a {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-social a:hover { color: var(--purple); text-decoration: none; }

.footer-copy {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.footer-email a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
}

/* ── Awards / Honors Pill ────────────────────────────────────── */
.honor-pill {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--purple);
  padding: 0.4rem 0.85rem;
  font-family: var(--sans);
  font-size: 1.9 rem;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  margin: 0.3rem 0.3rem 0.3rem 0;
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .book-entry {
    grid-template-columns: 1fr;
  }
  .book-cover {
    max-width: 140px;
  }
  .student-card {
    grid-template-columns: 1fr;
  }
  .img-float-right,
  .img-float-left {
    float: none;
    margin: 1.5rem 0;
    max-width: 100%;
    width: 100%;
  }
  .img-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .img-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HERO COMPONENT
   ============================================================ */

/* ── Standard Page Hero (image band) ───────────────────────── */
.page-hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  height: clamp(220px, 32vw, 400px);
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.72;
  transition: opacity 0.4s ease;
}

/* Fade-to-page-bg at bottom */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 20, 0.08) 0%,
    rgba(28, 25, 20, 0.18) 55%,
    var(--bg) 100%
  );
  pointer-events: none;
}

/* ── About Hero — editorial split layout ───────────────────── */
.about-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}

.about-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3rem;
  align-items: end;
}

.about-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
}

.about-hero-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--purple);
  margin: 0;
}

.about-hero-title {
  font-family: var(--body);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.5;
  max-width: 460px;
}

.about-hero-portrait img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--bg-rule);
  box-shadow: 0 4px 20px rgba(28,25,20,0.12);
  display: block;
}

@media (max-width: 580px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem var(--pad-x);
  }
  .about-hero-portrait {
    order: -1;
    max-width: 140px;
  }
  .about-hero-portrait img {
    width: 140px;
    height: 180px;
  }
}

/* ── Hero Caption (optional) ────────────────────────────────── */
.hero-caption {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-style: italic;
  text-align: right;
  padding: 0.35rem var(--pad-x) 0;
  max-width: var(--max);
  margin: 0 auto;
}

/* ============================================================
   CURRICULUM VITAE
   ============================================================ */

.cv-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--rule);
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cv-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.cv-download-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--purple);
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.cv-download-btn:hover {
  background: var(--purple);
  color: #fff;
  text-decoration: none;
}

/* CV Row: label + content */
.cv-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.cv-row:last-child { border-bottom: none; }

.cv-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  padding-top: 0.15rem;
  line-height: 1.5;
}

.cv-content { }

.cv-content h3 {
  font-family: var(--serif);
  font-size: 1.5 rem;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.cv-content .cv-sub {
  font-family: var(--body);
  font-size: 1.2 rem;
  font-style: italic;
  color: var(--ink-mid);
  display: block;
  margin-bottom: 0.15rem;
}

.cv-content .cv-dates {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  display: block;
}

.cv-entry {
  margin-bottom: 1.4rem;
}

.cv-entry:last-child { margin-bottom: 0; }

.cv-content ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

.cv-content ul li {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  line-height: 1.55;
}

.cv-book-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-book-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  text-indent: -1rem;
}

@media (max-width: 600px) {
  .cv-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .cv-label {
    font-size: 1.0rem;
  }
}

/* ── Print styles for CV ────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .about-hero,
  .page-hero,
  .hero-caption,
  .ornament,
  .cv-download-btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .page-main {
    padding: 0;
    max-width: 100%;
  }

  h1 { color: #000; font-size: 18pt; }
  h2 { font-size: 13pt; }

  .cv-section {
    margin-top: 0;
    padding-top: 1rem;
  }

  .cv-row {
    padding: 0.8rem 0;
    break-inside: avoid;
  }

  a { color: #000; text-decoration: none; }

  blockquote, .honor-pill { display: none; }
}
