/* ==========================================================================
   Kiln — ceramics & object studio template · archesign.studio
   1. Tokens  2. Base  3. Header  4. Components  5. Pages  6. Footer  7. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bone: #f4ede4;
  --sand: #ece2d4;
  --ash: #d9cfc2;
  --clay: #c97b5a;
  --iron: #5b3a2a;
  --glaze: #3e7c78;
  --celadon: #a8c3b0;
  --char: #2b2420;
  --muted: #7d6c5f;

  --font-serif: "Petrona", Georgia, serif;
  --font-sans: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(18px, 3.4vw, 52px);
  --max: 1320px;
  --space: clamp(90px, 12vw, 170px);
  --pebble: 46% 54% 52% 48% / 55% 45% 55% 45%;
  --pebble-2: 58% 42% 40% 60% / 48% 56% 44% 52%;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--char); font: 300 17px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; margin: 0; line-height: 1.04; letter-spacing: -.02em; }
h1 em, h2 em, h3 em { color: var(--clay); }
h4 { font: 500 12px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
:focus-visible { outline: 2px solid var(--glaze); outline-offset: 3px; }
::selection { background: var(--celadon); color: var(--char); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char); color: var(--bone); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.eyebrow { font: 500 13px var(--font-sans); color: var(--glaze); margin: 0 0 16px; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: var(--pebble); background: currentColor; }
.muted { color: var(--muted); }

/* 3. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bone); }
.header-row { display: flex; align-items: center; gap: 30px; height: 84px; border-bottom: 1px solid var(--ash); }
.logo { display: inline-flex; align-items: baseline; gap: 8px; font: 600 26px var(--font-serif); letter-spacing: -.03em; margin-right: auto; }
.logo .sub { font: 400 13px var(--font-sans); color: var(--muted); letter-spacing: .08em; }
.logo .pot { align-self: center; width: 22px; height: 24px; background: var(--clay); border-radius: 30% 30% 46% 46% / 22% 22% 60% 60%; box-shadow: inset 0 9px 0 var(--glaze); }
.site-nav { display: flex; gap: 30px; }
.site-nav a { font-weight: 400; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--glaze); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--clay); }
.kiln-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 99px; background: var(--char); color: var(--bone); }
.kiln-pill i { width: 8px; height: 8px; border-radius: 50%; background: #ff8a4c; box-shadow: 0 0 10px #ff8a4c; }
.menu-btn { display: none; }

/* 4. Components ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 99px; border: 1px solid var(--char); background: transparent; color: var(--char); font: 500 15px var(--font-sans); cursor: pointer; transition: background .25s, color .25s; }
.btn:hover { background: var(--char); color: var(--bone); }
.btn--glaze { background: var(--glaze); border-color: var(--glaze); color: var(--bone); }
.btn--glaze:hover { background: var(--iron); border-color: var(--iron); }
.pebble { border-radius: var(--pebble); overflow: hidden; background: var(--sand); }
.pebble img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.product { display: block; text-align: center; }
.product .pebble { aspect-ratio: 8 / 9; }
.product:nth-child(even) .pebble { border-radius: var(--pebble-2); }
.product:hover .pebble img { transform: scale(1.06) rotate(-1deg); }
.product h3 { font-size: 22px; margin-top: 16px; }
.product p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.product .price { color: var(--char); font-weight: 500; }
.badge { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--celadon); color: var(--char); }
.badge--out { background: var(--ash); color: var(--muted); }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 5. Pages ----------------------------------------------------------------- */
/* hero */
.hero { padding: clamp(40px, 6vw, 90px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(50px, 7vw, 108px); line-height: .98; }
.hero .lead { font-size: clamp(18px, 1.4vw, 20px); color: #4e4038; max-width: 42ch; margin: 26px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arch { border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 14 / 13; background: var(--sand); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch .note { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; background: var(--bone); padding: 10px 18px; border-radius: 99px; font-size: 14px; box-shadow: 0 10px 30px -16px rgba(43, 36, 32, .6); }
.arch .note b { color: var(--clay); font-weight: 600; }

/* kiln opening */
.opening { margin-top: clamp(50px, 7vw, 100px); display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; background: var(--char); color: var(--bone); border-radius: 28px; padding: 26px 32px; }
.opening .date { font: 400 54px/1 var(--font-serif); color: #ffb48a; text-align: center; }
.opening .date small { display: block; font: 500 12px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-top: 6px; }
.opening h3 { font-size: 28px; margin-bottom: 6px; color: var(--bone); }
.opening p { margin: 0; color: var(--ash); }
.opening .btn { border-color: var(--bone); color: var(--bone); }
.opening .btn:hover { background: var(--bone); color: var(--char); }

/* shop grid */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(28px, 4vw, 50px); }
.sec-head h2 { font-size: clamp(38px, 5vw, 72px); }
.shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }

/* glazes */
.glazes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.glaze { text-align: center; }
.glaze i { display: block; aspect-ratio: 1; border-radius: var(--pebble); box-shadow: inset -10px -14px 24px rgba(0, 0, 0, .25), inset 8px 10px 18px rgba(255, 255, 255, .35); }
.glaze:nth-child(even) i { border-radius: var(--pebble-2); }
.glaze b { display: block; font: 400 21px var(--font-serif); margin-top: 12px; }
.glaze span { font-size: 13px; color: var(--muted); }
.g-celadon { background: radial-gradient(circle at 30% 30%, #cfe3d6, #9fbfae 60%, #6f9584); }
.g-tenmoku { background: radial-gradient(circle at 30% 30%, #8a5a3c, #3a2418 55%, #1d120c); }
.g-shino { background: radial-gradient(circle at 30% 30%, #fbefe0, #e9d8c4 50%, #d38e5f); }
.g-ash { background: radial-gradient(circle at 30% 30%, #c4c38f, #8b8a5c 60%, #5d5c3a); }
.g-cobalt { background: radial-gradient(circle at 30% 30%, #6f8fcf, #2f4f8f 60%, #1b2f58); }
.g-copper { background: radial-gradient(circle at 30% 30%, #c86a5a, #8c2f2a 60%, #561a17); }

/* story band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.band h2 { font-size: clamp(36px, 4.4vw, 62px); margin-bottom: 20px; }
.band .pebble { aspect-ratio: 1; }

/* page head */
.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(34px, 5vw, 60px); }
.page-head h1 { font-size: clamp(52px, 8vw, 124px); }
.page-head p { max-width: 54ch; font-size: 19px; color: #4e4038; margin-top: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { font: 400 15px var(--font-sans); color: var(--char); background: var(--sand); border: 0; border-radius: 99px; padding: 10px 20px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--clay); color: var(--bone); }

/* collection */
.collection-hero { border-radius: 40px; overflow: hidden; }
.collection-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 100px); }
.story h2 { font-size: clamp(34px, 4vw, 56px); }
.story .body { font-size: 18px; color: #4e4038; }
.recipe { background: var(--sand); border-radius: 28px; padding: clamp(22px, 3vw, 40px); }
.recipe h3 { font-size: 30px; margin-bottom: 4px; }
.recipe table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.recipe td { padding: 10px 0; border-bottom: 1px solid var(--ash); }
.recipe td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.recipe .bar { display: block; height: 6px; border-radius: 9px; background: var(--glaze); width: var(--w); margin-top: 6px; opacity: .7; }
.curve { background: var(--char); color: var(--ash); border-radius: 28px; padding: clamp(22px, 3vw, 40px); }
.curve h3 { color: var(--bone); font-size: 30px; margin-bottom: 4px; }
.curve svg { width: 100%; height: auto; display: block; margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* studio */
.potters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
.potter .pebble { aspect-ratio: 6 / 7; }
.potter:nth-child(2) .pebble { border-radius: var(--pebble-2); }
.potter h3 { font-size: 30px; margin-top: 18px; }
.potter p { color: var(--muted); margin: 4px 0 0; }
.timeline { border-left: 2px dashed var(--clay); padding-left: 26px; display: grid; gap: 26px; }
.timeline div { position: relative; }
.timeline div::before { content: ""; position: absolute; left: -35px; top: 6px; width: 14px; height: 14px; border-radius: var(--pebble); background: var(--clay); }
.timeline b { font: 600 20px var(--font-serif); display: block; }
.timeline span { color: var(--muted); }

/* classes */
.classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.class { background: var(--sand); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.class:nth-child(2) { background: var(--celadon); }
.class:nth-child(3) { background: #f0cdb8; }
.class h3 { font-size: 28px; }
.class p { margin: 0; color: #4e4038; }
.class ul { list-style: none; padding: 0; margin: 8px 0; font-size: 15px; }
.class li { padding: 8px 0; border-top: 1px solid rgba(43, 36, 32, .12); display: flex; justify-content: space-between; gap: 10px; }
.class .price { font: 600 26px var(--font-serif); margin-top: auto; }
.seats { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--iron); }
.faq { max-width: 860px; }
.faq details { background: var(--sand); border-radius: 22px; padding: 18px 24px; margin-bottom: 10px; }
.faq summary { display: block; position: relative; padding-right: 40px; cursor: pointer; list-style: none; font: 400 21px var(--font-serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 6px; width: 18px; height: 18px; border-radius: var(--pebble); background: var(--clay); transition: transform .3s; }
.faq details[open] summary::after { background: var(--glaze); transform: rotate(90deg); }
.faq details p { margin: 12px 0 0; color: #4e4038; }

/* contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form > *, .field { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .actions, .form-note, .choice { grid-column: 1 / -1; }
.field label, .choice legend { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: 400 16px var(--font-sans); color: var(--char); background: var(--sand); border: 2px solid transparent; border-radius: 18px; padding: 13px 16px; min-width: 0; max-width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glaze); background: var(--bone); }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { margin-bottom: 8px; width: 100%; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 10px 18px; border-radius: 99px; background: var(--sand); cursor: pointer; font-size: 15px; }
.choice input:checked + span { background: var(--glaze); color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.form-note { margin: 0; padding: 14px 18px; border-radius: 18px; background: var(--celadon); }
.studio-card { background: var(--char); color: var(--ash); border-radius: 32px; padding: 32px; }
.studio-card h3 { color: var(--bone); font-size: 30px; margin-bottom: 12px; }
.studio-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.studio-card li { padding: 11px 0; border-top: 1px solid rgba(217, 207, 194, .2); display: flex; justify-content: space-between; gap: 12px; }
.studio-card a { color: var(--bone); }

/* 6. Footer ---------------------------------------------------------------- */
.site-footer { margin-top: var(--space); background: var(--sand); padding: clamp(60px, 8vw, 110px) 0 26px; border-radius: 48px 48px 0 0; }
.f-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-bottom: 46px; border-bottom: 1px solid var(--ash); }
.f-top h2 { font-size: clamp(38px, 5vw, 72px); }
.news { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.news input { font: 400 16px var(--font-sans); border: 2px solid var(--ash); background: var(--bone); border-radius: 99px; padding: 13px 20px; min-width: 0; color: var(--char); }
.news input:focus { outline: none; border-color: var(--glaze); }
.news .form-note { grid-column: 1 / -1; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); padding: 40px 0 26px; font-size: 15px; }
.f-logo { font: 600 24px var(--font-serif); margin: 0 0 8px; }
.f-grid a:hover { color: var(--glaze); }
.f-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0; padding-top: 18px; border-top: 1px solid var(--ash); font-size: 13px; color: var(--muted); }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glazes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kiln-pill { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-row { height: 70px; }
  .menu-btn { display: inline-block; position: relative; z-index: 60; background: var(--clay); color: var(--bone); border: 0; border-radius: 99px; padding: 10px 18px; font: 500 14px var(--font-sans); cursor: pointer; }
  .menu-open .menu-btn { background: var(--glaze); }
  .site-nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; align-items: center; gap: 16px; background: var(--bone); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .site-nav::before { content: ""; position: absolute; width: 70vw; height: 70vw; border-radius: var(--pebble); background: var(--sand); z-index: -1; }
  .site-nav a { font: 400 44px var(--font-serif); border: 0; }
  .site-nav a[aria-current="page"] { color: var(--clay); }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .hero-grid, .band, .story, .two, .contact, .f-top { grid-template-columns: 1fr; }
  .opening { grid-template-columns: auto 1fr; }
  .opening .btn { grid-column: 1 / -1; justify-self: start; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid > :first-child { grid-column: 1 / -1; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .form, .potters { grid-template-columns: 1fr; }
  .glazes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opening { grid-template-columns: 1fr; text-align: left; padding: 22px; }
  .opening .date { text-align: left; }
  .news { grid-template-columns: 1fr; }
  .arch .note { font-size: 12px; padding: 8px 12px; }
  .product h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
