/* ===================================================================
   ZYVOL STUDIO — shared stylesheet
   Token system: stone / porcelain / ink / sage, oxide used as a rare whisper.
   =================================================================== */

:root{
  --stone: #EAE5DA;
  --porcelain: #F7F4EE;
  --ink: #2B2722;
  --ink-soft: #6B6258;
  --sage: #828a78;
  --oxide: #A85C3D;
  --line: #D9D2C2;

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

  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

body{
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* faint, single grain pass across every page */
body::before{
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 32px; }
button{ font-family: inherit; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--porcelain);
  padding: 10px 16px; font-size: 0.85rem; z-index: 1000;
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{ outline: 1.5px solid var(--ink); outline-offset: 4px; }

.mark svg{ display: block; }

/* ---- reveal-on-scroll (generic, used by any dynamically rendered block) ---- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ---- header ---- */
header.site{
  position: sticky; top: 0; z-index: 100;
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}
.nav-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand .mark svg{ width: 28px; height: 28px; }
.brand-text{
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.4rem; letter-spacing: 0.01em;
  color: var(--ink);
}
nav.primary{ display: flex; gap: 36px; }
nav.primary a{
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
nav.primary a:hover, nav.primary a[aria-current="page"]{ color: var(--ink); }

.nav-toggle{
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 0.78rem;
  padding: 7px 14px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}

/* ---- hero ---- */
.hero{
  position: relative;
  padding: 150px 32px 130px;
  text-align: center;
  overflow: hidden;
}
.hero-mark{
  position: absolute; top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
}
.hero-content{ position: relative; }
.eyebrow{
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 18px; font-weight: 600;
}
.hero h1{
  font-family: var(--font-display); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(3.4rem, 11vw, 7rem);
  letter-spacing: 0.01em; margin: 0 0 22px; color: var(--ink);
}
.pronounce{
  font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--ink-soft); margin: 0 0 36px;
  font-style: italic; font-family: var(--font-display);
}
.hero p.lede{
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 440px; margin: 0 auto; font-weight: 300;
}

/* ---- generic section rhythm ---- */
section{ padding: 110px 32px; }
.section-sm{ padding: 80px 32px; }
h2{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 8px; color: var(--ink);
}
.section-head{ margin-bottom: 56px; }
.section-head .eyebrow{ margin-bottom: 14px; }

hr.divider{
  border: none; border-top: 1px solid var(--line);
  margin: 0; max-width: var(--max); margin-left: auto; margin-right: auto;
}

/* ---- page intro (used on Shop / About headers) ---- */
.page-hero{ padding: 0px 32px 20px; text-align: center; }
.page-hero h1{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 14px; color: var(--ink);
}
.page-hero p{ color: var(--ink-soft); max-width: 460px; margin: 0 auto; font-weight: 300; }

/* ---- filter bar ---- */
.filter-bar{
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 24px;
}
.filter-btn{
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft); padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover{ color: var(--ink); }
.filter-btn[aria-pressed="true"]{ color: var(--ink); border-color: var(--ink); }

/* ---- editorial collection split (home page) ---- */
.editorial{
  position: relative;
  background-image: url('images/editorial-bg.jpg');
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center center;
  background-attachment: fixed; /* Locks the image in place */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.editorial-text{
  width: 50%;
  padding: 80px 64px 80px 32px;
  display: flex; flex-direction: column; justify-content: center;
  margin-left: 25%;
}
.editorial-text .eyebrow{ margin-bottom: 14px; }
.editorial-wordmark{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 7vw, 5rem);
  margin: 0 0 18px; color: var(--ink); line-height: 1;
}
.editorial-rule{
  width: 40px; height: 1px; background: var(--oxide);
  margin: 0 0 30px; border: none;
}
.editorial-headline{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  margin: 0 0 28px; color: var(--ink); line-height: 1.4;
}
.editorial-text p.body{
  font-size: 0.95rem; color: var(--ink-soft); font-weight: 300;
  margin: 0 0 16px; line-height: 1.8; max-width: 380px;
}
.editorial-divider{
  width: 40px; height: 1px; background: var(--line);
  margin: 24px 0; border: none;
}
.editorial-tagline{
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--sage);
  margin: 0 0 28px; line-height: 1.6;
}
.editorial-attribution{
  font-size: 0.85rem; color: var(--ink-soft); font-weight: 300;
  margin: 0; line-height: 1.7;
}
.editorial-attribution a{
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--sage);
}
.editorial-attribution a:hover{ color: var(--oxide); border-color: var(--oxide); }
@media (max-width: 820px){
  .editorial{ background-position: left center; }
  .editorial-text{
    width: 100%;
    padding: 52px 80px 50px 80px;
    margin-left: 0;
    background: rgba(242, 238, 231, 0.92);
  }
  .editorial-text p.body{ max-width: 100%; }
}

/* ---- footer legal links ---- */
.foot-legal{
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.foot-legal a{
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.foot-legal a:hover{ color: var(--ink); }

/* ---- legal pages ---- */
.legal-wrap{ max-width: 680px; }
.legal-wrap h2{
  font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); margin: 40px 0 12px;
}
.legal-wrap h2:first-of-type{ margin-top: 0; }
.legal-wrap p{
  color: var(--ink-soft); font-size: 0.98rem; font-weight: 300;
  margin: 0 0 16px; line-height: 1.8;
}
.legal-wrap a{ color: var(--ink); border-bottom: 1px solid var(--sage); }
.legal-wrap a:hover{ color: var(--oxide); border-color: var(--oxide); }
.legal-updated{
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 48px; font-weight: 600;
}

.filter-bar.filter-bar-sub{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 36px;
  margin-top: -16px;
}
.filter-bar.filter-bar-sub .filter-btn{
  font-size: 0.78rem; color: var(--ink-soft);
}
.filter-bar.filter-bar-sub .filter-btn[aria-pressed="true"]{
  color: var(--ink-soft); border-color: var(--ink-soft);
}
.product-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 32px;
}
.product-card{ display: block; }
.card-image{
  position: relative;
  aspect-ratio: 5/4;
  background: linear-gradient(160deg, var(--porcelain), var(--stone));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}
.product-card:hover .card-image{ border-color: var(--ink-soft); }
.card-image svg{ width: 40%; height: 40%; opacity: 0.32; }
.card-badge{
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--stone); border: 1px solid var(--line);
  padding: 4px 9px; color: var(--ink-soft);
}
.card-eyebrow{
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 8px; font-weight: 600;
}
.card-name{
  font-family: var(--font-body); font-weight: 600;
  font-size: 1.05rem; margin: 0 0 6px; color: var(--ink);
}
.card-price{ font-size: 0.92rem; color: var(--ink-soft); }
.card-price.is-sold{ font-style: italic; }

/* ---- product detail page ---- */
.product-detail{
  display: flex; gap: 72px; align-items: flex-start;
}
.gallery{ flex: 1 1 50%; }
.gallery-main{
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--porcelain), var(--stone));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 16px;
}
.gallery-main svg{ width: 34%; height: 34%; opacity: 0.32; }
.gallery-main .ph-label{
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.65;
}
.gallery-thumbs{ display: flex; gap: 12px; }
.gallery-thumb{
  flex: 1; aspect-ratio: 1/1; cursor: pointer;
  background: var(--porcelain);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.gallery-thumb[aria-pressed="true"]{ border-color: var(--ink); color: var(--ink); }

.product-info{ flex: 1 1 50%; }
.product-info .eyebrow{ margin-bottom: 14px; }
.product-title{
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 10px; color: var(--ink);
}
.product-price{ font-size: 1.15rem; color: var(--ink); margin: 0 0 26px; }
.product-material{ color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 4px; font-weight: 500; }
.product-dimensions{ color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 26px; }
.product-description{ color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 34px; font-weight: 300; max-width: 460px; }

.back-link{
  display: inline-block; margin-bottom: 40px;
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.back-link:hover{ color: var(--ink); border-color: var(--ink); }

.buy-button{
  display: inline-block;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink);
  padding: 15px 36px;
  transition: background 0.2s ease, color 0.2s ease;
}
.buy-button:hover{ background: var(--ink); color: var(--porcelain); }
.buy-button.is-sold{
  border-color: var(--line); color: var(--ink-soft);
  pointer-events: none;
}

@media (max-width: 820px){
  .product-detail{ flex-direction: column; gap: 36px; }
}

/* ---- footer social icons ---- */
.foot-social{ display: flex; gap: 18px; align-items: center; }
.foot-social a{
  color: var(--ink-soft); display: block; line-height: 0;
  transition: color 0.2s ease;
}
.foot-social a:hover{ color: var(--ink); }
.foot-social svg{ width: 16px; height: 16px; display: block; }
.foot-bottom{
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom .foot-text{ font-size: 0.72rem; color: var(--ink-soft); }
.steps{ list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 560px; }
.steps li{
  position: relative; padding: 20px 0 20px 44px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 0.98rem; font-weight: 300;
}
.steps li:last-child{ border-bottom: none; }
.steps li::before{
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 18px;
  font-family: var(--font-display); font-style: italic;
  color: var(--sage); font-size: 1rem;
}

/* ---- collection landing page ---- */
.collection-hero{
  width: 100%;
  aspect-ratio: 1024/612;
  overflow: hidden;
  background: var(--porcelain);
}
.collection-hero img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.collection-copy{ max-width: 640px; margin: 0 auto; }
.collection-head{
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 56px;
}
.collection-head h1{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 3.8rem); margin: 0; color: var(--ink);
}
.collection-head .eyebrow{ margin: 0; }
.collection-dek{
  font-family: var(--font-display); font-weight: 400; font-style: normal;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.5;
  color: var(--ink); margin: 0 0 36px;
}
.collection-copy p.body{
  color: var(--ink-soft); font-size: 1.04rem; font-weight: 300;
  margin: 0 0 22px;
}
.collection-tagline{
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.15rem; color: var(--ink); text-align: center;
  margin: 56px 0 0; padding-top: 40px; border-top: 1px solid var(--line);
}
.collection-foot{
  text-align: center; margin-top: 28px;
  font-size: 0.92rem; color: var(--ink-soft); font-weight: 300;
}
.collection-foot a{ color: var(--ink); border-bottom: 1px solid var(--sage); }
.collection-foot a:hover{ color: var(--oxide); border-color: var(--oxide); }

/* ---- field notes — index cards ---- */
.notes-list{ display: flex; flex-direction: column; gap: 0; }

.note-card{
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  transition: background 0.15s ease;
}
.note-card:first-child{ border-top: 1px solid var(--line); }
.note-card-inner{ max-width: 680px; }

.note-meta{
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.note-date{
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage); font-weight: 600;
}
.note-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.note-tag{
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 3px 8px; color: var(--ink-soft);
}
.note-title{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 14px; color: var(--ink);
  transition: color 0.15s ease;
}
.note-card:hover .note-title{ color: var(--ink-soft); }
.note-excerpt{
  color: var(--ink-soft); font-size: 0.98rem; font-weight: 300;
  margin: 0 0 20px; line-height: 1.7; max-width: 580px;
}
.note-read{
  font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.note-card:hover .note-read{ color: var(--ink-soft); border-color: var(--ink-soft); }

/* ---- field note — individual entry ---- */
.note-entry{ max-width: 640px; }
.note-entry-meta{
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.note-entry-title{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 40px; color: var(--ink); line-height: 1.2;
}
.note-entry-image{
  width: 100%; margin: 0 0 48px;
}
.note-entry-image img{
  width: 100%; display: block;
  border: 1px solid var(--line);
}
.note-entry-image figcaption{
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage); margin-top: 12px; font-weight: 600;
}
.note-entry-body .note-body-p{
  color: var(--ink-soft); font-size: 1.08rem; font-weight: 300;
  margin: 0 0 26px; line-height: 1.8; max-width: 580px;
}
.note-entry-body .note-body-p em{ font-family: var(--font-display); font-style: italic; color: var(--ink); }

/* ---- about page ---- */
.about-wrap{ max-width: 680px; }
.about-wrap p{ color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 22px; font-weight: 300; }
.about-wrap a{ color: var(--ink); border-bottom: 1px solid var(--sage); }
.about-wrap a:hover{ color: var(--oxide); border-color: var(--oxide); }
.about-wrap em{ font-style: italic; }

.about-images{
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
  margin: 48px 0 56px;
}
.about-image{
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--porcelain), var(--stone));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.about-image span{
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.6;
}
@media (max-width: 700px){
  .about-images{ grid-template-columns: 1fr; }
}

/* ---- care ---- */
.care-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 760px;
}
.care-col .eyebrow{ margin-bottom: 22px; }
.care-col ul{ list-style: none; padding: 0; margin: 0; }
.care-col li{
  color: var(--ink-soft); font-size: 0.98rem; font-weight: 300;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.care-col li:last-child{ border-bottom: none; }
@media (max-width: 600px){
  .care-grid{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---- contact ---- */
.contact-wrap{ max-width: 520px; }
.contact-wrap p{ color: var(--ink-soft); margin: 0 0 28px; font-size: 1.05rem; font-weight: 300; }
.mailto-link{
  font-size: 1.05rem; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mailto-link:hover{ color: var(--oxide); border-color: var(--oxide); }
noscript.email-fallback{
  display: block; margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft);
}

/* ---- footer ---- */
footer{
  border-top: 1px solid var(--line);
  padding: 50px 32px;
}
.foot-row{
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.foot-brand{ display: flex; align-items: center; gap: 10px; }
.foot-brand .mark svg{ width: 18px; height: 18px; }
.foot-text{ font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.foot-links{ display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot-links a{ font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.foot-links a:hover{ color: var(--ink); }

@media (max-width: 760px){
  nav.primary{
    position: fixed; inset: 64px 0 auto 0;
    background: var(--stone); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 20px 32px; gap: 20px;
    transform: translateY(-110%); transition: transform 0.25s ease;
  }
  nav.primary.open{ transform: translateY(0); }
  .nav-toggle{ display: inline-block; }
  .hero{ padding: 96px 24px 80px; }
  .hero-mark{ width: 380px; height: 380px; }
  section{ padding: 76px 24px; }
  .section-sm{ padding: 56px 24px; }
}
