/* =========================================================================
   Twelve 2 Pottery design system
   Spacing: strict 4pt scale. Type: one ramp, two families. Radius: one value.
   ========================================================================= */

/* ---- 1. Tokens --------------------------------------------------------- */
:root {
  /* Spacing: a strict 4pt scale. Nothing outside this list. */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-32: 128px;

  /* Vertical rhythm for page sections: stepped, not fluid. */
  --section-y: var(--sp-16);

  /* Colour: bone paper, charcoal ink, sage accent. Nothing else. */
  --bone:       #F6F3EC;
  --bone-deep:  #EDE8DE;
  --surface:    #FFFDF9;
  --ink:        #2B2A27;
  --ink-soft:   #5C5A54;
  --ink-faint:  #666359;
  --sage:       #8FAF9F;
  --sage-deep:  #4A6A5E;
  --line:       #DFD9CD;
  --line-soft:  #E9E4DA;

  /* Type */
  --font-head: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Avenir Next", "Segoe UI", sans-serif;

  --fs-display: 40px; --lh-display: 1.04;
  --fs-h1: 32px;      --lh-h1: 1.08;
  --fs-h2: 26px;      --lh-h2: 1.15;
  --fs-h3: 20px;      --lh-h3: 1.3;
  --fs-h4: 17px;      --lh-h4: 1.4;
  --fs-lead: 17px;    --lh-lead: 1.6;
  --fs-body: 16px;    --lh-body: 1.65;
  --fs-sm: 14px;      --lh-sm: 1.55;
  --fs-xs: 12px;      --lh-xs: 1.4;

  /* Geometry: one radius, one shadow, one motion curve. */
  --radius: 3px;
  --shadow: 0 1px 2px rgba(43, 42, 39, .04), 0 12px 28px -16px rgba(43, 42, 39, .18);
  --ease: cubic-bezier(.2, .6, .3, 1);
  --dur: 180ms;

  --container: 1200px;
  --container-narrow: 680px;
  --gutter: var(--sp-6);
}

@media (min-width: 768px) {
  :root {
    --section-y: var(--sp-24);
    --gutter: var(--sp-8);
    --fs-display: 56px; --fs-h1: 40px; --fs-h2: 32px;
    --fs-h3: 22px; --fs-h4: 18px; --fs-lead: 18px;
  }
}
@media (min-width: 1200px) {
  :root { --section-y: var(--sp-32); --fs-display: 68px; --fs-h1: 48px; --fs-h2: 36px; }
}

/* ---- 2. Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
/* Intrinsic width/height attributes are set on every image to reserve layout space.
   height:auto hands sizing back to aspect-ratio so those attributes cannot fight it. */
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: var(--sp-4); top: calc(var(--sp-4) * -4);
  z-index: 100; padding: var(--sp-3) var(--sp-4);
  background: var(--ink); color: var(--bone);
  border-radius: var(--radius); font-size: var(--fs-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus-visible { top: var(--sp-4); }

/* ---- 3. Type ramp ------------------------------------------------------ */
.display, h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 40;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -.01em; }
h4 {
  font-family: var(--font-body); font-size: var(--fs-h4); line-height: var(--lh-h4);
  font-weight: 700; letter-spacing: -.005em;
}

.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-soft); text-wrap: pretty; }
.body-sm { font-size: var(--fs-sm); line-height: var(--lh-sm); }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

.eyebrow {
  font-size: var(--fs-xs); line-height: var(--lh-xs);
  letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--sage-deep);
}

.prose p + p { margin-top: var(--sp-5); }
.prose { max-width: 62ch; }

/* ---- 4. Layout --------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bone-deep); }
.section--edge { border-top: 1px solid var(--line); }

.section-head { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-12); }
.section-head p { max-width: 54ch; }
@media (min-width: 768px) {
  .section-head--split {
    flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--sp-8);
  }
  .section-head--split > div { max-width: 54ch; }
}

/* ---- 5. Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--primary { background: var(--sage-deep); color: var(--surface); }
.btn--primary:hover { background: #3E5A4F; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn--ghost { padding-inline: 0; color: var(--sage-deep); }
.btn--ghost:hover { color: var(--ink); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- 6. Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6); min-height: 72px;
}

.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; }
.brand__logo { height: 40px; width: auto; }
.brand__fallback { display: flex; align-items: center; gap: var(--sp-3); }
.brand__mark { width: 20px; height: 32px; color: var(--ink); }
.brand__name {
  font-family: var(--font-head); font-size: var(--fs-h3); line-height: 1;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 24;
  color: var(--sage-deep); letter-spacing: -.01em;
}
[data-logo-missing] .brand__logo { display: none; }
.brand__fallback { display: none; }
[data-logo-missing] .brand__fallback { display: flex; }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: var(--sp-8); }
}
.nav__link {
  position: relative; font-size: var(--fs-sm); font-weight: 600;
  text-decoration: none; color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--sage-deep); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__actions .btn { display: none; }
@media (min-width: 900px) { .header__actions .btn { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--ink); }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle__bar { display: block; width: 16px; height: 1px; background: var(--ink); }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bone); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: flex; flex-direction: column; padding-block: var(--sp-2); }
.mobile-nav a {
  display: block; padding: var(--sp-3) 0; text-decoration: none;
  font-size: var(--fs-body); font-weight: 600; color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--ink); }

/* ---- 7. Hero ----------------------------------------------------------- */
.hero { padding-block: var(--sp-16) var(--section-y); }
@media (min-width: 768px) { .hero { padding-block: var(--sp-20) var(--section-y); } }
.hero__grid { display: grid; gap: var(--sp-12); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-16); }
}
.hero__copy { display: flex; flex-direction: column; gap: var(--sp-6); align-items: flex-start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.hero__media figure { margin: 0; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--bone-deep);
}
.hero__media figure:first-child { padding-top: var(--sp-10); }
/* Two images side by side get too small to read on a phone, so below 600px the
   pair collapses to the single environmental shot at full width. */
@media (max-width: 599px) {
  .hero__media { grid-template-columns: 1fr; }
  .hero__media figure:first-child { padding-top: 0; }
  .hero__media figure:last-child { display: none; }
}

/* ---- 8. Stat strip ----------------------------------------------------- */
.stats { border-block: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stats ul { grid-template-columns: repeat(3, 1fr); } }
.stats li { padding: var(--sp-6) 0; border-bottom: 1px solid var(--line-soft); }
.stats li:last-child { border-bottom: 0; }
@media (min-width: 700px) {
  .stats li { padding: var(--sp-8) var(--sp-6); border-bottom: 0; border-left: 1px solid var(--line-soft); }
  .stats li:first-child { padding-left: 0; border-left: 0; }
  .stats li:last-child { padding-right: 0; }
}
.stats__value {
  display: flex; align-items: baseline; gap: var(--sp-2);
  font-family: var(--font-head); font-size: var(--fs-h2); line-height: 1;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 30;
}
.stats__label { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-soft); }
.stars { color: var(--sage-deep); font-size: var(--fs-h4); letter-spacing: .08em; }

/* ---- 9. Product grid --------------------------------------------------- */
.grid-products { display: grid; gap: var(--sp-8) var(--sp-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
.grid-products--featured { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-products--featured { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; }
.card__link { text-decoration: none; display: flex; flex-direction: column; gap: var(--sp-4); height: 100%; }
.card__media {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
}
.card__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  transition: transform 400ms var(--ease);
}
.card__link:hover .card__media img { transform: scale(1.03); }
.card__link:hover .card__media { border-color: var(--line); box-shadow: var(--shadow); }
.card__media, .card__link:hover .card__media {
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card__body { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
/* Cards in a row stretch to equal height, so pinning the meta line to the bottom
   keeps every price on the same baseline however long the title wraps. */
.card__meta { margin-top: auto; }
.card__title {
  font-family: var(--font-head); font-size: var(--fs-h4); line-height: 1.35;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 20; color: var(--ink);
}
.card__meta { display: flex; align-items: baseline; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-faint); padding-top: var(--sp-2); }
.card__price { color: var(--ink-soft); font-weight: 700; }
.card__tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  padding: var(--sp-1) var(--sp-2); border-radius: var(--radius);
  background: rgba(255, 253, 249, .94); border: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---- 10. Filters ------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding-bottom: var(--sp-8); margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line);
}
.filter {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.filter__count { color: inherit; opacity: .6; margin-left: var(--sp-1); }

.card[hidden] { display: none; }
.shop-count { margin-top: var(--sp-8); font-size: var(--fs-sm); color: var(--ink-faint); }

/* ---- 11. Feature list -------------------------------------------------- */
.features { display: grid; gap: var(--sp-10); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); } }
.feature { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.feature__index { font-size: var(--fs-xs); letter-spacing: .16em; color: var(--sage-deep); font-weight: 700; }

/* ---- 12. Reviews ------------------------------------------------------- */
.reviews { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-8); background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.review blockquote { font-family: var(--font-head); font-size: var(--fs-h4); line-height: 1.5; font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 20; }
.review figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--ink-faint); }
.review figcaption strong { color: var(--ink); font-weight: 700; }

/* ---- 13. Verse --------------------------------------------------------- */
.verse { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.verse__mark { width: 22px; height: 34px; color: var(--sage); }
.verse blockquote {
  font-family: var(--font-head); font-size: var(--fs-h2); line-height: 1.35;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40; max-width: 20ch;
}
.verse cite { font-style: normal; font-size: var(--fs-sm); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

/* ---- 13b. Closing band ------------------------------------------------- */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-5); }
.closing p { max-width: 48ch; }
.closing .btn { margin-top: var(--sp-2); }

/* ---- 14. About / split -------------------------------------------------- */
.split { display: grid; gap: var(--sp-12); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: var(--sp-16); } }
.split--reverse > :first-child { order: 2; }
@media (max-width: 899px) { .split--reverse > :first-child { order: 0; } }
.portrait {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--bone-deep);
}
/* If img/kaylee.jpg has not been added yet the figure is dropped entirely and the
   story runs full width, so a missing file never shows as an empty placeholder. */
[data-portrait-missing] .about-figure { display: none; }
[data-portrait-missing] .split--about { grid-template-columns: 1fr; }
.figure-note { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-faint); }

/* ---- 15. Contact ------------------------------------------------------- */
.contact-list { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 620px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .contact-list { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-8); background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.contact-card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.contact-card .btn { align-self: flex-start; margin-top: var(--sp-2); }
.contact-card p { color: var(--ink-soft); }

.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  width: 100%; padding: var(--sp-6) 0; text-align: left;
  font-family: var(--font-head); font-size: var(--fs-h3); line-height: 1.3;
  font-variation-settings: "SOFT" 20, "WONK" 0, "opsz" 24;
  transition: color var(--dur) var(--ease);
}
.faq__trigger:hover { color: var(--sage-deep); }
.faq__icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__panel { overflow: hidden; }
.faq__panel[hidden] { display: none; }
.faq__panel > div { padding-bottom: var(--sp-6); max-width: 62ch; color: var(--ink-soft); }

/* ---- 16. Footer -------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bone-deep); }
.site-footer__grid { display: grid; gap: var(--sp-10); padding-block: var(--section-y) var(--sp-12); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-12); } }
.site-footer h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-xs); line-height: var(--lh-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--sp-4); }
.site-footer li + li { margin-top: var(--sp-3); }
.site-footer a { font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--ink); }
.footer__brand { display: flex; flex-direction: column; gap: var(--sp-5); align-items: flex-start; }
.footer__verse { font-family: var(--font-head); font-size: var(--fs-h4); line-height: 1.5; font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 20; color: var(--ink-soft); max-width: 34ch; }
.footer__verse cite { display: block; margin-top: var(--sp-2); font-style: normal; font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.site-footer__bar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: space-between;
  padding-block: var(--sp-6); border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-faint);
}
/* The bar sets its own size, so footer link sizing must not leak into it. */
.site-footer__bar a { font-size: inherit; color: inherit; }
.site-footer__bar a:hover { color: var(--ink); }

/* ---- 17. Utilities ----------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-6 { display: flex; flex-direction: column; gap: var(--sp-6); }
.stack-8 { display: flex; flex-direction: column; gap: var(--sp-8); }
.stack-4 { display: flex; flex-direction: column; gap: var(--sp-4); }
.align-start { align-items: flex-start; }
.page-head { padding-block: var(--sp-16) var(--sp-12); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-head { padding-block: var(--sp-20) var(--sp-16); } }
.page-head__inner { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 62ch; }
