/* =========================================================
   Keepsakes — shared styles
   A soft, natural palette in neutrals and blush pink.
   Palette drawn from the film's title card.
   ========================================================= */

:root {
  --cream:      #f6f1ec;
  --paper:      #fbf7f4;
  --paper-2:    #f1e9e3;
  --blush:      #e28c8c;   /* primary accent — the film's coral-pink */
  --blush-soft: #f0cbc5;   /* soft fills */
  --blush-wash: #f7e6e2;   /* washes / hover backgrounds */
  --rose-deep:  #c9767a;   /* hover / active */
  --taupe:      #6e605b;   /* headings, subtitle brown */
  --ink:        #4a413e;   /* body text */
  --muted:      #9a8c86;   /* secondary text */
  --line:       #e6dcd5;   /* hairlines */
  --shadow:     0 18px 50px -24px rgba(110, 96, 91, 0.45);
  --shadow-sm:  0 6px 20px -12px rgba(110, 96, 91, 0.40);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tamil: "Noto Sans Tamil", "Nirmala UI", "Latha", sans-serif;

  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  /* barely-there warm texture */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(240, 203, 197, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(241, 233, 227, 0.6), transparent 60%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-head {
  padding: 34px 0 10px;
  text-align: center;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--taupe);
}
.wordmark .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--blush);
  border-radius: 50%;
  color: var(--blush);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
}
.wordmark .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 40px 0 18px; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  color: var(--taupe);
  margin: 0;
}
.hero p.lede {
  max-width: 46ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.divider {
  width: 64px; height: 2px;
  background: var(--blush-soft);
  border: 0; border-radius: 2px;
  margin: 30px auto;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 20px 0 10px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blush-soft);
}
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(75, 65, 62, 0.06);
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover .play { opacity: 1; }
.card .play span {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(251, 247, 244, 0.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.card .play span::after {
  content: "";
  margin-left: 4px;
  border-left: 16px solid var(--blush);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.card .body { padding: 22px 24px 26px; }
.card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--taupe);
  margin: 0 0 6px;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .langs {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blush);
}

/* placeholder card for future projects */
.card.soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--muted);
  cursor: default;
}
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card.soon .seed {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--taupe);
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */
.site-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 60px 0 44px;
}
.site-foot .heart { color: var(--blush); }

/* =========================================================
   Watch page
   ========================================================= */
.back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color .25s ease;
}
.back:hover { color: var(--blush); }
.back::before { content: "‹"; font-size: 20px; line-height: 1; }

.watch-head { text-align: center; padding: 26px 0 8px; }
.watch-head .eyebrow { margin-bottom: 14px; }
.watch-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--taupe);
  margin: 0;
}
.watch-head p { color: var(--muted); margin: 12px 0 0; }

/* language toggle */
.lang {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 22px;
}
.lang button {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid var(--blush-soft);
  background: var(--paper);
  color: var(--taupe);
  cursor: pointer;
  transition: all .25s ease;
}
.lang button .ta { font-family: var(--tamil); }
.lang button:hover { border-color: var(--blush); background: var(--blush-wash); }
.lang button[aria-pressed="true"] {
  background: var(--blush);
  border-color: var(--blush);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* player */
.player {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.player video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

.watch-meta {
  max-width: 900px;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.watch-meta .now b { color: var(--taupe); font-weight: 700; }
.watch-meta a.dl {
  text-decoration: none;
  color: var(--blush);
  border-bottom: 1px solid var(--blush-soft);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.watch-meta a.dl:hover { color: var(--rose-deep); border-color: var(--rose-deep); }

@media (max-width: 560px) {
  .hero { padding-top: 26px; }
  .gallery { gap: 20px; }
  .watch-meta { justify-content: center; text-align: center; }
}
