/* Kiln: Page Lemon template. Colours and fonts are tokens below. */
:root {
  /* Clay-grey page ground (not cream). Change to suit the maker. */
  --bg: #E3E1DC;
  /* Light panel for slots and inputs. */
  --paper: #F1F0EC;
  /* Speckled clay tone for frames and grounds. */
  --clay: #C9C4BC;
  /* Darker clay, decorative only. */
  --clay-deep: #8E8880;
  /* Main text colour. */
  --ink: #1E2126;
  /* Secondary text. Keep 4.5:1 on --bg. */
  --muted: #4D5159;
  /* Cobalt glaze: buttons, bands, links on dark. */
  --cobalt: #1F4FA3;
  /* Cobalt hover state. */
  --cobalt-deep: #173B7A;
  /* Speckle dots, decorative only. */
  --speck: #2B2E33;
  /* Kiln accent, focus rings and decoration only (not body text). */
  --terra: #B4533A;
  /* Headings and the stamped wordmark. */
  --font-display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  /* Body and interface text. */
  --font-body: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Irregular frame shapes, one per frame style. */
  --blob-1: 56% 44% 48% 52% / 46% 58% 42% 54%;
  --blob-2: 42% 58% 60% 40% / 55% 45% 55% 45%;
  --blob-3: 64% 36% 46% 54% / 40% 52% 48% 60%;
  --gutter: 16px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 76px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; font-family: var(--font-display); letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: var(--cobalt-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--paper); }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.wrap-full { width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; padding: 0.6rem 1rem; background: var(--ink); color: var(--paper); }
.skip:focus { left: 16px; top: 16px; }

.eyebrow { margin: 0 0 0.6rem; color: var(--cobalt-deep); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.lead { font-size: 1.12rem; max-width: 36rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0.4rem; }
.price { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.15rem; }
.price.big { font-size: 1.6rem; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.on-dark { color: var(--paper); }
.on-dark-eyebrow { color: #C9D7F0; }
.on-dark-copy { color: var(--paper); max-width: 34rem; }
.text-link.on-dark { color: var(--paper); }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.3rem;
  border: 0; border-radius: 16px 11px 18px 13px; background: var(--cobalt); color: var(--paper);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--cobalt-deep); color: var(--paper); }
.button:focus-visible { outline-color: var(--ink); }
.band .button, .band-cobalt .button { background: var(--paper); color: var(--cobalt-deep); }

/* Header */
.site-header { position: relative; z-index: 5; padding: 1rem 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.05; }
.wordmark:hover { color: var(--ink); }
.wordmark[aria-current="page"] .stamp-mark { background: var(--cobalt); color: var(--paper); }
.stamp-mark {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none;
  border: 2px solid var(--cobalt); border-radius: var(--blob-2); color: var(--cobalt);
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 5px var(--cobalt);
}
.wordmark-large { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.4rem; }
.desktop-nav { display: none; align-items: center; gap: 1.4rem; }
.desktop-nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0.3rem 0; }
.desktop-nav a[aria-current="page"]:not(.button) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.mobile-nav { position: relative; }
.mobile-nav summary {
  list-style: none; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: 12px 16px 12px 15px; font-weight: 700;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] nav {
  position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(280px, calc(100vw - 32px));
  display: grid; gap: 0.2rem; padding: 0.9rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px 14px 22px 16px;
}
.mobile-nav nav a:not(.button) { min-height: 44px; display: flex; align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; }
.mobile-nav nav .button { margin-top: 0.4rem; justify-content: center; }
@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
}

/* Frames: photo-ready, irregular and rounded */
.frame { position: relative; margin: 0; }
.frame .photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--clay); border-radius: var(--blob-1); }
.frame.f2 .photo { border-radius: var(--blob-2); }
.frame.f3 .photo { border-radius: var(--blob-3); }
.frame.square .photo { aspect-ratio: 1 / 1; }
.frame.portrait .photo { aspect-ratio: 4 / 5; }
.stamp-badge {
  position: absolute; right: -4px; bottom: -12px; width: 7rem; height: 7rem; display: grid; place-items: center;
  padding: 0.5rem; text-align: center; background: var(--cobalt); color: var(--paper);
  border-radius: var(--blob-2); font-family: var(--font-display); font-size: 0.98rem; line-height: 1.15; transform: rotate(-7deg);
}

/* Hero and pages */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 2.5rem 3.5rem; }
.hero-copy h1 { margin-bottom: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.page-hero { padding-block: 2.5rem 2rem; }
.page-hero h1 { max-width: 14ch; margin-bottom: 1rem; }
.split-hero { display: grid; gap: 2rem; align-items: center; }
.section { padding-block: 3rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin-top: 0; }

.card-row { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: 1fr; }
.card:nth-child(even) { margin-top: 0; }
.card h3 { margin-bottom: 0.2rem; }
.card .text-link { display: inline-block; margin-top: 0.4rem; }

/* Band: cobalt glaze with three glaze cards */
.band { background: var(--cobalt); color: var(--paper); padding-block: 3.5rem; }
.band h2, .band h3 { color: var(--paper); }
.band-inner { display: grid; gap: 2rem; }
.glaze-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.gl { padding: 1.4rem 1.3rem; border-radius: 24px 16px 26px 18px; }
.gl p { margin: 0.5rem 0 0; }
.gl-cobalt { background: #173B7A; }
.gl-ash { background: #8A8F96; color: var(--ink); }
.gl-ash h3 { color: var(--ink); }
.gl-tenmoku { background: #2A211D; }
.gl-tenmoku h3 { color: var(--paper); }
.gl-tenmoku p { color: #E7DED4; }

.studio-teaser { display: grid; gap: 2.2rem; align-items: center; }
.teaser-copy h2 { margin-bottom: 1rem; }

.commission { padding-block: 1rem 3.5rem; }
.commission-card { padding: 2rem 1.5rem; background: var(--paper); border-radius: 30px 18px 34px 20px; border: 2px solid var(--ink); }
.commission-card h2 { margin-bottom: 0.8rem; }
.commission-card p { max-width: 36rem; }

/* Shop */
.shop-grid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
.shop-card h2 { font-size: 1.7rem; margin-bottom: 0.2rem; }
.shop-card p:not(.meta):not(.price) { color: var(--muted); }
.order-note { display: grid; gap: 1.8rem; padding-top: 1rem; }
.plain-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.plain-steps li { padding-top: 1rem; border-top: 2px solid var(--ink); }
.plain-steps h3 { margin-bottom: 0.4rem; }
.plain-steps p { margin: 0; color: var(--muted); }
.closing { display: grid; gap: 1.2rem; justify-items: start; padding-block: 3rem 4rem; }

/* Piece page: CSS-only glaze picker */
.piece-wrap { padding-block: 1.5rem 2rem; }
.crumb { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.2rem; }
.piece-layout { display: grid; gap: 2rem; align-items: start; }
.piece-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--blob-1); background: var(--clay); overflow: hidden; }
.piece-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
.piece-frame .view-cobalt { opacity: 1; }
.piece-frame .view-ash, .piece-frame .view-tenmoku { opacity: 0; }
#g-ash:checked ~ .piece-frame .view-cobalt,
#g-ash:checked ~ .piece-frame .view-tenmoku,
#g-tenmoku:checked ~ .piece-frame .view-cobalt,
#g-tenmoku:checked ~ .piece-frame .view-ash { opacity: 0; }
#g-ash:checked ~ .piece-frame .view-ash,
#g-tenmoku:checked ~ .piece-frame .view-tenmoku { opacity: 1; }
.piece-info > .eyebrow { margin-bottom: 0.4rem; }
.piece-info h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.6rem; }
.glaze-picker { margin: 1.6rem 0 0.6rem; padding: 0; border: 0; display: grid; gap: 0.7rem; }
.glaze-picker legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }
.glaze-picker label {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: center; min-height: 56px;
  padding: 0.75rem 0.9rem; border: 2px solid var(--clay-deep); border-radius: 18px 12px 20px 14px; background: var(--paper); cursor: pointer;
}
.glaze-picker label:hover { border-color: var(--ink); }
.swatch { width: 2.6rem; height: 2.6rem; border-radius: var(--blob-2); border: 2px solid var(--ink); }
.sw-cobalt { background: var(--cobalt); }
.sw-ash { background: #8A8F96; }
.sw-tenmoku { background: #2A211D; }
#g-cobalt:checked ~ .piece-info label[for="g-cobalt"],
#g-ash:checked ~ .piece-info label[for="g-ash"],
#g-tenmoku:checked ~ .piece-info label[for="g-tenmoku"] { border-color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--cobalt); background: #E9EEF8; }
.piece-info fieldset:focus-within { outline: 3px solid var(--terra); outline-offset: 4px; }
#g-cobalt:focus-visible ~ .piece-info label[for="g-cobalt"], #g-ash:focus-visible ~ .piece-info label[for="g-ash"], #g-tenmoku:focus-visible ~ .piece-info label[for="g-tenmoku"] { outline: 3px solid var(--terra); outline-offset: 3px; }
.glaze-status { min-height: 1.6em; color: var(--muted); font-size: 0.95rem; }
.specs { margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.8rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--clay-deep); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.ask-section { display: block; }
.ask-section .slot { max-width: 40rem; }

/* Slots and inert forms */
.slot { padding: 1.4rem 1.3rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 26px 16px 28px 18px; }
.slot h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.slot-form { display: grid; gap: 0.5rem; max-width: 40rem; margin-top: 1rem; }
.slot-form label { font-weight: 700; margin-top: 0.4rem; }
.slot-form input, .slot-form select, .slot-form textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.8rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px 14px 12px 16px;
}
.slot-form textarea { min-height: 7rem; }
.slot-form .button { justify-self: start; margin-top: 0.6rem; }

/* Studio */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem; counter-reset: stage; }
.steps li { padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--muted); max-width: 40rem; margin: 0; }
.portrait-row { display: grid; gap: 2.5rem; align-items: center; }
.pull { margin: 0; }
.pull p { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.25; margin-bottom: 1rem; }
.pull cite { font-style: normal; font-weight: 700; color: var(--muted); }

/* Care */
.care-grid { display: grid; gap: 2.5rem; }
.tidy { margin: 0 0 1rem; padding-left: 1.2rem; }
.tidy li { margin-bottom: 0.6rem; }
.rates { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.2rem; font-size: 0.97rem; }
.rates th, .rates td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--clay-deep); vertical-align: top; }
.rates thead th { border-bottom: 2px solid var(--ink); }
.rates tbody th { font-weight: 700; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-list p { margin-bottom: 0.9rem; display: grid; gap: 0.1rem; }
.contact-list h2 { margin-bottom: 1rem; }
.label { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.contact-list a { font-size: 1.1rem; }
.commission-slot { align-self: start; }

/* Privacy */
.prose { max-width: 42rem; }
.prose p { font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--ink); color: #D7DAE0; padding-block: 3rem 1.5rem; margin-top: 0; }
.site-footer a { color: var(--paper); text-underline-offset: 0.2em; }
.site-footer .eyebrow { color: #9FB8E4; }
.site-footer address, .site-footer p { color: #D7DAE0; }
.site-footer .wordmark-large { color: var(--paper); }
.footer-grid { display: grid; gap: 2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #3A3F48; font-size: 0.95rem; }

/* Mobile action bar, three actions, hidden on wide screens */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); }
.action-bar a { min-height: 56px; display: grid; place-items: center; color: var(--paper); font-weight: 700; text-decoration: none; border-left: 1px solid #3A3F48; }
.action-bar a:first-child { border-left: 0; }
.action-bar a:focus-visible { outline-color: var(--paper); outline-offset: -6px; }
@media (min-width: 760px) { .action-bar { display: none; } }

/* Breakpoints */
@media (min-width: 640px) {
  .card-row, .shop-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-block: 4rem 4.5rem; }
  .split-hero { grid-template-columns: 1fr 1fr; }
  .card-row { grid-template-columns: repeat(4, 1fr); }
  .card-row { padding-bottom: 2.5rem; }
  .card-row .card:nth-child(2n) { margin-top: 0; }
  .card-row .card:nth-child(even) { transform: translateY(2.5rem); }
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid .card:nth-child(even) { transform: translateY(2.5rem); }
  .studio-teaser { grid-template-columns: 1.1fr 0.9fr; }
  .studio-teaser .frame { order: 2; }
  .studio-teaser .teaser-copy { order: 1; }
  .portrait-row { grid-template-columns: 0.8fr 1.2fr; }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .band-inner { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .band-inner .glaze-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .band-cobalt .band-inner { grid-template-columns: 1fr 1fr; }
  .order-note { grid-template-columns: 1fr 1.6fr; }
  .piece-layout { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .piece-info { position: sticky; top: 1.5rem; }
  .ask-section { padding-top: 1rem; }
}
@media (min-width: 1100px) {
  .hero-copy h1 { font-size: clamp(3.2rem, 5.2vw, 5.4rem); }
}

/* Motion: the card offsets stay, but nothing animates */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card-row .card:nth-child(even), .shop-grid .card:nth-child(even) { transform: none; }
}
