@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@400;500;600;700&family=Rozha+One&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --paper-card: #fffdf9;
  --ink: #20231d;
  --muted: #5e6658;
  --line: #ddd4c4;
  --line-strong: #c8bdab;
  --accent: #8b3a22;
  --accent-soft: #f4ede0;
  
  --font-serif-dev: 'Noto Serif Devanagari', Georgia, serif;
  --font-display-dev: 'Rozha One', 'Noto Serif Devanagari', Georgia, serif;
  --font-sans-dev: 'Mukta', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif-dev);
  font-size: 1.05rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

/* Header & Navigation */
.site-nav {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans-dev);
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.nav-back:hover {
  color: var(--ink);
}

.nav-tag {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  margin-bottom: 48px;
  text-align: center;
  padding: 20px 0 10px;
}

.hero-subtitle-top {
  margin: 0 0 10px;
  font-family: var(--font-sans-dev);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-display-dev);
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-epithet {
  margin: 0 auto 28px;
  font-family: var(--font-serif-dev);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.6;
}

/* Hero Photo Card */
.hero-photo-wrapper {
  margin: 0 auto 36px;
  max-width: 580px;
}

.hero-photo-card {
  margin: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(32, 35, 29, 0.04);
}

.hero-photo-card img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
  background: var(--accent-soft);
}

.photo-placeholder {
  width: 100%;
  height: 380px;
  background: var(--accent-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.photo-placeholder .icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.hero-photo-card figcaption {
  margin-top: 10px;
  font-family: var(--font-sans-dev);
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

/* Lead intro statement */
.hero-intro {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.9;
  text-align: left;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  background: rgba(244, 237, 224, 0.4);
  border-radius: 0 6px 6px 0;
}

/* Sections */
.section {
  margin: 54px 0;
}

.section-header {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display-dev);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.section-line {
  height: 1px;
  background: var(--line);
  flex-grow: 1;
}

/* Characteristic Cards */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.trait-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}

.trait-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-sans-dev);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.trait-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

/* Stories & Anecdotes */
.stories-note {
  margin: -8px 0 24px;
  font-family: var(--font-sans-dev);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.story-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(32, 35, 29, 0.03);
}

.story-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.story-title {
  margin: 0;
  font-family: var(--font-display-dev);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-narrator {
  font-family: var(--font-sans-dev);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.story-tag {
  font-family: var(--font-sans-dev);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 12px;
}

.story-body p {
  margin: 0 0 16px;
  line-height: 1.85;
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* Highlighted Quote */
.quote-highlight {
  margin: 20px 0;
  padding: 18px 24px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif-dev);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.75;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 4px;
  background: var(--accent-soft);
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item a:hover img {
  transform: scale(1.02);
}

.gallery-placeholder {
  width: 100%;
  height: 220px;
  background: var(--accent-soft);
  border: 1.5px dashed var(--line-strong);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  font-size: 0.95rem;
}

.gallery-item figcaption {
  margin-top: 10px;
  font-family: var(--font-sans-dev);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* Contributions Note */
.contribute-box {
  margin-top: 50px;
  padding: 24px 28px;
  background: #f0ebe0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-sans-dev);
  color: var(--muted);
  text-align: center;
}

.contribute-box h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
}

.contribute-box p {
  margin: 0;
  font-size: 0.95rem;
}

.contribute-action {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(139, 58, 34, 0.2);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.email-btn:hover {
  background: #6f2d1a;
  transform: translateY(-1px);
}

.email-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.footer {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-sans-dev);
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 30px);
    padding: 20px 0 40px;
  }

  .story-card {
    padding: 20px;
  }

  .hero-intro {
    font-size: 1.1rem;
    padding-left: 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
