/* Little Pebble Craftworks
   Palette drawn from the misty painting and the logo. */
:root {
  --paper: #F7F3EE;
  --paper-warm: #F6F3EF;
  --linen: #EFE7DE;
  --linen-deep: #DCD4CA;
  --blush: #DCCBBE;
  --stone: #B6A898;
  --mist: #B4BDBA;
  --sea-glass: #8E9F9C;
  --sage: #5E6B53;        /* buttons, labels: passes contrast on paper */
  --sage-light: #6F7D63;
  --slate: #4B5553;
  --ink: #3A3833;
  --pebble-dot: #B89384;
  --muted: #6B665F;
  --mist-bg: #EEEFEB;

  /* Section backgrounds, sampled from Cindy's handoff mockup */
  --bg-page: #FAF9F6;
  --bg-header: #FBFAF7;
  --bg-hero: #F5F3EE;
  --bg-band: #F3F1EC;
  --bg-values: #F7F6F2;
  --bg-footer: #F4F4EE;
  --line: #E6E2DA;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --content: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-block;
  font-size: clamp(11px, 0.85vw, 15px);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}

.button {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  border: 1px solid var(--sage);
  font-family: var(--sans);
  font-size: clamp(11px, 0.8vw, 14px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.1em 2.2em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.button:hover, .button:focus-visible { background: var(--slate); border-color: var(--slate); }
.button--ghost { background: transparent; color: var(--sage); padding: 0.85em 1.5em; }
.button--ghost:hover, .button--ghost:focus-visible { background: var(--sage); color: #fff; border-color: var(--sage); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sea-glass);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; mix-blend-mode: multiply; }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1; }
.brand-name small {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em;
  color: var(--slate); margin-left: 6px;
}
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 40px); }
.nav-links a {
  font-size: clamp(11px, 0.75vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sage); }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--stone); color: var(--ink);
  font: 400 11px var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px 14px; min-height: 44px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  background: var(--bg-hero);
  height: clamp(360px, 40vw, 760px);
}
.hero-copy { text-align: center; padding: clamp(24px, 3vw, 64px) 2vw clamp(24px, 3vw, 64px) 4vw; }
.hero h1 { font-size: clamp(48px, 6.4vw, 124px); line-height: 1; color: #3F4442; }
.hero .craftworks {
  font-size: clamp(16px, 1.75vw, 34px);
  letter-spacing: 0.42em; padding-left: 0.42em;
  text-transform: uppercase; color: #3F4442;
  margin: 0.6em 0 0.8em;
}
.hero .sprig { width: clamp(80px, 7vw, 140px); margin: 0 auto 1.2vw; }
.tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.9vw, 36px);
  color: var(--slate);
  margin: 0 0 1.6em;
}
.tagline span { color: var(--stone); font-style: normal; margin: 0 0.5em; }
.hero-image { position: relative; align-self: stretch; overflow: hidden; }
.hero-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 6vw, 120px) var(--gutter); }

.rule-heading { display: flex; align-items: center; justify-content: center; gap: 18px; }
.rule-heading::before, .rule-heading::after {
  content: ''; height: 1px; width: clamp(48px, 10vw, 200px); background: var(--stone);
}
.intro { text-align: center; }
.intro p {
  font-size: clamp(16px, 1.3vw, 23px);
  color: var(--slate);
  max-width: 34em;
  margin: 1em auto 0;
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 44px);
  max-width: var(--content);
  margin: clamp(32px, 3.5vw, 64px) auto 0;
  padding: 0;
  list-style: none;
}
.category { text-align: center; }
.category a { display: block; }
.category .photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--linen); }
.category img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category a:hover img { transform: scale(1.03); }
.category h3 { font-size: clamp(22px, 1.9vw, 34px); margin-top: 16px; }
.category .cta {
  font-size: clamp(11px, 0.8vw, 14px); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); margin-top: 6px;
}
.category.is-soon img { filter: grayscale(0.35); opacity: 0.75; }
.category.is-soon .cta { color: var(--muted); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg-page);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 9px; color: var(--slate);
}

/* Story */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg-band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: clamp(420px, 38vw, 720px);
}
.story-art {
  background: var(--bg-band);
  display: flex; align-items: center; justify-content: center;
  padding: 36px;
}
.arch {
  position: relative;
  width: min(62%, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(58, 56, 51, 0.18);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch img.portrait { object-position: 50% 30%; }
.arch--placeholder {
  background: #E8E4DC;
  display: flex; align-items: center; justify-content: center;
}
.arch--placeholder img { width: auto; height: 55%; opacity: 0.5; object-fit: contain; }
.arch-label {
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate);
}
.arch-label--light { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.story-copy { padding: clamp(40px, 5vw, 96px) 4vw; align-self: center; }
.story h2 { font-size: clamp(34px, 3.4vw, 64px); margin: 10px 0 18px; }
.story p { color: var(--slate); max-width: 30em; margin: 0 0 1.6em; }

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  padding: clamp(32px, 3vw, 56px) var(--gutter);
  background: var(--bg-values);
  border-bottom: 1px solid var(--line);
}
.value { padding: 0 16px; }
.value + .value { border-left: 1px solid var(--line); }
.value svg { width: clamp(28px, 2.2vw, 44px); height: clamp(28px, 2.2vw, 44px); color: var(--sage-light); margin: 0 auto 10px; display: block; }
.value h3 {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(11px, 0.85vw, 15px); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate); line-height: 1.7;
}
.value p { margin: 4px 0 0; font-size: clamp(13px, 0.95vw, 16px); color: var(--muted); }

/* Newsletter */
.newsletter {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--bg-page);
}
.newsletter .corner {
  position: absolute; bottom: -10px; height: 85%; opacity: 0.45; pointer-events: none;
}
.newsletter .corner--left { left: 2vw; transform: scaleX(-1) rotate(-8deg); }
.newsletter .corner--right { right: 2vw; transform: rotate(-8deg); }
.newsletter-inner { position: relative; max-width: 640px; margin: 0 auto; }
.newsletter h2 { font-size: clamp(30px, 2.8vw, 52px); margin-top: 10px; }
.newsletter p { color: var(--slate); margin: 10px 0 24px; }
.signup { display: flex; justify-content: center; }
.signup input {
  width: clamp(240px, 26vw, 420px);
  border: 1px solid var(--stone); border-right: 0;
  background: #fff; color: var(--ink);
  padding: 14px 16px; font: 300 15px var(--sans);
  min-height: 48px;
}
.signup .button { min-height: 48px; }
.signup-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.signup-status { min-height: 1.7em; margin-top: 10px; font-size: clamp(15px, 1.1vw, 18px); font-weight: 400; color: var(--sage); }
.signup-status.is-error { color: #8A4B3C; font-weight: 500; }

/* Success card that replaces the form */
.signup-success {
  max-width: 520px;
  margin: 28px auto 0;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--sage);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
}
.signup[hidden], .signup-success[hidden] { display: none; }
.signup-success svg { width: 56px; height: 56px; color: var(--sage); margin: 0 auto 12px; display: block; }
.signup-success h3 { font-size: clamp(30px, 2.6vw, 44px); margin-bottom: 12px; }
.signup-success p { margin: 0 0 10px; color: var(--slate); font-size: clamp(16px, 1.2vw, 20px); }
.signup-success strong { display: block; margin: 4px 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.signup-success .signup-hint { font-size: 14px; color: var(--muted); }
.signup-again {
  margin-top: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 400 12px var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); border-bottom: 1px solid var(--blush);
}
.signup-success.is-celebrating { animation: signup-in 0.5s ease-out; }
@keyframes signup-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .signup-success.is-celebrating { animation: none; }
}
.signup { flex-wrap: wrap; }
.signup .button:disabled { opacity: 0.6; cursor: wait; }
.signup .cf-turnstile { flex-basis: 100%; display: flex; justify-content: center; }
.signup .cf-turnstile iframe { margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding: 28px var(--gutter);
  background: var(--bg-footer); color: var(--slate);
  border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.06em;
}
.site-footer a { color: var(--slate); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-brand { color: var(--ink); }
.footer-brand { font-family: var(--serif); font-size: 22px; letter-spacing: 0; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 18px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-icon { width: 1.15em; height: 1.15em; flex: none; }
.site-footer .footer-social { gap: clamp(24px, 3vw, 40px); }
.site-footer .footer-social a {
  font-size: 16px; font-weight: 400; letter-spacing: 0;
  color: var(--ink);
}
.footer-meta { width: 100%; font-size: 12px; color: var(--muted); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* ---------- Meet the Artists page ---------- */
.page-header { text-align: center; background: var(--bg-hero); padding-bottom: clamp(32px, 3vw, 56px); }
.page-header h1 { font-size: clamp(44px, 5vw, 96px); margin-top: 12px; }
.page-header .sprig { width: clamp(80px, 7vw, 140px); margin: 20px auto; }
.page-header p { color: var(--slate); max-width: 34em; margin: 0 auto; font-size: clamp(16px, 1.2vw, 22px); }

.artist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.artist .arch {
  width: min(100%, 420px); margin: 0 auto;
  box-shadow: 0 22px 48px rgba(58, 56, 51, 0.38), 0 6px 14px rgba(58, 56, 51, 0.18);
}
.artist h2 { font-size: clamp(40px, 4vw, 76px); margin: 10px 0 6px; }
.artist .makes { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.5vw, 28px); color: var(--slate); margin: 0 0 1em; }
.artist blockquote {
  margin: 0 0 1.2em; padding-left: 20px;
  border-left: 2px solid var(--blush);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 1.7vw, 30px); line-height: 1.45; color: var(--ink);
}
.artist p { color: var(--slate); max-width: 34em; }
.artist-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 1.6em; }
.text-link {
  font-size: clamp(11px, 0.8vw, 14px); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); border-bottom: 1px solid var(--blush); padding-bottom: 3px;
}

.more-makers {
  max-width: 1180px; margin: 0 auto;
  border: 1px dashed var(--stone);
  background: var(--bg-band);
  padding: clamp(32px, 4vw, 64px);
  text-align: center;
}
.more-makers h2 { font-size: clamp(26px, 2.2vw, 40px); margin-bottom: 10px; }
.more-makers p { color: var(--slate); margin: 0 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-header); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .header-etsy { display: none; }

  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-copy { padding: 48px 16px 32px; }
  .hero-image { height: 280px; }
  .hero-image img { -webkit-mask-image: none; mask-image: none; }
  .hero .sprig { margin-bottom: 16px; }

  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .story { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; row-gap: 28px; }
  .value + .value { border-left: 0; }
  .newsletter .corner { display: none; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup input { width: 100%; border-right: 1px solid var(--stone); border-bottom: 0; }
  .artist { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
  .footer-meta { justify-content: center; }
}
