/* Libby Linley Creating: the whole site's styles. Light and dark follow the visitor's setting.
   Same type as libbylistens.com (Fraunces and Source Sans 3) and the same LL monogram; the palette is
   the studio's: bisque, terracotta, the peach of the logo and the celadon glaze of Libby's leaf vase. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --bg: #F6EDE2;            /* bisque */
  --surface: #FFFAF4;
  --tint: #EFE2D3;
  --peach: #FCDDB6;         /* the logo's peach */
  --ink: #3E3631;           /* the logo's warm grey-brown, a little darker */
  --muted: #675C54;
  --line: #E0D0BE;
  --clay: #A24E2B;          /* terracotta: links and buttons */
  --clay-strong: #843D20;
  --clay-soft: #E9B996;
  --on-clay: #FFFFFF;
  --glaze: #3C7A63;         /* celadon, from the leaves on Libby's vase */
  --glaze-soft: #B9E0C9;
  --wood: #B98A5E;          /* the studio shelves */
  --wood-dark: #8C6440;
  --error: #A3302A;
  --ok-bg: #E2F0E6;
  --ok-ink: #1E5A40;
  --shadow: 0 20px 44px -26px rgba(62, 40, 26, .45);
  --radius: 22px;
  /* A thumb-pressed, not-quite-round edge for cards and buttons */
  --pinched: 28px 22px 30px 20px / 22px 28px 20px 30px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: .22;
  /* A glaze edge: straight along the top, dripping along the bottom (used as a mask) */
  --drips: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0H240V12C238.3 13.0 235.9 11.0 234.2 12C233.2 16.3 234.2 17.1 230.7 20.6C226.6 20.6 228.2 16.3 227.2 12C222.8 13.0 216.8 11.0 212.3 12C211.3 14.0 212.3 11.8 208.1 16.1C203.0 16.1 204.8 14.0 203.8 12C201.1 13.0 197.5 11.0 194.7 12C193.7 21.2 194.7 27.7 192.0 30.5C188.6 30.5 190.2 21.2 189.2 12C187.8 13.0 185.9 11.0 184.5 12C183.5 21.2 184.5 26.2 180.2 30.4C175.1 30.4 177.0 21.2 176.0 12C173.7 13.0 170.7 11.0 168.5 12C167.5 21.7 168.5 26.3 163.4 31.4C157.3 31.4 159.3 21.7 158.3 12C155.0 13.0 150.6 11.0 147.3 12C146.3 15.1 147.3 15.2 144.3 18.2C140.7 18.2 142.3 15.1 141.3 12C137.8 13.0 133.3 11.0 129.8 12C128.8 18.1 129.8 20.1 125.6 24.3C120.6 24.3 122.5 18.1 121.5 12C118.6 13.0 114.8 11.0 112.0 12C111.0 14.2 112.0 12.2 107.8 16.5C102.6 16.5 104.5 14.2 103.5 12C101.2 13.0 98.2 11.0 95.9 12C94.9 22.5 95.9 30.2 93.2 32.9C89.9 32.9 91.4 22.5 90.4 12C88.8 13.0 86.6 11.0 85.0 12C84.0 19.0 85.0 20.6 79.5 26.1C73.0 26.1 75.1 19.0 74.1 12C69.4 13.0 63.2 11.0 58.6 12C57.6 18.2 58.6 20.7 54.8 24.5C50.3 24.5 52.0 18.2 51.0 12C48.6 13.0 45.3 11.0 42.8 12C41.8 14.7 42.8 14.0 39.3 17.5C35.1 17.5 36.8 14.7 35.8 12C32.9 13.0 29.0 11.0 26.1 12C25.1 23.9 26.1 30.4 20.8 35.7C14.4 35.7 16.4 23.9 15.4 12C9.3 13 4.6 11 0 12V0z'/%3E%3C/svg%3E");
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1512;          /* the kiln at night */
    --surface: #251D19;
    --tint: #211A16;
    --peach: #4A3424;
    --ink: #F3E9DE;
    --muted: #C4B5A8;
    --line: #3A2E27;
    --clay: #F0A27A;
    --clay-strong: #F8C3A6;
    --clay-soft: #5A3726;
    --on-clay: #2A140A;
    --glaze: #8FD3B4;
    --glaze-soft: #24443A;
    --wood: #8A6646;
    --wood-dark: #6E4F34;
    --error: #FF9C93;
    --ok-bg: #1D3A2E;
    --ok-ink: #B9E6CF;
    --shadow: 0 20px 44px -26px rgba(0, 0, 0, .8);
    --grain-opacity: .35;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* A fine clay grain over everything, like unglazed bisque */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--grain); opacity: var(--grain-opacity); mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: soft-light; } }
body > *:not(dialog) { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glaze); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
h1 em, h2 em { font-style: italic; color: var(--clay); font-weight: 300; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.4rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--clay); color: var(--on-clay); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.lead { font-size: 1.3rem; line-height: 1.55; }
.center { text-align: center; }

/* A hand-scratched (sgraffito) line under a heading */
.scratch { display: block; width: 120px; height: 12px; margin: .2rem 0 1.4rem; color: var(--clay); }
.center .scratch, .scratch.center { margin-inline: auto; }

/* Buttons: pinched pebbles of clay */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: .8em 1.6em; border-radius: var(--pinched); border: 1.5px solid transparent;
  font: 600 1.05rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s, box-shadow .25s, border-radius .4s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--clay); color: var(--on-clay); box-shadow: 0 12px 24px -14px var(--clay); }
.btn-primary:hover { background: var(--clay-strong); color: var(--on-clay); transform: translateY(-2px) rotate(-1deg); border-radius: 22px 30px 20px 28px / 28px 20px 30px 22px; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-2px) rotate(1deg); border-radius: 22px 30px 20px 28px / 28px 20px 30px 22px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.9rem 0 1rem; }
.actions-center { justify-content: center; }

/* Header: the LL stamp on the left, a shelf of pots on the right */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; width: 54px; height: 54px; }
.brand-mark .ring { transform-origin: 50% 50%; transition: transform 1.2s cubic-bezier(.3, .7, .3, 1); }
.brand:hover .brand-mark .ring { transform: rotate(120deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 400 1.35rem/1.1 var(--serif); }
.brand-sub { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* The shelf of pots. The pot for this page is glazed; the others are bisque until you hover. */
.shelf ul { display: flex; align-items: flex-end; gap: 6px; position: relative; padding: 0 10px; }
.shelf ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 7px; border-radius: 3px;
  background: linear-gradient(var(--wood), var(--wood-dark)); box-shadow: 0 6px 10px -6px rgba(60, 35, 15, .6);
}
.shelf a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 6px 8px 9px;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; letter-spacing: .02em;
}
.shelf a:hover { color: var(--ink); }
.pot { width: 46px; height: 46px; overflow: visible; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pot .body { fill: var(--surface); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.pot .line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pot .glaze { fill: var(--glaze-soft); transform: translateY(-34px); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.shelf a:hover .pot, .shelf a:focus-visible .pot { transform: translateY(-4px) rotate(-5deg); }
.shelf a:hover .glaze { transform: translateY(-14px); }
.shelf a[aria-current="page"] .glaze { transform: none; fill: var(--glaze); }
.shelf a[aria-current="page"] .pot .body { fill: var(--peach); }
.shelf-label { position: relative; }
.shelf a[aria-current="page"] .shelf-label::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -3px; height: 2px; border-radius: 2px; background: var(--clay);
}

/* On phones the shelf moves to the bottom of the screen, always in reach */
@media (max-width: 760px) {
  /* No blur on the header here: a backdrop-filter would pin the fixed shelf inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 46px; height: 46px; }
  .shelf {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 6px solid var(--wood); box-shadow: 0 -10px 24px -16px rgba(60, 35, 15, .45);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .shelf ul { justify-content: space-around; padding: 0 4px; gap: 0; }
  .shelf ul::after { display: none; }
  .shelf a { min-width: 0; flex: 1; padding: 8px 2px 8px; font-size: .8rem; }
  .shelf li { flex: 1; display: flex; }
  .pot { width: 38px; height: 38px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { display: block; }
.hero-lines { font-size: 1.3rem; line-height: 1.5; margin-bottom: .4rem; }
.hero-lines span { display: block; }
.hero-lines span + span { color: var(--muted); font-size: 1.1rem; margin-top: .35rem; }
.hero-art { position: relative; aspect-ratio: 1 / 1.08; max-width: 520px; width: 100%; justify-self: center; }
/* Libby's photo, thrown into the shape of a vase */
.vase-photo {
  position: absolute; inset: 4% 14% 0 12%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M34 2h32c2 0 3 2 2 4-2 4-4 7-3 12 1 6 10 10 18 20 9 12 14 28 13 46-1 24-17 44-46 44S5 108 4 84C3 66 8 50 17 38c8-10 17-14 18-20 1-5-1-8-3-12-1-2 0-4 2-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M34 2h32c2 0 3 2 2 4-2 4-4 7-3 12 1 6 10 10 18 20 9 12 14 28 13 46-1 24-17 44-46 44S5 108 4 84C3 66 8 50 17 38c8-10 17-14 18-20 1-5-1-8-3-12-1-2 0-4 2-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vase-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-art .vase-outline { position: absolute; inset: 1% 10% -3% 8%; width: 82%; height: 102%; color: var(--clay); opacity: .55; }
.hero-art .wheel-logo { position: absolute; right: -2%; bottom: 2%; width: 40%; max-width: 200px; filter: drop-shadow(0 14px 22px rgba(62, 40, 26, .25)); }
.wheel-logo .ring { transform-origin: 50% 50%; animation: wheel 40s linear infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
.hero-art .leaf { position: absolute; color: var(--glaze); width: 18%; }
.hero-art .leaf-1 { left: 0; top: 22%; transform: rotate(-18deg); }
.hero-art .leaf-2 { left: 6%; bottom: 10%; width: 12%; transform: rotate(24deg); opacity: .75; }

.insta-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--ink); }
.insta-link svg { width: 26px; height: 26px; color: var(--clay); }
.insta-link span { text-decoration: underline; text-decoration-color: var(--clay-soft); text-underline-offset: .25em; }
.insta-link:hover { color: var(--clay); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 380px; order: -1; }
}

/* Sections, with glaze dripping over the top edge of the tinted ones */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.glazed { background: var(--tint); position: relative; }
.glazed::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(26px, 4vw, 44px);
  background: var(--bg); -webkit-mask: var(--drips) top / 100% 100% no-repeat; mask: var(--drips) top / 100% 100% no-repeat;
}
.glazed-peach { background: var(--peach); }

/* Clay, texture, glaze: three tiles scratched like Libby's vase */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.tile {
  position: relative; padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pinched); box-shadow: var(--shadow); overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background: repeating-linear-gradient(35deg, currentColor 0 1px, transparent 1px 7px), repeating-linear-gradient(-55deg, currentColor 0 1px, transparent 1px 9px);
}
.tile:nth-child(2) { transform: rotate(.6deg); }
.tile:nth-child(3) { transform: rotate(-.5deg); }
.tile-icon { width: 64px; height: 64px; margin-bottom: 14px; color: var(--clay); }
.tile-icon .fill { fill: var(--glaze-soft); }
.tile h3 { margin-bottom: .35em; }
.tile p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .trio { grid-template-columns: minmax(0, 1fr); } .tile:nth-child(n) { transform: none; } }

/* The studio shelves, with a line from Libby */
.band { position: relative; min-height: clamp(340px, 44vw, 520px); display: grid; align-items: center; overflow: hidden; color: #FFF8F0; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(40, 24, 14, .78), rgba(40, 24, 14, .35) 70%); }
.band-inner { position: relative; z-index: 1; }
.band blockquote { margin: 0; max-width: 700px; }
.band blockquote p { font: 300 clamp(1.7rem, 3.4vw, 2.6rem)/1.25 var(--serif); font-style: italic; margin-bottom: .6em; }
.band cite { font-style: normal; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; opacity: .9; }

/* Split: words one side, the photo the other */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose p { max-width: 62ch; }
.pull {
  margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--glaze); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface); font: 300 italic 1.45rem/1.4 var(--serif);
}

/* Page heads on About, Markets and Contact: the page's own pot, glazed */
.page-head { padding: clamp(32px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); text-align: center; }
.page-head .pot { width: 88px; height: 88px; color: var(--ink); margin: 0 auto 10px; }
.page-head .pot .glaze { transform: none; fill: var(--glaze); }
.page-head .pot .body { fill: var(--peach); }
.page-head .lead { max-width: 640px; margin-inline: auto; color: var(--muted); }

/* Markets and stalls. Add an <li class="market"> to the list; the empty shelf shows while there are none. */
.markets { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.market {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pinched); box-shadow: var(--shadow);
}
.market-date {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--peach); color: var(--ink);
  font: 400 1.7rem/1 var(--serif); text-align: center; border: 2px dashed var(--clay-soft);
}
.market-date small { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.market h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.market p { margin: 0; color: var(--muted); }
.empty-shelf { display: none; max-width: 560px; margin: 0 auto; text-align: center; }
.markets:not(:has(.market)) { display: none; }
.markets:not(:has(.market)) + .empty-shelf { display: block; }
.empty-shelf > svg { width: min(340px, 100%); height: auto; margin: 0 auto 18px; color: var(--ink); }
.empty-shelf .plank { fill: var(--wood); }
.empty-shelf .body { fill: var(--surface); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.empty-shelf .glaze { fill: var(--glaze-soft); }
.empty-shelf h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.insta-card {
  display: flex; gap: 16px; align-items: center; padding: 20px 22px; margin-top: 1.5rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pinched); transition: border-color .2s, transform .25s;
}
.insta-card:hover { color: var(--ink); border-color: var(--clay); transform: rotate(-.6deg) translateY(-2px); }
.insta-card svg { width: 44px; height: 44px; flex: none; color: var(--clay); }
.insta-card strong { display: block; font: 400 1.25rem/1.2 var(--serif); }
.insta-card span { color: var(--muted); font-size: .98rem; }
.form-card {
  position: relative; background: var(--surface); border-radius: var(--pinched); padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px 12px 15px 11px;
  background: var(--bg); color: var(--ink); font: 400 1.05rem/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--glaze); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glaze) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { display: block; font-size: .95rem; color: var(--muted); margin-top: 6px; }
.field-error { display: block; color: var(--error); font-size: .95rem; font-weight: 600; margin-top: 6px; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 4px 0 18px; min-height: 0; }
.form-status { margin-bottom: 18px; border-radius: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 16px; background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); font-weight: 600; }
.form-status.is-ok { padding: 20px 22px; background: var(--ok-bg); color: var(--ok-ink); }
.form-status.is-ok strong { display: block; font: 400 1.4rem/1.2 var(--serif); margin-bottom: 4px; }
.form-note, .form-privacy { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }

/* Plain pages (privacy) */
.doc { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.doc h2 { font-size: 1.6rem; margin-top: 2em; }
.doc ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.doc li { margin-bottom: .35em; }
.doc .updated { color: var(--muted); font-size: .95rem; }

/* Footer: glaze poured over the top edge */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 72px); background: var(--ink); color: var(--bg); padding: clamp(64px, 8vw, 96px) 0 36px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(26px, 4vw, 44px);
  background: var(--bg); -webkit-mask: var(--drips) top / 100% 100% no-repeat; mask: var(--drips) top / 100% 100% no-repeat;
}
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--peach); }
@media (prefers-color-scheme: dark) { .site-footer { background: #120E0C; color: var(--ink); } .site-footer a { color: var(--ink); } .site-footer a:hover { color: var(--clay-strong); } }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand svg { width: 84px; height: 84px; flex: none; }
.footer-brand p { margin: 0; opacity: .85; line-height: 1.5; }
.footer-brand strong { font: 400 1.3rem/1.3 var(--serif); opacity: 1; }
.footer-nav ul { display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-meta { display: grid; gap: 14px; justify-items: end; font-size: .95rem; opacity: .9; }
.footer-meta p { margin: 0; }
.footer-meta .pm-badge ~ .pm-fb { margin: -4px 0 0; }  /* the feedback button sits under the PetroMedia credit */
@media (max-width: 800px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } .footer-meta { justify-items: start; } }

/* Gentle reveals as things come into view */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* Glazes. Visitors pick one from the test tiles (site.js sets data-glaze on <html> and remembers it);
   it recolours everything glazed: the shelf pots, leaves, icons and the thrown pot. Celadon is the default. */
:root[data-glaze="cobalt"] { --glaze: #2F56A6; --glaze-soft: #C3D0EE; }
:root[data-glaze="tenmoku"] { --glaze: #6E3A1C; --glaze-soft: #DDBB9C; }
:root[data-glaze="shino"] { --glaze: #B0603A; --glaze-soft: #F4D4BE; }
:root[data-glaze="copper"] { --glaze: #9C2B2E; --glaze-soft: #EDBBB5; }
@media (prefers-color-scheme: dark) {
  :root[data-glaze="cobalt"] { --glaze: #9DB6F2; --glaze-soft: #223352; }
  :root[data-glaze="tenmoku"] { --glaze: #E0B48C; --glaze-soft: #45301F; }
  :root[data-glaze="shino"] { --glaze: #F3B08A; --glaze-soft: #4D3123; }
  :root[data-glaze="copper"] { --glaze: #F29C9C; --glaze-soft: #4A2326; }
}
.glaze-picker-label { margin: 0 0 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.glaze-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
/* Each one is a glaze test tile: a little slab with a hole for hanging, glaze run down from the top */
.glaze-tile {
  position: relative; width: 40px; height: 52px; padding: 0; cursor: pointer; overflow: hidden;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 9px 9px 12px 12px;
  background: #E9D6C2; color: inherit; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.glaze-tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70%; background: var(--tile);
  -webkit-mask: var(--drips) bottom / 100% 26px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 25px) no-repeat;
  mask: var(--drips) bottom / 100% 26px no-repeat, linear-gradient(#000, #000) top / 100% calc(100% - 25px) no-repeat;
}
.glaze-tile::after { content: ""; position: absolute; left: 50%; top: 7px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.glaze-tile:hover { transform: translateY(-3px) rotate(-4deg); }
.glaze-tile[aria-pressed="true"] { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--glaze); }
.glaze-tile .glaze-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.glaze-now { display: block; margin-top: 8px; font-size: .9rem; opacity: .85; min-height: 1.3em; }
.site-footer .glaze-tile::after { background: var(--ink); }
@media (prefers-color-scheme: dark) { .site-footer .glaze-tile::after { background: #120E0C; } }
.footer-meta .glaze-tiles { justify-content: flex-end; }
@media (max-width: 800px) { .footer-meta .glaze-tiles { justify-content: flex-start; } }

/* Throw a pot: the section is tall, the wheel stays put while you scroll and the pot rises */
.throw { position: relative; height: 320vh; }
.throw-stage { position: sticky; top: 92px; min-height: calc(100vh - 92px); display: grid; align-items: center; padding: 24px 0; }
.throw-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.throw-hint { color: var(--muted); }
.throw-steps { display: grid; gap: 4px; margin: 1.2rem 0 1.6rem; }
.throw-steps li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 6px 10px; border-radius: 14px;
  color: var(--muted); opacity: .55; transition: opacity .3s, background-color .3s, color .3s;
}
.throw-steps li::before {
  content: attr(data-n); grid-row: span 2; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px dashed currentColor; font: 400 1rem/1 var(--serif);
}
.throw-steps strong { font: 400 1.2rem/1.2 var(--serif); color: var(--ink); }
.throw-steps span { font-size: .98rem; }
.throw-steps li.is-done { opacity: .85; }
.throw-steps li.is-now { opacity: 1; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.throw-steps li.is-now::before, .throw-steps li.is-done::before { border-style: solid; background: var(--glaze-soft); color: var(--ink); }
.throw-art { position: relative; }
.throw-svg { width: 100%; max-width: 520px; margin-inline: auto; display: block; overflow: visible; }
.throw-svg .kiln { opacity: 0; transition: opacity .6s; }
.throw.is-fired .kiln { opacity: 1; }
.throw-svg .wheel-shadow { fill: rgba(60, 35, 15, .18); }
.throw-svg .wheel-head { fill: var(--wood); stroke: var(--wood-dark); stroke-width: 2; }
.throw-svg .wheel-marks path { fill: none; stroke: var(--wood-dark); stroke-width: 2; stroke-linecap: round; opacity: .6; }
.throw-svg .throw-pot { fill: #C98A62; transition: fill .8s; }
.throw.is-bisque .throw-pot { fill: #EAC9AE; }
.throw-svg .throw-outline { fill: none; stroke: rgba(60, 35, 15, .55); stroke-width: 2; stroke-linejoin: round; }
.throw-svg .throw-glaze { fill: var(--glaze); transition: fill .5s; }
.throw-svg .throw-spin path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 3; stroke-linecap: round; }
.throw.is-fired .throw-glaze { filter: saturate(1.25) brightness(1.05); }
@media (max-width: 860px) {
  .throw { height: 300vh; }
  .throw-stage { top: 72px; min-height: calc(100vh - 72px - 76px); padding: 12px 0; }
  .throw-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .throw-art { order: -1; }
  .throw-svg { max-width: 260px; }
  .throw-copy h2, .throw-copy .eyebrow, .throw-hint { display: none; }
  /* Only the step you're on, so it all fits on a phone screen */
  .throw-steps { margin: 0 0 12px; }
  .throw-steps li { display: none; }
  .throw-steps li.is-now { display: grid; }
}
/* Without JavaScript or with reduced motion: no scrolling stage, just the finished pot and the steps */
html:not(.js) .throw, .throw.is-still { height: auto; }
html:not(.js) .throw-stage, .throw.is-still .throw-stage { position: static; min-height: 0; padding: clamp(56px, 8vw, 100px) 0; }
html:not(.js) .throw-steps li, .throw.is-still .throw-steps li { display: grid; opacity: 1; }
html:not(.js) .throw-hint, .throw.is-still .throw-hint { display: none; }
html:not(.js) .glaze-picker { display: none; }
@media (max-width: 860px) { .throw.is-still .throw-copy h2, .throw.is-still .throw-copy .eyebrow { display: block; } }

/* The shelf pots turn on the wheel when you hover them */
@keyframes turn { 0%, 100% { transform: translateY(-4px) scaleX(1); } 50% { transform: translateY(-4px) scaleX(-1); } }
@media (hover: hover) {
  .shelf a:hover .pot { animation: turn 1.1s cubic-bezier(.45, 0, .55, 1) 1; }
}

/* Pages change like clay rising on the wheel (browsers that support cross-page view transitions) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: header; }
.site-footer { view-transition-name: footer; }
::view-transition-old(root) { animation: .25s ease both clay-out; }
::view-transition-new(root) { animation: .45s cubic-bezier(.2, .7, .2, 1) both clay-in; }
@keyframes clay-out { to { opacity: 0; transform: scale(.985); } }
@keyframes clay-in { from { opacity: 0; transform: translateY(24px) scaleY(.97); transform-origin: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Libby's work, from her Instagram: each piece in a pinched clay frame, a little off true, on a kiln shelf */
.kiln-shelf { columns: 3 300px; column-gap: clamp(16px, 2.6vw, 28px); margin-bottom: 2rem; }
.kiln-shelf-2 { columns: 2 260px; max-width: 760px; margin-inline: auto; }
.kiln-shelf-3 { columns: 3 220px; }
.piece { break-inside: avoid; margin: 0 0 clamp(16px, 2.6vw, 28px); }
.piece a {
  display: block; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pinched);
  box-shadow: var(--shadow); transform: rotate(-1.2deg); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.piece:nth-child(2n) a { transform: rotate(1deg); }
.piece:nth-child(3n) a { transform: rotate(-.4deg); }
.piece a:hover, .piece a:focus-visible { transform: translateY(-4px) rotate(0); box-shadow: 0 26px 44px -24px rgba(62, 40, 26, .6); }
.piece img { width: 100%; border-radius: 20px 16px 22px 14px / 16px 22px 14px 20px; background: var(--tint); }
.piece figcaption { margin-top: 10px; padding-left: 6px; font: 400 italic 1.05rem/1.3 var(--serif); color: var(--muted); }
.past-stalls { margin-top: clamp(56px, 8vw, 96px); }
.past-stalls h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

/* Lightbox (site.js builds it) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); width: 100%; color: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(27, 21, 18, .82); backdrop-filter: blur(4px); }
.lightbox-frame { margin: 0; padding: 12px; background: var(--surface); border-radius: var(--pinched); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lightbox-frame img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 18px; background: var(--tint); }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 6px 2px; }
.lightbox-bar figcaption { font: 400 italic 1.3rem/1.2 var(--serif); }
.lightbox-bar a { font-weight: 600; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font: 400 1.6rem/1 var(--serif);
}
.lightbox-btn:hover { background: var(--peach); }
.lightbox-close { top: -16px; right: -12px; }
.lightbox-prev, .lightbox-next { top: 40%; }
.lightbox-prev { left: -22px; }
.lightbox-next { right: -22px; }
@media (max-width: 560px) { .lightbox-prev { left: 4px; } .lightbox-next { right: 4px; } .lightbox-close { right: 4px; } }

/* Bigger glaze tiles on phones: easier to tap */
@media (pointer: coarse) { .glaze-tile { width: 46px; height: 60px; } .glaze-tiles { gap: 12px; } }

/* Two pieces to a row on phones, so the galleries stay short */
@media (max-width: 600px) {
  .kiln-shelf, .kiln-shelf-2, .kiln-shelf-3 { columns: 2; column-gap: 12px; }
  .piece { margin-bottom: 14px; }
  .piece a { padding: 5px; border-radius: 18px 14px 20px 12px / 14px 20px 12px 18px; }
  .piece img { border-radius: 14px 11px 15px 10px / 11px 15px 10px 14px; }
  .piece figcaption { font-size: .9rem; margin-top: 6px; padding-left: 3px; }
}
/* Work page: jump to a group */
.work-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 1.2rem; }
.work-jump a {
  padding: 9px 16px; border-radius: var(--pinched); border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.work-jump a:hover { border-color: var(--clay); color: var(--clay); }
/* Five pots on a phone's bottom shelf */
@media (max-width: 760px) {
  .shelf a { font-size: .74rem; letter-spacing: 0; }
  .shelf .pot { width: 34px; height: 34px; }
}
