/* ============================================================
   ZINI GEDIĞI MEMORIAL SITE — v1
   Sober, respectful, document-oriented design
   ============================================================ */

:root {
  --bg: #f7f4ef;
  --bg-dark: #1c1a17;
  --text: #1c1a17;
  --text-light: #5a554f;
  --text-on-dark: #e8e3da;
  --accent: #7a2a2a;
  --border: rgba(28, 26, 23, 0.15);
  --border-dark: rgba(232, 227, 218, 0.15);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #ede8df 100%);
  padding: 80px 32px;
}

.hero-date {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-location {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 48px;
}

.hero-toll {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text);
}

/* ============ MEMORIAL INTRO ============ */
.memorial {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.memorial-text {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}

/* ============ AUTHOR NOTE ============ */
.author-note {
  padding: 80px 0;
  background: #efeae0;
}

.author-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.author-photo {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dark);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}

.author-photo-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: 2px;
}

.author-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.author-message {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  border: none;
  padding: 0;
  background: transparent;
}

.author-signature {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}

.author-signature strong {
  color: var(--text);
  font-size: 16px;
}

.author-signature span {
  font-style: italic;
  opacity: 0.8;
  font-size: 13px;
}

@media (max-width: 700px) {
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .author-photo {
    margin: 0 auto;
    width: 140px;
    height: 140px;
  }
}

/* ============ CONTENT SECTIONS ============ */
.content-section { padding: 100px 0; }

.content-section.dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.section-lead {
  font-size: 19px;
  color: var(--text-light);
  max-width: 720px;
  margin-bottom: 48px;
}

.content-section.dark .section-lead { color: var(--text-on-dark); opacity: 0.75; }

/* ============ TIMELINE ============ */
.timeline {
  border-left: 2px solid var(--border-dark);
  padding-left: 32px;
  max-width: 800px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-on-dark);
  border: 2px solid var(--bg-dark);
}

.timeline-item.highlight::before {
  background: var(--accent);
  width: 18px;
  height: 18px;
  left: -43px;
  top: 6px;
}

.timeline-date {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-on-dark);
  opacity: 0.6;
  margin-bottom: 8px;
}

.timeline-item.highlight .timeline-date {
  color: var(--accent);
  opacity: 1;
  font-weight: 600;
}

.timeline-item p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

/* ============ TWO COLUMN ============ */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.two-column h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
}

.two-column p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ============ ARCHIVE GRID ============ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.archive-card {
  background: rgba(232, 227, 218, 0.05);
  border: 1px solid var(--border-dark);
  padding: 40px 24px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}

.archive-card:hover {
  transform: translateY(-4px);
  background: rgba(232, 227, 218, 0.08);
}

.archive-placeholder {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.archive-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 8px;
}

.archive-count {
  font-size: 13px;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

/* ============ TESTIMONY ============ */
.testimony-placeholder {
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  background: rgba(122, 42, 42, 0.04);
  margin-top: 32px;
  max-width: 720px;
}

.testimony-placeholder p {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
}

.testimony-placeholder cite {
  font-style: normal;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

/* ============ BOOK PROMO ============ */
.book-promo {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
}

.book-text h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.2;
}

.book-text p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.cta:hover { opacity: 0.85; }

.cover-placeholder {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #2a2825 0%, #1c1a17 100%);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-on-dark);
  opacity: 0.5;
  padding: 24px;
}

/* ============ CONTACT ============ */
.contact-email {
  text-align: center;
  margin-top: 24px;
}

.contact-email a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 48px 0;
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.footer-note {
  font-family: var(--serif);
  font-style: italic;
  opacity: 0.5;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 48px; }
  .section-title { font-size: 36px; }
  .two-column, .book-promo { grid-template-columns: 1fr; gap: 32px; }
  .memorial-text { font-size: 20px; }
  .timeline-item p { font-size: 17px; }
}
