/* ————————————————————————————————
   Kiln · base tokens, reset, shared chrome
   Style: Japandi (日式北欧) — restrained earth tones, micro shadows, serif + thin strokes
———————————————————————————————— */
:root {
  --paper: #FAFAF7;
  --paper-2: #F2EFE8;
  --card: #FFFFFF;
  --ink: #2B2823;
  --ink-soft: #6E695F;
  --accent: #7A6A55;
  --accent-deep: #5A4E3E;
  --accent-soft: #EDEAE2;
  --sage: #8A8F82;
  --line: #E3DFD5;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --r: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.35 0 0 0 0 0.27 0 0 0 0.05 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 1; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--paper); }

/* ————— typography helpers ————— */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow.light { color: #A8A296; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 em { color: var(--accent); }

.lede {
  max-width: 46ch;
  font-size: clamp(1rem, 1.15vw, 1.13rem);
  color: var(--ink-soft);
  margin: 22px 0 34px;
}

.section-head { max-width: 1440px; margin: 0 auto; padding: clamp(72px, 10vw, 130px) clamp(20px, 4vw, 56px) clamp(36px, 4vw, 56px); }
.section-sub { max-width: 52ch; color: var(--ink-soft); margin-top: 16px; }
.section-sub.light { color: rgba(250, 250, 247, 0.65); }

/* ————— buttons ————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--ink); }

/* ————— header ————— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 12px; height: 12px;
  border-radius: 50% 50% 50% 4px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18);
}
.brand-word { font-family: var(--serif); font-weight: 560; font-size: 24px; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.cart-btn:hover { border-color: var(--ink); background: var(--card); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
}
.cart-count.bump { transform: scale(1.35); }

/* ————— glaze swatches ————— */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.swatch:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.swatch[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--card); }
.swatch .dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), inset -2px -2px 3px rgba(0, 0, 0, 0.12);
}

/* ————— scroll reveal ————— */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ————— focus ————— */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
