/* ============================================================
   m&m creations — minimal-luxury link-in-bio
   ============================================================ */

:root {
  /* Palette — ivory / charcoal / warm grey, color lives in the photos */
  --bg:        #FBF8F4;
  --bg-2:      #F4EEE6;
  --surface:   #FFFFFF;
  --ink:       #1C1815;
  --ink-soft:  #4A433C;
  --muted:     #6B635A;
  --hair:      #E7DFD3;
  --accent:    #C2466F;   /* deep rose — used sparingly */
  --accent-ink:#A6325A;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(28,24,21,.04), 0 8px 24px rgba(28,24,21,.06);
  --shadow-md: 0 4px 12px rgba(28,24,21,.06), 0 24px 60px rgba(28,24,21,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .55s;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .25vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(251,248,244,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--hair);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(.9rem,2vw,1.25rem) var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em;
  line-height: 1; display: inline-flex; align-items: baseline; gap: .28em;
}
.nav__brand span { font-family: var(--font-body); font-weight: 400; font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav__links { margin-left: auto; display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav__links a { font-size: .9rem; color: var(--ink-soft); position: relative; padding: .25rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; cursor: pointer;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  min-height: 44px; white-space: nowrap;
}
.btn__icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--small { margin-left: auto; --pad-y: .55rem; --pad-x: 1.05rem; font-size: .85rem; background: var(--ink); color: var(--bg); }
.nav__links + .btn--small { margin-left: 0; }
.btn--small:hover { background:#000; }

/* ---------- Layout helpers ---------- */
section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem,5vw,4rem); text-align: center; }
.section-head__kicker, .eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin-bottom: 1rem;
}
.section-head__title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
.section-head__lede { margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(7rem, 14vw, 11rem); padding-bottom: clamp(3rem,7vw,6rem); }
.hero__grid {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__title { font-size: clamp(2.7rem, 1.6rem + 5.2vw, 5.2rem); letter-spacing: -.02em; }
.hero__title em { color: var(--accent-ink); }
.hero__lede { margin-top: 1.5rem; max-width: 38ch; color: var(--ink-soft); font-size: 1.1rem; }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__media { position: relative; }
.hero__frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  background: var(--bg-2); aspect-ratio: 4 / 5;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--surface); color: var(--ink); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .6rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid var(--hair);
}

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; background: var(--bg-2); }
.manifesto__line { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 1.1rem + 3.5vw, 3.4rem); color: var(--ink); max-width: 18ch; margin-inline: auto; line-height: 1.2; }
.manifesto__sub { margin-top: 1rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Gallery ---------- */
.gallery {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.75rem);
}
.card { display: block; }
.card--wide { grid-column: span 1; }
.card__img {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2);
  aspect-ratio: 4/5; box-shadow: var(--shadow-sm);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__img::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,24,21,.34), transparent 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover .card__img::after { opacity: 1; }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem .2rem 0; }
.card__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; }
.card__cta { font-size: .8rem; letter-spacing: .04em; color: var(--accent-ink); position: relative; flex: none; }
.card__cta::after { content: "→"; margin-left: .35em; display: inline-block; transition: transform .3s var(--ease); }
.card:hover .card__cta::after { transform: translateX(4px); }

/* ---------- Process ---------- */
.steps {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
}
.step { padding: clamp(1.6rem,2.5vw,2.4rem); background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); display: block; line-height: 1; }
.step__title { font-size: 1.3rem; margin-top: 1rem; }
.step__text { margin-top: .5rem; color: var(--muted); font-size: .98rem; }

/* ---------- About ---------- */
.about { background: var(--bg-2); }
.about__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: center;
}
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__title { font-size: clamp(1.8rem, 1.1rem + 3vw, 2.8rem); margin: .5rem 0 1.25rem; }
.about__copy p + p { margin-top: 1rem; color: var(--ink-soft); }
.about__copy p:first-of-type { color: var(--ink-soft); }

/* ---------- Links ---------- */
.links__inner { max-width: 640px; margin: 0 auto; padding-inline: var(--gutter); text-align: center; }
.links__title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
.links__lede { color: var(--muted); margin-top: .75rem; }
.links__list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.linkbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.5rem; background: var(--surface); border: 1px solid var(--hair); border-radius: 999px;
  font-weight: 500; box-shadow: var(--shadow-sm); min-height: 60px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.linkbtn__label { display: inline-flex; align-items: center; gap: .75rem; }
.linkbtn__label svg { width: 20px; height: 20px; color: var(--accent-ink); }
.linkbtn__arrow { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.linkbtn:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow-md); }
.linkbtn:hover .linkbtn__arrow { transform: translateX(4px); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #EAE3D9; padding-block: clamp(3rem,6vw,5rem); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); text-align: center; display: grid; gap: 1rem; justify-items: center; }
.footer__brand { color: #fff; }
.footer__brand span { color: #B9AE9E; }
.footer__tag { color: #B9AE9E; font-size: .95rem; }
.footer__social { display: flex; gap: 1rem; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #EAE3D9; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.footer__social a svg { width: 20px; height: 20px; }
.footer__social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer__copy { color: #8C8273; font-size: .82rem; margin-top: .5rem; }

/* ---------- Reveal animations ---------- */
/* Hidden state applies only when JS is active, so no-JS users always see content */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .09s; }
.reveal[data-reveal-delay="2"] { transition-delay: .18s; }
.reveal[data-reveal-delay="3"] { transition-delay: .27s; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { max-width: 460px; margin-inline: auto; width: 100%; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 560px) {
  .nav__links { display: none; }
  .btn--small { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; max-width: 420px; }
  .card--wide { grid-column: auto; }
  .hero__title { font-size: clamp(2.6rem, 8vw, 3.4rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover .card__img img { transform: none; }
}
