/* ===================================================================
   Elizabeth Marcelena — landing page
   Mobile-first. Cottage-core elegance. Warm neutrals with terracotta.
   =================================================================== */

/* ---------- design tokens ---------- */
:root {
  /* palette */
  --cream:        #FAF6EF;   /* page base */
  --cream-2:      #F2EBDF;   /* alternating section */
  --cream-3:      #E9DFCE;   /* deeper accent paper */
  --ink:          #1C1714;   /* warm near-black */
  --ink-soft:     #4A413B;
  --ink-muted:    #7A6E63;
  --line:         #E0D6C7;
  --terracotta:   #B6664A;
  --terracotta-d: #8E4D34;
  --sage:         #8A9A7B;
  --blush:        #E3CFC5;

  /* type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* sizing & rhythm */
  --max:          1200px;
  --max-prose:    640px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --section-y:    clamp(4rem, 9vw, 7.5rem);
  --radius-sm:    6px;
  --radius-md:    14px;
  --radius-lg:    22px;

  /* effects */
  --shadow-sm:    0 1px 2px rgba(28, 23, 20, 0.06);
  --shadow-md:    0 10px 28px -12px rgba(28, 23, 20, 0.18);
  --shadow-lg:    0 24px 60px -24px rgba(28, 23, 20, 0.22);

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--terracotta); color: var(--cream); }

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

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--light  { color: rgba(250, 246, 239, 0.78); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.section-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
}
.section-title--center { text-align: center; max-width: 22ch; margin-left: auto; margin-right: auto; }
.section-title--light  { color: var(--cream); }
.section-title--light em { color: var(--blush); }

.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow:hover { color: var(--terracotta); border-color: var(--terracotta); gap: 0.75rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__icon { flex: 0 0 auto; }

.btn--lg { padding: 1.1rem 1.75rem; font-size: 0.95rem; }
.btn--xl { padding: 1.3rem 2.25rem; font-size: 1rem; letter-spacing: 0.05em; }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.78rem; }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
}

/* terracotta CTA — for dark sections and high-contrast moments */
.btn--accent {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
}
.btn--accent:hover {
  background: var(--terracotta-d);
  border-color: var(--terracotta-d);
  box-shadow: var(--shadow-lg);
}

/* ghost — terracotta outline on light bgs, fills on hover */
.btn--ghost {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn--ghost:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

.btn--invert {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.btn--invert:hover {
  background: var(--blush);
  border-color: var(--blush);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(250, 246, 239, 0.08);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 6px 22px -16px rgba(0,0,0,0.6); }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.01em;
}
.nav__logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  border: 1px solid var(--cream);
  border-radius: 50%;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-mark span {
  display: inline-block;
  transform: translateY(-1px);
  color: var(--terracotta);
  margin: 0 1px;
}
.nav__logo-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--cream);
}

.nav__links { display: none; gap: 2rem; }
.nav__link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(250, 246, 239, 0.78);
  position: relative;
  padding: 0.25rem 0;
}
.nav__link:hover { color: var(--cream); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--terracotta);
  transition: right 0.25s var(--ease);
}
.nav__link:hover::after { right: 0; }

@media (min-width: 720px) {
  .nav__links { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav__logo-word { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(2rem, 6vw, 3rem) var(--gutter) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* soft sun-washed gradient */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(182, 102, 74, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 80%, rgba(138, 154, 123, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { order: 1; }
.hero__photo { order: 2; }

@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; padding-top: 2rem; }
  .hero__copy { order: 1; }
  .hero__photo { order: 2; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  font-weight: 700;
  color: var(--terracotta);
}

.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 2rem;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted);
}

.hero__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-2);
  aspect-ratio: 3 / 4;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  position: relative;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(250, 246, 239, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

@media (min-width: 880px) {
  .hero__photo { max-width: none; aspect-ratio: 4 / 5; }
}

/* ornament */
.ornament {
  display: flex;
  justify-content: center;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  color: var(--terracotta);
  opacity: 0.85;
}

/* ---------- ABOUT ---------- */
.about {
  padding: var(--section-y) var(--gutter);
  background: var(--cream-2);
}
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
  background: var(--cream-2);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 880px) {
  .about__inner { grid-template-columns: 1fr 1.15fr; }
  .about__photo { max-width: none; }
}

.about__copy .section-title { max-width: 18ch; }
.about__copy .btn { margin-top: 1.75rem; }

/* ---------- KITCHEN (big CTA, contrast block) ---------- */
.kitchen {
  position: relative;
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(182, 102, 74, 0.18), transparent 60%),
    linear-gradient(180deg, #2A211C 0%, #1C1714 100%);
  color: var(--cream);
  overflow: hidden;
}
.kitchen::before,
.kitchen::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.kitchen::before { top: -120px; right: -80px; background: var(--terracotta); }
.kitchen::after  { bottom: -120px; left: -80px; background: var(--sage); opacity: 0.25; }

.kitchen__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.kitchen .section-title { color: var(--cream); }
.kitchen .section-title em { color: var(--blush); }

.kitchen__lede {
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(250, 246, 239, 0.78);
}

/* product collage — horizontal scroll shelf */
.collage-grid {
  margin: 0 -1rem 2rem;       /* bleed slightly past inner padding for full-width feel */
  padding: 0.5rem 1rem 1.25rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 1rem;
  scrollbar-color: var(--terracotta) rgba(250, 246, 239, 0.10);
  scrollbar-width: thin;
}
.collage-grid.is-autoscrolling {
  scroll-snap-type: none;
}
.collage-grid::-webkit-scrollbar { height: 8px; }
.collage-grid::-webkit-scrollbar-track {
  background: rgba(250, 246, 239, 0.08);
  border-radius: 99px;
}
.collage-grid::-webkit-scrollbar-thumb {
  background: var(--terracotta);
  border-radius: 99px;
}

.collage-tile {
  position: relative;
  flex: 0 0 68%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
@media (min-width: 600px) { .collage-tile { flex-basis: 42%; } }
@media (min-width: 900px) { .collage-tile { flex-basis: 26%; } }
.collage-tile__img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.collage-tile img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.5s var(--ease);
}
.collage-tile__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}
.collage-tile__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0.75rem 0 0.3rem;
}
.collage-tile__blurb {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.collage-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}
.collage-tile:hover img { transform: scale(1.04); }

.collage__caption {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.6);
  text-align: center;
}

.kitchen__micro {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(250, 246, 239, 0.55);
}

/* ---------- COLLECTIONS ---------- */
.collections {
  padding: var(--section-y) var(--gutter);
  background: linear-gradient(170deg, #EDE8DC 0%, #E4DFD2 100%);
}
.collections__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.collections__grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .collections__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (min-width: 1000px) {
  .collections__grid { gap: 1.5rem; }
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  position: relative;
}
.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.collection-card__icon {
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}
.collection-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.collection-card__copy {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.collection-card__copy em,
.collection-card__copy strong { color: inherit; font-weight: inherit; font-style: inherit; }
.collection-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- WHY THESE PICKS (contrast block) ---------- */
.why {
  padding: var(--section-y) var(--gutter);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(227, 207, 197, 0.12), transparent 60%),
    var(--terracotta-d);
  color: var(--cream);
  text-align: center;
}
.why__inner {
  max-width: 920px;
  margin: 0 auto;
}

.why__list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}
@media (min-width: 760px) {
  .why__list { grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
}
.why__list li {
  padding: 0;
  position: relative;
}
.why__mark {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--blush);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.why__list h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.why__list p {
  margin: 0;
  color: rgba(250, 246, 239, 0.82);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--section-y) var(--gutter);
  background: var(--cream);
}
.faq__inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq__list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary em {
  font-style: italic;
  color: inherit;
  font-weight: inherit;
}
.faq__item summary:hover { color: var(--terracotta); }

.faq__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item[open] .faq__toggle::before,
.faq__item[open] .faq__toggle::after { background: var(--terracotta); }

.faq__body {
  padding: 0 0 1.5rem;
  max-width: 60ch;
  color: var(--ink-soft);
}
.faq__body p { margin: 0 0 0.85rem; line-height: 1.65; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body strong { color: var(--ink); font-weight: 600; }

/* ---------- CONNECT ---------- */
.connect {
  padding: var(--section-y) var(--gutter);
  background: var(--cream-2);
  position: relative;
}
.connect__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.connect__photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
  background: var(--cream-3);
  box-shadow: var(--shadow-md);
}
.connect__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 880px) {
  .connect__inner { grid-template-columns: 1fr 1.1fr; }
  .connect__photo { max-width: none; }
}

.connect__ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 3rem var(--gutter) 2.25rem;
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  text-align: center;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0;
}
.footer .nav__logo-mark { color: var(--cream); border-color: rgba(250, 246, 239, 0.4); }
.footer .nav__logo-mark span { color: var(--blush); }

.footer__disclosure {
  margin: 0;
  font-size: 0.83rem;
  max-width: 52ch;
  line-height: 1.5;
}
.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.45);
}

/* ---------- focus styles (a11y) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- subtle reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- footer privacy link ---------- */
.footer__privacy-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.45);
  border-bottom: 1px solid rgba(250, 246, 239, 0.2);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}
.footer__privacy-link:hover {
  color: rgba(250, 246, 239, 0.8);
  border-color: rgba(250, 246, 239, 0.5);
}

/* ---------- modal overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 23, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: var(--gutter);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}

.modal__body {
  padding: 2.5rem 2rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.modal__body::-webkit-scrollbar { width: 6px; }
.modal__body::-webkit-scrollbar-track { background: transparent; }
.modal__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.modal__updated {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}
.modal__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}
.modal__body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 1.25rem 0 0.35rem;
  font-style: italic;
}
.modal__body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.modal__body a {
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  transition: color 0.2s var(--ease);
}
.modal__body a:hover {
  color: var(--terracotta-d);
}

@media (max-width: 480px) {
  .modal__body { padding: 2rem 1.25rem 1.5rem; }
  .modal { max-height: 90vh; }
}
