/* =========================================================
   Lynn Germain — Handmade Beaded Jewelry
   Aesthetic: "Atelier" — warm editorial gallery for a maker
   Palette: bone / ink / peacock-teal / copper
   Type: Fraunces (display) + Hanken Grotesk (body)
   ========================================================= */

:root {
  --bone:        #f1e9da;
  --bone-2:      #e8ddc8;
  --cream:       #faf5ea;
  --ink:         #211c17;
  --ink-soft:    #5b5247;
  --peacock:     #0e564f;
  --peacock-deep:#093e38;
  --peacock-ink: #06302b;
  --copper:      #b0673a;
  --copper-soft: #c88a5b;
  --line:        #cdbfa6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --gut: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
}
.kicker--light { color: var(--copper-soft); }

.section-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-note, .section-title + p {
  color: var(--ink-soft);
  margin-top: 1.4rem;
  font-size: 1.05rem;
}

/* ---------- beaded divider motif ---------- */
.beaded { display: flex; gap: 0.55rem; align-items: center; margin-top: 2.4rem; }
.beaded span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--peacock);
  box-shadow: inset -1px -1px 1px rgba(0,0,0,0.25);
}
.beaded span.c { background: var(--copper); width: 11px; height: 11px; }
.beaded--sm span { width: 7px; height: 7px; }
.beaded--sm span.c { width: 8px; height: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--peacock); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(14,86,79,0.7); }
.btn--solid:hover { background: var(--peacock-deep); box-shadow: 0 16px 30px -12px rgba(14,86,79,0.8); }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--copper { background: var(--copper); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(176,103,58,0.8); font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.01em; }
.btn--copper:hover { background: var(--copper-soft); }
.btn--full { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
  padding: 0.4rem 0;
}
.nav.is-stuck {
  background: rgba(241,233,218,0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(120,105,80,0.18);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem var(--gut);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -0.01em; }
.wordmark__sub { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--copper); margin-top: 0.35rem; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.92rem; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--copper); transition: width 0.4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1.5px solid var(--peacock); color: var(--peacock);
  padding: 0.5rem 1.25rem; border-radius: 100px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--peacock); color: var(--cream); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0 var(--gut);
  max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
  background: rgba(241,233,218,0.96); backdrop-filter: blur(14px);
}
.nav__mobile a { padding: 0.9rem 0; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.4rem; border-bottom: 1px solid var(--line); }
.nav.is-open .nav__mobile { max-height: 60vh; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: clamp(7rem, 14vh, 11rem) 0 clamp(3rem, 6vh, 6rem); }
.hero__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 350;
  font-size: clamp(3rem, 1.5rem + 8vw, 7rem);
  line-height: 0.92; letter-spacing: -0.025em; margin: 0.5rem 0 1.8rem;
}
.hero__title span { display: block; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--peacock); }
.hero__lede { max-width: 30ch; color: var(--ink-soft); font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero__media { position: relative; }
.hero__figure {
  position: relative; border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(33,28,23,0.55);
  outline: 1px solid rgba(255,255,255,0.4); outline-offset: -1px;
}
.hero__figure::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(250,245,234,0.5);
  pointer-events: none;
}
.hero__figure img { width: 100%; height: clamp(360px, 52vh, 560px); object-fit: cover; }
.hero__figure figcaption {
  position: absolute; left: 16px; bottom: 14px; color: var(--cream);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.hero__tag {
  position: absolute; top: -18px; right: -10px;
  background: var(--copper); color: var(--cream);
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  line-height: 1.1; padding: 0 12px;
  box-shadow: 0 12px 24px -12px rgba(176,103,58,0.9);
  transform: rotate(-8deg);
}

/* =========================================================
   CREED (dark band)
   ========================================================= */
.creed {
  background: var(--peacock-deep); color: var(--cream);
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 12vh, 9rem) 0;
}
.creed::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(circle at 20% 20%, rgba(176,103,58,0.25), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(14,86,79,0.6), transparent 50%);
}
.creed__inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 var(--gut); text-align: center; }
.creed__mark { color: var(--copper-soft); font-size: 1.8rem; margin-bottom: 1.5rem; }
.creed__quote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
  line-height: 1.22; letter-spacing: -0.01em;
}
.creed__by { margin-top: 2rem; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; color: var(--copper-soft); }

/* =========================================================
   WORK / GALLERY
   ========================================================= */
.work { padding: clamp(4.5rem, 11vh, 8rem) var(--gut); max-width: var(--maxw); margin: 0 auto; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; }
.filter {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-soft);
  background: transparent; border: 1.5px solid var(--line);
  padding: 0.5rem 1.2rem; border-radius: 100px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.gallery { column-count: 3; column-gap: 1.25rem; }
.tile {
  position: relative; break-inside: avoid; margin-bottom: 1.25rem;
  border-radius: 5px; overflow: hidden; cursor: pointer;
  background: var(--bone-2);
  box-shadow: 0 18px 36px -28px rgba(33,28,23,0.55);
}
.tile img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(to top, rgba(9,62,56,0.82) 0%, rgba(9,62,56,0.15) 45%, transparent 70%);
  color: var(--cream); opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.tile:hover figcaption { opacity: 1; transform: translateY(0); }
.tile__title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; }
.tile__cat { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper-soft); margin-top: 0.4rem; }
.tile.is-hidden { display: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--cream); padding: clamp(4.5rem, 12vh, 8.5rem) var(--gut); }
.about__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.about__media { position: relative; }
.about__portrait {
  width: clamp(150px, 22vw, 220px); height: clamp(150px, 22vw, 220px);
  border-radius: 50%; object-fit: cover;
  border: 5px solid var(--cream); outline: 1.5px solid var(--copper);
  box-shadow: 0 20px 40px -24px rgba(33,28,23,0.5);
  position: relative; z-index: 2; margin-bottom: -52px; margin-left: 8px;
}
.about__context { border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(33,28,23,0.6); }
.about__context img { width: 100%; height: clamp(300px, 40vh, 440px); object-fit: cover; }
.about__copy p { color: var(--ink-soft); margin-top: 1.3rem; max-width: 52ch; }
.about__copy .btn { margin-top: 2.2rem; }
.about__sign { font-family: var(--serif); font-style: italic; color: var(--ink) !important; font-size: 1.15rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--peacock); color: var(--cream);
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 12vh, 8.5rem) var(--gut);
}
.contact::before {
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background: radial-gradient(circle at 90% 0%, rgba(176,103,58,0.3), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(6,48,43,0.7), transparent 55%);
}
.contact__inner {
  position: relative; max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start;
}
.contact__head .section-title { color: var(--cream); }
.contact__head .contact__note { color: var(--cream); margin: 1.4rem 0 2.2rem; max-width: 40ch; }
.contact .btn--copper { margin-top: 0.5rem; }

.contact__form { background: rgba(250,245,234,0.07); border: 1px solid rgba(250,245,234,0.18); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.4rem); backdrop-filter: blur(6px); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-soft); margin-bottom: 0.5rem; }
.field label span { text-transform: none; letter-spacing: 0; color: rgba(250,245,234,0.5); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--cream);
  background: rgba(0,0,0,0.16); border: 1px solid rgba(250,245,234,0.22);
  border-radius: 6px; padding: 0.8rem 0.95rem; resize: vertical;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--copper-soft); background: rgba(0,0,0,0.28); }
.field input::placeholder, .field textarea::placeholder { color: rgba(250,245,234,0.4); }
.form-hint { font-size: 0.78rem; color: rgba(250,245,234,0.6); margin-top: 0.9rem; text-align: center; }
.form-hint.is-error { color: #ffcdb6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--bone); padding: clamp(3rem, 7vh, 5rem) var(--gut); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.wordmark--footer .wordmark__name { color: var(--bone); font-size: 1.8rem; }
.wordmark--footer .wordmark__sub { color: var(--copper-soft); }
.footer__right { text-align: right; }
.footer__right > a { color: var(--bone); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; border-bottom: 1px solid var(--copper); padding-bottom: 2px; }
.footer__right .beaded { justify-content: flex-end; margin: 1.2rem 0; }
.footer__right .beaded span { background: var(--copper-soft); }
.footer__right .beaded span.c { background: var(--bone); }
.footer__fine { font-size: 0.78rem; color: rgba(241,233,218,0.5); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,30,27,0.94); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb__stage { max-width: 90vw; max-height: 86vh; text-align: center; }
.lb__stage img { max-width: 90vw; max-height: 78vh; border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8); object-fit: contain; transform: scale(0.96); transition: transform 0.45s var(--ease); }
.lightbox.is-open .lb__stage img { transform: scale(1); }
.lb__stage figcaption { color: var(--cream); margin-top: 1.1rem; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.lb__close, .lb__nav {
  position: absolute; background: rgba(250,245,234,0.1); border: 1px solid rgba(250,245,234,0.25);
  color: var(--cream); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb__close { top: 22px; right: 24px; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lb__prev { left: 24px; }
.lb__next { right: 24px; }
.lb__close:hover, .lb__nav:hover { background: var(--copper); }
.lb__nav:hover { transform: translateY(-50%) scale(1.08); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* hero staggered load */
.hero .reveal { transition-delay: calc(var(--d, 0) * 110ms); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .gallery { column-count: 2; }
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__media { order: -1; }
  .hero__lede { max-width: 46ch; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { margin-bottom: -40px; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
  .gallery { column-count: 1; }
  .section-head { text-align: left; margin-bottom: 2.5rem; }
  .filters { justify-content: flex-start; }
  .hero__tag { width: 78px; height: 78px; font-size: 0.8rem; top: -14px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__right { text-align: left; }
  .footer__right .beaded { justify-content: flex-start; }
  .lb__nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb__prev { left: 10px; } .lb__next { right: 10px; }
}
