/* ============================================================
   Karin Kriel — one-page connect site
   Palette drawn from the family photo: moss/olive from the dress
   foliage, warm rust from the florals, cool dusk-blue from the
   stage wash, set against a warm paper ground.

   Section order: Hero → Family → Connect → NXT Move → Footer
   ============================================================ */

:root{
  --cream:      #F5F1E7;
  --cream-alt:  #EDE6D6;
  --ink:        #221E1A;
  --ink-soft:   #4A443C;
  --moss:       #465241;
  --moss-dark:  #333C2E;
  --rust:       #B15E2E;
  --rust-deep:  #8E4B25;
  --dusk:       #2E4356;
  --stone:      #D9D1BE;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --fs-hero: clamp(3.6rem, 14vw, 9.5rem);
  --fs-h2: clamp(2.4rem, 6vw, 4.4rem);
  --fs-quote: clamp(1.5rem, 3.6vw, 2.4rem);
  --fs-body: clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-label: 0.78rem;

  --container: 1180px;
  --edge: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, blockquote, p, figure, ul{ margin: 0; }

ul{ list-style: none; padding: 0; }

/* Anchored sections must clear the fixed header when jumped to */
[id]{ scroll-margin-top: 5.5rem; }

.eyebrow{
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.eyebrow--light{ color: rgba(245,241,231,0.82); }

/* focus visibility — currentColor so the ring always meets contrast
   against whatever section background it lands on */
a:focus-visible, button:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ============ scroll reveal ============ */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 var(--edge);
  background: rgba(28,25,21,0.82);
  border-bottom: 1px solid rgba(245,241,231,0.1);
}
.header-inner{
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
}
.header-mark{
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.nav-desktop{
  display: none;
  gap: 2.2rem;
}
.nav-desktop a{
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-desktop a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.nav-desktop a:hover::after{ right: 0; }

.menu-toggle{
  width: 44px; height: 44px;
  background: none;
  border: 0;
  padding: 0;
  margin-right: calc(-1 * (44px - 34px) / 2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--cream);
  position: relative;
  z-index: 60;
}
.menu-toggle span{
  display: block;
  height: 1.5px;
  width: 26px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* mobile drawer */
.drawer{
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.drawer.is-open{ transform: translateY(0); }
.drawer-nav{
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: center;
}
.drawer-nav a{
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--cream);
  font-weight: 440;
}

@media (min-width: 860px){
  .nav-desktop{ display: flex; }
  .menu-toggle{ display: none; }
  .drawer{ display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media{
  position: absolute;
  inset: 0;
}
.hero-photo{
  width: 100%; height: 100%;
  object-fit: cover;
  /* Square portrait: 47% x keeps her face centred when the crop is
     horizontal (tall phones); 26% y keeps her head well clear of the
     fixed header when the crop is vertical (wide desktops). */
  object-position: 47% 26%;
  filter: grayscale(0.18) contrast(1.05) brightness(0.9);
  transform: scale(1.06);
  opacity: 0;
  transition: transform 1.6s var(--ease), opacity 1.2s ease;
}
.hero-photo.is-loaded{
  opacity: 1;
  transform: scale(1);
}
/* Very short, wide viewports crop hardest vertically — ease the head down. */
@media (min-width: 900px) and (max-height: 720px){
  .hero-photo{ object-position: 47% 20%; }
}
.hero-tone{
  position: absolute;
  inset: 0;
  /* The warm stage light in the photo already sits in the rust family,
     so we scrim rather than recolour. */
  background:
    linear-gradient(180deg, rgba(34,30,26,0.44) 0%, rgba(34,30,26,0.10) 32%, rgba(34,30,26,0.20) 52%, rgba(34,30,26,0.95) 92%),
    linear-gradient(100deg, rgba(70,82,65,0.16), rgba(46,67,86,0.14));
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) 4.2rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.wordmark{
  font-family: var(--font-display);
  font-weight: 440;
  font-size: var(--fs-hero);
  line-height: 0.92;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0.3rem 0 1.3rem;
}
.wordmark .line{ display: block; }
.hero-line{
  color: rgba(245,241,231,0.86);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  max-width: 30em;
}

.scroll-cue{
  position: absolute;
  right: var(--edge);
  bottom: 2rem;
  z-index: 2;
  width: 22px;
}
.scroll-cue-track{
  display: block;
  height: 46px;
  width: 1px;
  background: rgba(245,241,231,0.35);
  position: relative;
  overflow: hidden;
}
.scroll-cue-dot{
  position: absolute;
  top: -20px; left: -1.5px;
  width: 4px; height: 20px;
  background: var(--cream);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ top: -20px; }
  60%{ top: 46px; }
  100%{ top: 46px; }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue-dot{ animation: none; top: 0; }
}
@media (max-width: 640px){ .scroll-cue{ display:none; } }

/* ============================================================
   Shared type
   ============================================================ */
.pull-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: var(--fs-quote);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.text-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: gap .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.text-link:hover{
  gap: 0.9rem;
  color: var(--rust-deep);
  border-color: var(--rust-deep);
}

/* ============================================================
   Family — the opening piece
   ============================================================ */
.family{
  background: var(--cream-alt);
  padding: 6.5rem var(--edge);
}
.family-figure,
.family-text{
  max-width: 620px;
  margin: 0 auto;
}
.family-figure img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Group shot: 50% x keeps all four centred, 22% y keeps every face
     in frame when the 4:5 crop trims the bottom of the stage. */
  object-position: 50% 22%;
  filter: saturate(1.05) contrast(1.02);
}
.family-figure figcaption{
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.family-text{
  margin-top: 2.6rem;
  text-align: center;
}
.family-copy{
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 38em;
  margin: 0 auto;
}

@media (min-width: 900px){
  .family{
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .family-figure{ margin: 0; }
  .family-text{
    margin-top: 0;
    text-align: left;
  }
  .family-copy{ margin: 0; }
}

/* ============================================================
   Connect — signature block
   ============================================================ */
.connect{
  background: var(--moss);
  color: var(--cream);
  padding: 6rem var(--edge) 4.5rem;
}
.connect-head{
  max-width: var(--container);
  margin: 0 auto 3rem;
}
.connect-title{
  font-family: var(--font-display);
  font-weight: 440;
  font-size: var(--fs-h2);
  line-height: 1.02;
  color: var(--cream);
}
.connect-group{
  max-width: var(--container);
  margin: 0 auto;
}
.connect-group + .connect-group{
  margin-top: 3.4rem;
}
.group-label{
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.62);
  margin-bottom: 0.9rem;
}
.connect-list{
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid rgba(245,241,231,0.28);
}
.connect-row{
  border-bottom: 1px solid rgba(245,241,231,0.28);
}
.connect-row > a:first-child{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0.2rem;
  box-shadow: inset 0 0 0 0 var(--rust);
  transition: padding-left .35s var(--ease), box-shadow .35s var(--ease);
}
.connect-row > a:first-child:hover,
.connect-row > a:first-child:focus-visible{
  padding-left: 1.2rem;
  box-shadow: inset 4px 0 0 0 var(--rust);
}
.connect-text{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
}
.connect-label{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 440;
}
.connect-sub{
  font-size: 0.85rem;
  color: rgba(245,241,231,0.8);
  letter-spacing: 0.02em;
}
.connect-row a:hover .connect-sub,
.connect-row a:focus-visible .connect-sub{
  color: rgba(245,241,231,0.98);
}
.connect-arrow{
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.connect-row a:hover .connect-arrow,
.connect-row a:focus-visible .connect-arrow{
  transform: translateX(6px);
}

/* secondary link inside a row (e.g. Sisterhood's Instagram) */
.connect-alt{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.6rem 0 1.5rem 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245,241,231,0.72);
  border-bottom: 1px solid rgba(245,241,231,0.32);
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.connect-alt:hover,
.connect-alt:focus-visible{
  color: var(--cream);
  border-color: var(--cream);
  gap: 0.7rem;
}

/* the giving row carries the rust accent by default so it reads as the
   call to action rather than just another link in the list */
.connect-row--give > a:first-child{
  padding-left: 1.2rem;
  box-shadow: inset 4px 0 0 0 var(--rust);
}
.connect-row--give > a:first-child:hover,
.connect-row--give > a:first-child:focus-visible{
  padding-left: 1.6rem;
  box-shadow: inset 6px 0 0 0 var(--rust);
}
.connect-row--give .connect-sub{ color: rgba(245,241,231,0.9); }

/* ============================================================
   Story — NXT Move (closing section)
   ============================================================ */
.story{
  padding: 7rem var(--edge);
}
.story-inner{
  max-width: var(--container);
  margin: 0 auto;
}
.story-head{
  max-width: 46rem;
}
.story-title{
  font-family: var(--font-display);
  font-weight: 440;
  font-size: var(--fs-h2);
  line-height: 1.04;
  margin-bottom: 1.4rem;
}
.story-lede{
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}
.story-body{
  display: grid;
  gap: 2.4rem;
  margin-top: 3.4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--stone);
}
.story-col h3{
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 0.9rem;
}
.story-col p{
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 34em;
  margin-bottom: 1.4rem;
}

/* photo gallery — Manila / South Africa / Poland */
.gallery{
  display: grid;
  gap: 1.4rem;
  margin-top: 3.6rem;
}
.gallery-frame{
  aspect-ratio: 4 / 5;
  background: var(--stone);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* placeholder treatment — remove [data-photo-pending] once a photo is dropped in */
.gallery-frame[data-photo-pending]{
  background:
    repeating-linear-gradient(
      45deg,
      rgba(70,82,65,0.05) 0 10px,
      transparent 10px 20px
    ),
    var(--stone);
  border: 1px dashed rgba(70,82,65,0.35);
}
.gallery-placeholder{
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74,68,60,0.6);
}
.gallery figcaption{
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (min-width: 760px){
  .story-body{ grid-template-columns: 1fr 1fr; gap: 3.2rem; }
  .gallery{ grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background: var(--dusk);
  color: var(--cream);
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem var(--edge) 2.2rem;
}
.footer-top{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(245,241,231,0.22);
}
.footer-mark{
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 440;
}
.footer-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
}
.footer-nav a{
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245,241,231,0.78);
}
.footer-nav a:hover{ color: var(--cream); }

.footer-bottom{
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(245,241,231,0.75);
}
.back-to-top{
  color: rgba(245,241,231,0.78);
}
.back-to-top:hover{ color: var(--cream); }

@media (min-width: 860px){
  .footer-top{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
