/* =========================================================
   Adore Ceramics — v3 "Atelier"
   Earthy · tactile · editorial · quiet-premium
   Cormorant Garamond (display) + Hanken Grotesk (text)
   ========================================================= */

:root {
  /* --- Palette derived from the logo ---------------------------------
     ink  #2c231f  = logo wordmark
     clay #a8634b / #bc8365 / #d7aa8e = the ceramic disc (shadow→highlight)
     cream #faf6ee = logo ground
     ------------------------------------------------------------------ */
  --paper:    #ece3d3;   /* warm oat / limestone base */
  --paper-2:  #f4eee3;   /* lighter warm */
  --tile:     #e3d8c4;   /* clay-sand tile behind photos */
  --ink:      #2c231f;   /* logo ink — warm espresso */
  --ink-soft: #6d6152;
  --ink-faint:#9a8d7a;
  --line:     rgba(44, 35, 31, 0.16);
  --line-soft:rgba(44, 35, 31, 0.09);

  --clay:      #a8634b;  /* logo disc, deep — decorative & large text */
  --clay-ink:  #8a4a31;  /* same hue, accessible for small text on paper */
  --clay-soft: #d7aa8e;  /* logo disc highlight — accents on dark */
  --dark:     #221c17;   /* espresso for dark sections */
  --cream:    #faf6ee;   /* logo ground — text on dark */

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --section: clamp(5rem, 13vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 40px 80px -46px rgba(42, 35, 28, 0.6);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
::selection { background: var(--clay); color: var(--cream); }

/* tactile paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.6; 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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - calc(var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap--wide { --wrap: 1360px; }
section { position: relative; z-index: 2; }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
.display { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.015em; }
.display em, .serif em { font-style: italic; font-weight: 400; }
.h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9em;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--clay-ink);
}
.eyebrow::before { content: ""; width: 2.2em; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.no-rule::before { display: none; }

/* refined link + buttons */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: gap .4s var(--ease), color .3s var(--ease);
}
.arrow-link:hover { gap: 1em; color: var(--clay-ink); }
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 1.05em 1.9em; font-family: var(--sans);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn svg { width: 1em; height: 1em; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--clay-ink); transform: translateY(-2px); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: var(--clay-ink); color: var(--cream); transform: translateY(-2px); }
.btn--outline { border: 1px solid var(--line); color: inherit; }
.btn--outline:hover { border-color: currentColor; transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1.5rem 0; color: var(--cream); transition: padding .4s var(--ease), color .4s var(--ease), background .4s var(--ease); }
.site-header.solid .logo-img { height: 36px; }
.site-header.solid { color: var(--ink); background: rgba(236, 227, 211, 0.86); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); box-shadow: 0 1px 0 var(--line-soft); padding: 1rem 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo-img { height: 42px; width: auto; transition: height .4s var(--ease); }
/* on the dark hero the colour logo pops; when solid it sits on light paper naturally */
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; position: relative; padding: 0.3rem 0; opacity: 0.92; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.nav-shop { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5em; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .4s var(--ease); }
.nav-shop:hover { gap: 0.9em; }
.nav-toggle { display: none; width: 30px; height: 18px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 0; } .nav-toggle span:nth-child(2) { top: 8px; } .nav-toggle span:nth-child(3) { top: 16px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* =========================================================
   Hero (dark, editorial)
   ========================================================= */
.hero { background: var(--dark); color: var(--cream); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -120px 120px -80px rgba(0,0,0,0.5); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: 100vh; padding: clamp(7rem, 14vh, 10rem) 0 clamp(3.5rem, 8vh, 6rem); }
.hero-copy .eyebrow { color: var(--clay-soft); margin-bottom: 2rem; }
.hero h1 { margin-bottom: 1.8rem; color: var(--cream); }
.hero h1 em { color: var(--clay-soft); }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(244,238,226,0.72); max-width: 42ch; margin-bottom: 2.6rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.8rem; align-items: center; }
.hero-figure { position: relative; }
.hero-figure .shot { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; box-shadow: var(--shadow); }
.hero-figure .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); background: rgba(34,28,22,0.55); backdrop-filter: blur(4px); padding: 0.5em 0.9em; border-radius: 2px; }
.hero-index { position: absolute; top: 0; right: -0.5rem; writing-mode: vertical-rl; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244,238,226,0.5); }
.hero-scroll { position: absolute; left: 0; bottom: 2rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244,238,226,0.5); display: flex; align-items: center; gap: 0.7em; }
.hero-scroll::after { content: ""; width: 40px; height: 1px; background: currentColor; }

/* =========================================================
   Manifesto
   ========================================================= */
.manifesto { padding: var(--section) 0; text-align: center; }
.manifesto p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 20ch; margin: 1.6rem auto 0; }
.manifesto p em { font-style: italic; color: var(--clay); }

/* =========================================================
   Section head
   ========================================================= */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.sec-head .num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--clay-ink); }
.sec-head h2 { margin-top: 0.6rem; max-width: 16ch; }
.sec-head p { max-width: 32ch; color: var(--ink-soft); }

/* =========================================================
   Collection (gallery grid)
   ========================================================= */
.collection { padding: var(--section) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 1.4rem; }
.filter { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); position: relative; padding-bottom: 4px; transition: color .3s var(--ease); }
.filter::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter:hover { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3vw, 3.2rem) clamp(1.4rem, 2.4vw, 2.2rem); }
.piece { display: flex; flex-direction: column; }
.piece.hide { display: none; }
.piece-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--tile); border-radius: 3px; display: block; }
.piece-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.piece:hover .piece-media img { transform: scale(1.045); }
.piece-tag { position: absolute; top: 1rem; left: 1rem; font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); background: rgba(244,238,226,0.9); padding: 0.4em 0.75em; border-radius: 2px; }
.piece-info { padding-top: 1.15rem; }
.piece-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.piece-line h3 { font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.piece-price { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; color: var(--ink-soft); }
.piece-cat { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.5rem; }
.piece-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.7rem; }
.piece-buy { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-ink); opacity: 0.9; transition: gap .4s var(--ease); }
.piece-buy svg { width: 0.9em; height: 0.9em; transition: transform .4s var(--ease); }
.piece:hover .piece-buy { gap: 0.85em; }
.piece:hover .piece-buy svg { transform: translateX(3px); }

/* =========================================================
   Featured piece
   ========================================================= */
.featured { padding: var(--section) 0; }
.featured-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.featured-media { aspect-ratio: 5/6; overflow: hidden; border-radius: 3px; background: var(--tile); box-shadow: var(--shadow); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy .eyebrow { margin-bottom: 1.6rem; }
.featured-copy h2 { margin-bottom: 1.3rem; }
.featured-copy p { color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 44ch; }
.featured-price { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 1.8rem; }
.featured-ship { font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-ink); vertical-align: middle; }

/* =========================================================
   About
   ========================================================= */
.about { padding: var(--section) 0; }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; background: linear-gradient(160deg, var(--tile), var(--paper-2)); box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; text-align: center; color: var(--ink-soft); padding: 1.5rem; }
.about-photo .ph svg { width: 38px; height: 38px; color: var(--clay); }
.about-photo .ph small { font-size: 0.78rem; }
.about-photo .ph code { background: rgba(42,35,28,0.08); padding: 0.15em 0.5em; border-radius: 3px; }
.about-photo.empty img { display: none; }
.about-photo.empty .ph { display: flex; }
.about-copy .eyebrow { margin-bottom: 1.6rem; }
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 50ch; }
.about-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.28; color: var(--ink); margin: 1.8rem 0; letter-spacing: -0.01em; }
.about-sign { margin-top: 1.8rem; }
.about-sign .n { font-family: var(--serif); font-size: 1.5rem; }
.about-sign .r { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.35rem; }

/* =========================================================
   Craft
   ========================================================= */
.craft { padding: var(--section) 0; }
.craft-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.craft-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; background: var(--tile); box-shadow: var(--shadow); }
.craft-media img { width: 100%; height: 100%; object-fit: cover; }
.craft-steps { margin-top: 0.5rem; }
.craft-step { display: flex; gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.craft-step:last-child { border-bottom: 1px solid var(--line-soft); }
.craft-step .n { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--clay-ink); flex: none; width: 2rem; }
.craft-step h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.craft-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* =========================================================
   Custom (dark band)
   ========================================================= */
.custom { padding: var(--section) 0; }
.custom-inner { background: var(--dark); color: var(--cream); border-radius: 3px; padding: clamp(3rem, 8vw, 6rem); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; position: relative; overflow: hidden; }
.custom-inner .eyebrow { color: var(--clay-soft); }
.custom h2 { margin-bottom: 1.2rem; }
.custom h2 em { color: var(--clay-soft); }
.custom p { color: rgba(244,238,226,0.72); margin-bottom: 2rem; max-width: 42ch; }
.custom-side { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; color: rgba(244,238,226,0.9); text-align: right; }

/* =========================================================
   Connect / newsletter
   ========================================================= */
.connect { padding: var(--section) 0; }
.connect-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.newsletter form { display: flex; gap: 0; margin-top: 1.8rem; max-width: 430px; border-bottom: 1px solid var(--line); }
.newsletter input { flex: 1; padding: 0.9em 0.2em; border: none; background: transparent; font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.newsletter input:focus { outline: none; }
.newsletter button { flex: none; }
.newsletter .msg { font-size: 0.85rem; color: var(--clay-ink); margin-top: 0.9rem; min-height: 1.2em; }
.connect-cards { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.connect-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 0.4rem; border-bottom: 1px solid var(--line-soft); transition: padding-left .4s var(--ease); }
.connect-card:hover { padding-left: 1rem; }
.connect-card .ico { width: 24px; height: 24px; color: var(--clay); flex: none; }
.connect-card b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.connect-card span { font-size: 0.86rem; color: var(--ink-soft); }
.connect-card .go { margin-left: auto; color: var(--ink-faint); transition: transform .4s var(--ease), color .3s var(--ease); }
.connect-card:hover .go { transform: translateX(4px); color: var(--clay-ink); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--dark); color: var(--cream); padding: clamp(4rem, 9vw, 6.5rem) 0 2.2rem; position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3.2rem; border-bottom: 1px solid rgba(244,238,226,0.14); }
.footer-brand .logo-img { height: 56px; margin-bottom: 1.4rem; }
.footer-brand p { color: rgba(244,238,226,0.6); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,238,226,0.5); margin-bottom: 1.2rem; }
.footer-col a { display: block; color: rgba(244,238,226,0.82); font-size: 0.94rem; padding: 0.34rem 0; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer-col a:hover { color: var(--cream); padding-left: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: 0.8rem; color: rgba(244,238,226,0.5); }
.footer-bottom b { color: var(--cream); font-weight: 600; }

/* =========================================================
   Reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 3rem; }
  .hero-figure { max-width: 460px; }
  .hero-index, .hero-scroll { display: none; }
  .featured-inner, .about-inner, .craft-grid, .custom-inner, .connect-inner { grid-template-columns: 1fr; }
  .featured-media, .craft-media { order: -1; max-width: 480px; }
  .about-photo { max-width: 440px; }
  .custom-side { text-align: left; }
  .nav-links, .nav-shop { display: none; }
  .nav-toggle { display: block; }
  .site-header .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0.3rem;
    background: var(--paper); color: var(--ink); padding: 1.4rem var(--gutter) 2rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .4s var(--ease);
  }
  body.nav-open .site-header { color: var(--ink); background: rgba(236,227,211,0.96); backdrop-filter: blur(14px); }
  body.nav-open .nav-links { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.05rem; letter-spacing: 0.06em; padding: 0.5rem 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .piece-line h3 { font-size: 1.3rem; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
