/*
Theme Name: DD Goswami Personal
Theme URI: https://ddgoswami.com
Author: Dhanesvara Das Goswami
Description: A warm, single-page personal website for Dhanesvara Das Goswami.
Version: 1.0.0
Text Domain: ddgoswami
*/

:root {
  --cream: #f7ecd2;
  --cream-light: #fffaf0;
  --paper: #fffdf8;
  --ink: #292725;
  --brown: #634334;
  --muted: #947b6b;
  --orange: #ef8107;
  --gold: #d9ad37;
  --dark: #2c2c2c;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,250,240,.97); border-bottom: 1px solid rgba(99,67,52,.12); box-shadow: 0 2px 8px rgba(45,35,28,.07); }
.nav-wrap { max-width: var(--max); height: 84px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.site-title { font-family: Georgia, 'Times New Roman', serif; font-size: 27px; font-weight: 700; color: var(--brown); text-decoration: none; }
.menu { display: flex; align-items: center; gap: 39px; margin: 0; padding: 0; list-style: none; }
.menu a { text-decoration: none; font-size: 16px; font-weight: 600; }
.menu a:hover, .menu a:focus-visible { color: var(--orange); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 27px; cursor: pointer; }

.hero { min-height: calc(100vh - 84px); background: radial-gradient(circle at 20% 35%, rgba(255,255,255,.35), transparent 34%), var(--cream); display: flex; align-items: center; }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 70px 28px 92px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.portrait-frame { width: min(100%, 430px); aspect-ratio: 1; margin: auto; overflow: hidden; border-radius: 50%; border: 10px solid rgba(255,255,255,.48); outline: 2px solid rgba(217,173,55,.5); box-shadow: 0 16px 30px rgba(67,48,35,.15); background: #ead7b3; position: relative; }
.portrait-crop { position: absolute; width: 273.25%; max-width: none; left: -7.5%; top: -47.5%; }
.hero h1 { margin: 0 0 20px; font: 700 clamp(48px, 6vw, 79px)/.95 Georgia, 'Times New Roman', serif; letter-spacing: -2px; }
.hero h1 span { display: block; color: var(--orange); }
.hero-role { margin: 0 0 14px; color: var(--brown); font-size: clamp(20px, 2vw, 25px); font-weight: 600; line-height: 1.35; }
.hero-tagline { margin: 0 0 34px; color: var(--muted); font-size: 19px; }
.buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.button { display: inline-block; min-width: 182px; padding: 15px 24px; border-radius: 12px; text-align: center; color: white; text-decoration: none; font-weight: 700; background: var(--orange); box-shadow: 0 6px 12px rgba(110,69,33,.16); transition: transform .18s ease, background .18s ease; }
.button.secondary { background: var(--brown); }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #c96600; }
.button.secondary:hover, .button.secondary:focus-visible { background: #402b22; }

.section { padding: 108px 28px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow { margin: 0 0 15px; color: var(--orange); font-size: 15px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.section h2 { margin: 0 0 28px; font: 700 clamp(39px, 5vw, 52px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -1px; }
.intro { max-width: 980px; color: var(--brown); font-size: 21px; }
.intro p { margin: 0 0 20px; }

.books { background: var(--cream-light); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 48px; }
.card { min-height: 300px; padding: 34px 30px; border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(85,61,43,.08); border: 1px solid rgba(99,67,52,.08); display: flex; flex-direction: column; }
.book-mark { width: 48px; height: 62px; margin-bottom: 30px; border-radius: 3px 8px 8px 3px; background: linear-gradient(135deg, var(--orange), #be5900); box-shadow: 5px 5px 0 #f1d5aa; }
.card h3 { margin: 0 0 15px; font: 700 24px/1.15 Georgia, 'Times New Roman', serif; }
.card p { margin: 0; color: var(--muted); }
.card a { margin-top: auto; padding-top: 22px; color: var(--orange); font-weight: 700; text-decoration: none; }

.teachings { background: white; }
.teaching-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.topic { padding: 22px; border-left: 4px solid var(--orange); background: var(--cream-light); font-weight: 700; }

.travels { background: var(--dark); color: white; }
.travels .eyebrow { color: var(--gold); }
.travels .section-subtitle { color: #bdb8b4; font-size: 20px; }
.travel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 55px; }
.travel-card { min-height: 175px; padding: 32px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.045); }
.pin { color: var(--gold); font-size: 28px; }
.travel-card h3 { margin: 18px 0 2px; font: 700 25px Georgia, 'Times New Roman', serif; }
.travel-card p { margin: 0; color: #aaa6a2; }

.efforts { background: var(--cream-light); }
.effort-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: 50px; }
.effort-card { min-height: 390px; padding: 40px; border-radius: 16px; background: white; box-shadow: 0 8px 24px rgba(85,61,43,.07); }
.effort-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 16px; background: #fbf1e5; color: var(--orange); font-size: 31px; }
.effort-card h3 { margin: 0 0 20px; font: 700 30px Georgia, 'Times New Roman', serif; }
.effort-card p { color: #80695c; font-size: 18px; }

.connect { text-align: center; }
.connect .section-subtitle { color: var(--muted); font-size: 20px; }
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; margin: 62px auto 0; }
.connect-card { min-height: 300px; padding: 38px 24px; border-radius: 15px; background: var(--cream-light); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.connect-card:hover, .connect-card:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(85,61,43,.10); }
.connect-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 26px; border-radius: 50%; background: #fde9c8; color: var(--orange); font-size: 31px; }
.connect-card h3 { margin: 0 0 8px; font: 700 23px Georgia, 'Times New Roman', serif; }
.connect-card p { margin: 0; color: var(--muted); }

.site-footer { padding: 34px 28px; color: #d7cfc9; background: #2a211d; text-align: center; font-size: 14px; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 84px; left: 0; right: 0; padding: 24px 28px; background: var(--cream-light); box-shadow: 0 10px 18px rgba(45,35,28,.1); flex-direction: column; gap: 18px; align-items: flex-start; }
  .menu.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 42px; }
  .portrait-frame { max-width: 360px; }
  .buttons { justify-content: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .teaching-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-wrap { padding: 0 20px; }
  .site-title { font-size: 23px; }
  .hero-inner { padding: 50px 20px 70px; }
  .portrait-frame { max-width: 285px; }
  .hero h1 { letter-spacing: -1px; }
  .section { padding: 78px 20px; }
  .card-grid, .topic-list, .travel-grid, .effort-grid, .connect-grid { grid-template-columns: 1fr; }
  .connect-grid { max-width: 380px; }
  .buttons { flex-direction: column; align-items: center; }
  .button { width: 100%; max-width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
