/* Tandon House — one-page site
   Fonts: Urbanist (display) and Poppins (text), self-hosted, SIL Open Font License. */

@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/fonts/urbanist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #000;
  --paper: #fff;
  --quiet: #5c5c5c;
  --rule: #e4e4e4;
  --text: 40rem;          /* reading column */
  --wide: 66rem;          /* wide photos */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
figure { margin: 0; }
[id] { scroll-margin-top: 1.5rem; }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
}

/* ---------- Masthead (sits over the hero) ---------- */
.masthead {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.75rem) var(--gutter);
  color: #fff;
}
.masthead__brand img { width: clamp(150px, 24vw, 300px); }
.masthead__nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.75rem); }
.masthead__nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.masthead__nav a:hover { text-decoration: underline; }
.masthead__ig { display: inline-flex; }
@media (max-width: 560px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .masthead__brand img { width: 190px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 30rem;
  overflow: hidden;
  background: #222;
  display: grid;
  place-items: center;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 55%;
  filter: brightness(0.8);
}
.hero__script {
  position: relative;
  width: clamp(170px, 26vw, 330px);
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

/* ---------- Story ---------- */
.story { padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0; }

.intro {
  max-width: var(--wide);
  margin: 0 auto clamp(3.5rem, 8vw, 6rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) { .intro { grid-template-columns: 1.15fr 0.85fr; } }
.intro__text p { margin: 0 0 1.2em; }
.byline { font-size: 0.95rem; color: var(--quiet); margin-bottom: 2rem !important; }

.prose { max-width: var(--text); margin: 0 auto; }
.prose p { margin: 0 0 1.3em; }
.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 3.2em 0 0.9em;
}
.prose h2:first-child { margin-top: 0; }

/* photos inside the story break out of the reading column */
.prose figure { margin: 2.6rem 0; }
.prose .wide {
  width: min(var(--wide), 100vw - 2 * var(--gutter));
  margin-left: 50%;
  transform: translateX(-50%);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
  width: min(54rem, 100vw - 2 * var(--gutter));
  margin: 2.8rem 0 2.8rem 50%;
  transform: translateX(-50%);
}
.pair figure { margin: 0; }

/* Family album */
.album {
  max-width: var(--wide);
  margin: clamp(4.5rem, 10vw, 8rem) auto 0;
  padding-bottom: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--rule);
  columns: 2;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
}
@media (min-width: 900px) { .album { columns: 3; } }
.album figure { break-inside: avoid; margin: 0 0 clamp(0.75rem, 2vw, 1.5rem); }

/* zoomable photos */
.zoom { display: block; cursor: zoom-in; }

/* ---------- Recipe ---------- */
.recipe { padding: clamp(4rem, 9vw, 7rem) var(--gutter) 0; }
.recipe__hero { max-width: 77.5rem; margin: 0 auto; }
.recipe__head { max-width: var(--text); margin: clamp(2.5rem, 6vw, 4rem) auto 2rem; }
.recipe__head .display { margin-bottom: 0.35rem; }
.recipe__sub {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.3;
  margin: 0;
}
.recipe h3, .recipe h4 {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 2.4em 0 0.7em;
}
.recipe h4 { font-size: 0.9rem; margin-top: 1.8em; }
.recipe h3 em, .recipe h4 em { font-style: italic; }

.recipe__lists {
  max-width: 58rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
}
@media (min-width: 800px) { .recipe__lists { grid-template-columns: 1fr 1fr; } }
.recipe__lists h3:first-child { margin-top: 0; }
.recipe__lists ul, .recipe__lists ol { list-style: none; margin: 0; padding: 0; font-size: 0.95em; }
.recipe__lists li { padding: 0.28em 0; }
.playlist li { display: flex; flex-direction: column; padding: 0.45em 0; line-height: 1.4; }
.playlist li span { color: var(--quiet); font-size: 0.9em; }
.playlist__photo { margin-top: 2rem; max-width: 20rem; }

.method { padding-bottom: clamp(4rem, 9vw, 7rem); border-bottom: 1px solid var(--rule); }
.method h3:first-child { margin-top: 0; }
.method figure { margin: 2.2rem 0 0.5rem; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--text);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  box-sizing: content-box;
}
.contact__line {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.contact__ig { margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.foot {
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.foot__mark { width: 150px; }
.foot p { margin: 0; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox img {
  max-width: min(94vw, 1800px);
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: zoom-out;
}
.lightbox form { position: fixed; top: 1rem; right: 1rem; margin: 0; }
.lightbox__close {
  font: 500 0.75rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
