/* SnapPose content site: an editorial look in the app's palette
   (warm off-white, charcoal, dusty pink). */
:root {
  --bg: #f7f5f2;
  --surface: #fff;
  --ink: #1f1f2e;
  --ink-soft: #6e6e8a;
  --line: #eaeaf0;
  --pink: #e8a0bf;
  --pink-bright: #ffa8ca;
  --pink-deep: #d45c7a;
  --pink-wash: #fbeaf0;
  --lilac: #c8b6ff;
  --radius: 24px;
  --shadow: 0 18px 40px -12px rgb(31 31 46 / 18%);
  --shadow-sm: 0 8px 22px -8px rgb(31 31 46 / 14%);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--pink-deep);
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(720px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Reading progress */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--pink-bright), var(--pink-deep));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(247 245 242 / 82%);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgb(31 31 46 / 6%);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font: 700 1.3rem var(--serif);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav a:hover {
  background: var(--pink-wash);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-pink {
  background: var(--pink-bright);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(50% 60% at 90% 10%, rgb(255 168 202 / 45%), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgb(200 182 255 / 35%), transparent 70%),
    var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero .wrap > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
}

.hero h1 {
  margin: 0 0 1.3rem;
  font: 700 clamp(2.9rem, 6.2vw, 5rem) / 1.03 var(--serif);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: linear-gradient(transparent 62%, var(--pink-bright) 62% 92%, transparent 92%);
}

.hero .lead {
  max-width: 33rem;
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-art {
  position: relative;
  min-height: 560px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 12%;
  overflow: hidden;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-float {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: 44%;
  max-width: 250px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 18px 24px rgb(31 31 46 / 28%));
}

.chip {
  position: absolute;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip b {
  color: var(--pink-deep);
}

.chip.c1 {
  top: 12%;
  left: 2%;
  transform: rotate(-4deg);
}

.chip.c2 {
  top: 44%;
  right: -2%;
  transform: rotate(3deg);
}

/* Topic ticker */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 0.95rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: scroll 38s linear infinite;
  font: italic 700 1.25rem var(--serif);
}

.ticker-track span::after {
  content: "✦";
  margin-left: 2.5rem;
  color: var(--pink);
  font-style: normal;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--pink-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head h2,
.cta-band h2,
.tips h2 {
  margin: 0;
  font: 700 clamp(1.9rem, 3.4vw, 2.7rem) / 1.15 var(--serif);
  letter-spacing: -0.01em;
}

.section-head a {
  font-weight: 600;
  white-space: nowrap;
}

/* Featured article */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 1.6rem;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.featured:hover {
  transform: translateY(-4px);
}

.featured .cover {
  min-height: 420px;
}

.featured .cover img {
  position: absolute;
  inset: 0;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.featured-body h3 {
  margin: 0.5rem 0 0.8rem;
  font: 700 clamp(1.7rem, 2.6vw, 2.3rem) / 1.2 var(--serif);
}

.featured-body p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.more-link {
  color: var(--pink-deep);
  font-weight: 700;
}

/* Cards */
.cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-bright), var(--lilac));
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.cover.contain img {
  object-fit: contain;
  padding: 0.8rem;
  object-position: center;
}

.cover.mark {
  display: grid;
  place-items: center;
}

.cover.mark img {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

a:hover > .cover img,
a:hover .cover img {
  transform: scale(1.05);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card .cover {
  aspect-ratio: 16 / 11;
}

.card-body {
  padding: 1.3rem 1.5rem 1.6rem;
}

.tag {
  color: var(--pink-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0.35rem 0 0.5rem;
  font: 700 1.3rem / 1.3 var(--serif);
}

.card p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* Tips (dark) */
.tips {
  padding: 5.5rem 0;
  background:
    radial-gradient(40% 60% at 100% 0%, rgb(232 160 191 / 25%), transparent 70%),
    var(--ink);
  color: #fff;
}

.tips .kicker {
  color: var(--pink);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.tip {
  position: relative;
  padding: 2rem 1.8rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
}

.tip .num {
  display: block;
  margin-bottom: 0.6rem;
  font: italic 700 4rem / 1 var(--serif);
  color: var(--pink);
}

.tip h3 {
  margin: 0 0 0.5rem;
  font: 700 1.35rem var(--serif);
}

.tip p {
  margin: 0;
  color: #cfcfdc;
  font-size: 0.97rem;
}

/* Photo band */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 4rem 1.5rem;
  background: url("/img/band.jpg") center 40% / cover;
  color: #fff;
  text-align: center;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(31 31 46 / 35%), rgb(31 31 46 / 70%));
}

.band blockquote {
  position: relative;
  max-width: 760px;
  margin: 0;
  font: italic 700 clamp(1.7rem, 3.6vw, 2.8rem) / 1.25 var(--serif);
}

.band cite {
  display: block;
  margin-top: 1rem;
  font: 600 0.85rem var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink-bright);
}

/* CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 5rem 0 0;
  padding: 4rem 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(60% 90% at 20% 0%, rgb(255 168 202 / 55%), transparent 70%),
    radial-gradient(50% 80% at 90% 100%, rgb(200 182 255 / 50%), transparent 70%),
    var(--pink-wash);
  text-align: center;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
}

/* Article page */
.article-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  padding: 5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--pink-bright), var(--lilac));
  color: #fff;
}

.article-hero.has-image {
  background-size: cover;
  background-position: center 30%;
}

.article-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(31 31 46 / 15%) 0%, rgb(31 31 46 / 78%) 100%);
}

.article-hero.contain {
  color: var(--ink);
}

.article-hero.contain.has-image::before {
  display: none;
}

.article-hero .wrap {
  position: relative;
}

.article-hero .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
}

.article-hero h1 {
  max-width: 820px;
  margin: 1rem 0 0.8rem;
  font: 700 clamp(2.1rem, 5vw, 3.7rem) / 1.1 var(--serif);
  letter-spacing: -0.015em;
}

.article-hero .meta {
  color: inherit;
  opacity: 0.9;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 3.5rem;
  justify-content: center;
  padding: 3.5rem 0 1rem;
}

.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  font-size: 0.9rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.toc nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.toc nav li a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.4;
}

.toc nav li a:hover {
  color: var(--pink-deep);
}

.prose {
  font-size: 1.12rem;
}

.prose > p:first-of-type {
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.15rem 0.6rem 0 0;
  font: 700 4.4rem / 0.8 var(--serif);
  color: var(--pink-deep);
}

.prose h2 {
  margin: 3rem 0 0.8rem;
  padding-top: 0.2rem;
  font: 700 1.8rem / 1.25 var(--serif);
  scroll-margin-top: 90px;
}

.prose h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  background: var(--pink-bright);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.3rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--pink-deep);
}

.prose h2:last-of-type + ul {
  list-style: none;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  background: var(--pink-wash);
  border: 1px solid rgb(212 92 122 / 20%);
}

.prose h2:last-of-type + ul li {
  position: relative;
  padding-left: 1.9rem;
}

.prose h2:last-of-type + ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.22rem;
  border-radius: 50%;
  background: var(--pink-deep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.more {
  padding: 3rem 0 0;
}

/* Ad slot: reserve the height so the page does not jump when an ad loads. */
.ad {
  min-height: 90px;
  margin: 2rem auto 0;
  text-align: center;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3.5rem 0 2rem;
  background: var(--ink);
  color: #c9c9d8;
  font-size: 0.93rem;
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  max-width: 22rem;
  margin: 0.8rem 0 0;
}

.site-footer nav a {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  text-decoration: none;
}

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

.site-footer small {
  display: block;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero .wrap,
  .featured {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 460px;
  }

  .featured .cover {
    min-height: 260px;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem;
  }

  .toc {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .nav .nav-extra {
    display: none;
  }
}

/* Article figures */
.prose .figure {
  margin: 2.2rem -1.5rem;
}

.prose .figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.prose figcaption {
  margin-top: 0.7rem;
  padding: 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

@media (max-width: 900px) {
  .prose .figure {
    margin-inline: 0;
  }
}
