/* ============================================================
   Tanushri Srivastava — homepage styles
   Palette & typography modeled on the approved template
   ============================================================ */

:root {
  --peach: #fbeadb;
  --cream: #fdfbf6;
  --ink: #1c1c1c;
  --muted: #4a4a46;
  --orange: #e8843c;
  --dark: #262523;
  --hairline: rgba(28, 28, 28, 0.14);
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  background: var(--peach);
  text-align: center;
  padding: 26px 20px 0;
}

.header-rule {
  width: 40px;
  height: 1px;
  background: var(--ink);
  margin: 0 auto 18px;
  opacity: 0.5;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.wordmark em {
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}

.site-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 8px;
}

.site-nav a:hover { color: var(--orange); }

.site-nav a.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}

/* ---------- hero ---------- */
.hero {
  background: var(--peach);
  text-align: center;
  padding: 90px 24px 110px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.6vw, 3.3rem);
  line-height: 1.28;
  max-width: 1060px;
  margin: 0 auto;
  text-wrap: balance;
}

.hero h1 em { font-style: italic; }

/* ---------- zigzag dividers ---------- */
.zigzag {
  height: 22px;
  background-repeat: repeat-x;
  background-size: 34px 22px;
}

/* peach triangles pointing down, the white brand wall shows through */
.zigzag-down {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22'%3E%3Cpath d='M0 0h34L17 22z' fill='%23fbeadb'/%3E%3C/svg%3E");
}

/* peach triangles pointing up, leading into peach CTA */
.zigzag-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22'%3E%3Cpath d='M17 0l17 22H0z' fill='%23fbeadb'/%3E%3C/svg%3E");
}

/* ---------- section alpha: brand wall ---------- */
.brands {
  background: #ffffff;
  padding: 64px 24px 44px;
}

.brand-wall {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  row-gap: 26px;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  column-gap: 14px;
  row-gap: 26px;
}

.brand-tile {
  position: relative;
  width: 172px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.brand-tile img {
  max-height: 50px;
  max-width: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.18s ease;
}

/* logos whose lettering needs more height to stay readable */
.brand-tile.b-lg img { max-height: 66px; }

/* very wide wordmarks that need more width to stay readable */
.brand-tile.b-wide img { max-width: 178px; max-height: 60px; }

/* vector logos with tiny intrinsic sizes: force them up to par */
.brand-tile.b-scale img { height: 54px; width: auto; max-width: 178px; }

/* placeholder tile: brand name in text until a logo file is added */
.brand-tile.b-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px dashed var(--hairline);
  border-radius: 16px;
  padding: 0 10px;
}

/* "it's a link" cue: logo lifts and a label fades in */
.brand-tile::after {
  content: "View work \2197";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.brand-tile:hover,
.brand-tile:focus-visible {
  transform: translateY(-5px);
}

.brand-tile:hover::after,
.brand-tile:focus-visible::after {
  opacity: 1;
}

.brands-hint {
  text-align: center;
  margin-top: 42px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- finding your voice ---------- */
.voice { padding: 30px 24px 70px; }

.voice-inner {
  max-width: 560px;
  margin: 0 auto;
}

.rule {
  border: none;
  height: 1px;
  background: var(--hairline);
}

.rule-orange { background: rgba(232, 132, 60, 0.55); }

.voice p {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}

.voice p:first-of-type { margin-top: 52px; }

.voice .rule-orange:last-child { margin-top: 40px; }

/* ---------- bio ---------- */
.bio {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.bio-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}

.bio-text p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.bio-photo img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border-radius: 22px;
}

/* ---------- cta ---------- */
.cta {
  background: var(--peach);
  text-align: center;
  padding: 100px 24px 120px;
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 em { font-style: italic; }

.cta-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-color: var(--orange);
}

.cta-link:hover { color: var(--orange); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: #f4f1ea;
  padding: 56px 40px 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 34px;
}

.wordmark-light { color: #f4f1ea; }

.footer-line {
  flex: 1;
  height: 1px;
  background: rgba(244, 241, 234, 0.25);
}

.footer-legal {
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.75);
  line-height: 1.8;
}

/* ============================================================
   Brand pages (work/*.html)
   ============================================================ */
.brand-hero {
  background: var(--peach);
  text-align: center;
  padding: 36px 24px 80px;
  position: relative;
}

.back-link {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 48px;
}

.back-link:hover { color: var(--orange); }

.brand-hero-logo {
  width: 220px;
  height: 110px;
  margin: 0 auto 28px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 6px 24px rgba(28, 28, 28, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
}

.brand-hero-logo img { max-height: 64px; width: auto; }

/* the logo already spells the brand name, so the name is kept for
   screen readers and search engines but not shown. Add the class
   "show-name" to .brand-hero for logos that don't spell it out. */
.brand-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brand-hero.show-name h1 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
}

.campaign-tags {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.campaign-tags a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
}

.campaign-tags a:hover { background: var(--ink); color: var(--peach); }

.zigzag-cream { background-color: var(--cream); }

.writeup {
  max-width: 680px;
  margin: 0 auto;
  padding: 70px 24px 30px;
}

.campaign { scroll-margin-top: 24px; }

.campaign + .campaign {
  border-top: 1px solid rgba(232, 132, 60, 0.55);
  margin-top: 56px;
  padding-top: 56px;
}

.campaign h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 24px;
}

.campaign p {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.work-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: var(--orange);
  text-decoration: none;
  border-radius: 4px;
  padding: 11px 20px;
}

.work-link:hover { background: var(--ink); }

/* shown until Tanushri supplies the real link */
.work-link-pending {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--muted);
  font-weight: 500;
  font-style: italic;
}

/* Instagram / video embeds inside a brand page */
.work-embed {
  margin: 34px auto 10px;
  max-width: 420px;
}

.work-embed .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* YouTube videos: full column width, 16:9 */
.work-embed-video { max-width: none; }

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--dark);
  border-radius: 6px;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Facebook video (upright, 380x476) */
.fb-frame {
  aspect-ratio: 380 / 476;
  border: 1px solid #dbdbdb;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
}

.fb-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* X (Twitter) post card */
.work-embed .twitter-tweet { margin: 0 auto !important; }

/* stacked embeds in one campaign get breathing room */
.work-embed + .work-embed { margin-top: 44px; }

/* custom card: used where Instagram's own frame doesn't work.
   Same footprint as an Instagram embed (header, portrait media,
   footer) so it sits naturally next to pages that use embeds. */
.work-card {
  display: block;
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 3px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.work-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.work-card-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid #efefef;
  border-radius: 50%;
  padding: 4px;
  background: #ffffff;
}

.work-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #111111;
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 200px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(160deg, #3a3531, #1c1c1c);
}

.work-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.work-card-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--ink);
}

.work-card-foot {
  display: block;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  border-top: 1px solid #efefef;
}

/* for frames where the centre holds a face */
.work-card-play.play-low { top: 74%; }

.work-card:hover .work-card-play { transform: translate(-50%, -50%) scale(1.08); background: #ffffff; }

.work-card:hover .work-card-foot { color: var(--ink); }

/* several posts side by side: breaks out wider than the text column */
.work-embed-row {
  max-width: none;
  width: min(1060px, calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.embed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.embed-row .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 860px) {
  .work-embed-row { width: 100%; left: 0; transform: none; }
  .embed-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.work-embed figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.work-embed figcaption a {
  white-space: nowrap;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.brand-pager {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--hairline);
}

.brand-pager a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.brand-pager a.next {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

.brand-pager a:hover { color: var(--orange); }

/* ============================================================
   Who and Contact pages
   ============================================================ */
.page-hero {
  background: var(--peach);
  text-align: center;
  padding: 50px 24px 80px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.who {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.who-intro {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.who-text p {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.who-text p.who-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.35;
  margin-bottom: 28px;
}

.who h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 48px 0 28px;
}

.who .rule-orange { margin-top: 56px; }

.timeline { list-style: none; }

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.05rem;
}

.timeline li:last-child { border-bottom: none; }

.timeline .when {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--orange);
  padding-top: 3px;
}

.timeline p {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.65;
}

.awards { list-style: none; }

.awards li {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.awards li:last-child { border-bottom: none; }

.awards a {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.awards a:hover { color: var(--orange); }

.awards span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

.contact {
  text-align: center;
  padding: 100px 24px 140px;
}

.contact-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 30px;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.6vw, 2rem);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-color: var(--orange);
  overflow-wrap: anywhere;
}

.contact-email:hover { color: var(--orange); }

@media (max-width: 860px) {
  .who-intro { grid-template-columns: 1fr; gap: 36px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- responsive ---------- */
/* keep 6 logos in the top row on narrower screens by shrinking tiles */
@media (max-width: 1180px) {
  .brand-tile { width: 150px; height: 88px; }
  .brand-tile img { max-width: 130px; max-height: 46px; }
  .brand-tile.b-lg img { max-height: 60px; }
  .brand-tile.b-wide img { max-width: 148px; max-height: 54px; }
  .brand-tile.b-scale img { height: 48px; max-width: 148px; }
}

@media (max-width: 1020px) {
  .brand-tile { width: 128px; height: 80px; }
  .brand-tile img { max-width: 112px; max-height: 42px; }
  .brand-tile.b-lg img { max-height: 54px; }
  .brand-tile.b-wide img { max-width: 124px; max-height: 48px; }
  .brand-tile.b-scale img { height: 44px; max-width: 124px; }
}

@media (max-width: 860px) {
  .bio-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* compact 3-across logo grid on small screens: the desktop rows
     dissolve so all logos flow as one even grid */
  .brand-wall {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 10px;
    row-gap: 14px;
  }

  .brand-row { display: contents; }

  .brand-tile { width: calc((100% - 20px) / 3); max-width: 150px; height: 60px; }

  .brand-tile img { max-width: 85%; max-height: 32px; }

  .brand-tile.b-lg img { max-height: 42px; }

  .brand-tile.b-wide img { max-width: 95%; max-height: 38px; }

  .brand-tile.b-scale img { height: 34px; max-width: 95%; }

  .brand-tile.b-text { font-size: 0.8rem; padding: 0 6px; }

  .brands { padding: 44px 20px 32px; }

  .brands-hint { margin-top: 24px; }
}

@media (max-width: 520px) {
  .site-nav { gap: 20px; }

  .hero { padding: 60px 20px 80px; }
}

@media (max-width: 520px) {
  .brand-hero { padding: 28px 20px 60px; }
  .back-link { margin-bottom: 32px; }
  .brand-hero-logo { width: 180px; height: 90px; }
  .writeup { padding-top: 50px; }
  .campaign p { font-size: 1.05rem; }
}
