/* Designs by JoJo — warm porcelain gallery */

:root {
  --porcelain: oklch(0.965 0.008 75);
  --cream: oklch(0.93 0.012 80);
  --clay-ink: oklch(0.28 0.02 50);
  --clay-soft: oklch(0.42 0.02 50);
  --mauve: oklch(0.42 0.085 10);
  --mauve-bright: oklch(0.5 0.1 10);
  --mauve-deep: oklch(0.3 0.07 10);
  --mauve-wash: oklch(0.93 0.02 10);
  --bronze: oklch(0.55 0.07 75);
  --kiln-dark: oklch(0.21 0.015 60);
  --kiln-text: oklch(0.9 0.012 75);
  --line: oklch(0.84 0.015 70);

  --display: "Gloock", serif;
  --body: "EB Garamond", serif;

  --step-0: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-1: clamp(1.35rem, 1.2rem + 0.7vw, 1.7rem);
  --step-2: clamp(1.8rem, 1.5rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.9rem + 2.6vw, 3.8rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.8vw, 5rem);

  --space-band: clamp(4rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--clay-ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--mauve); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--mauve-bright); }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }

.label {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-soft);
}

.label--mauve { color: var(--mauve); }
.label--bronze { color: var(--bronze); }

/* ---------- nav: solid bar on every page, every size ---------- */

.nav {
  background: var(--porcelain);
  color: var(--clay-ink);
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}

.nav .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.nav-brand {
  font-family: var(--display);
  font-size: 1.4rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.nav-links { display: flex; gap: clamp(0.4rem, 2vw, 1.6rem); list-style: none; flex-wrap: wrap; }

.nav-links a {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.55rem;
}
.nav-links a:hover { color: var(--mauve); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; color: var(--mauve); }

@media (max-width: 40rem) {
  .nav .wrap { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .nav-links { margin-inline-start: -0.55rem; }
}

/* ---------- hero (home) ---------- */

.hero {
  background: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: min(80vh, 50rem);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  padding-inline-start: max(var(--gutter), calc((100vw - 72rem) / 2 + var(--gutter)));
  max-width: 38rem;
}

.hero-copy .label { margin-bottom: 1.4rem; }

.hero-copy h1 { font-size: var(--step-4); margin-bottom: 1.6rem; }

.hero-copy p { font-size: var(--step-1); line-height: 1.45; color: var(--clay-soft); max-width: 28ch; margin-bottom: 2.4rem; }

.hero-img { position: relative; min-height: 24rem; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-cta { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: transparent;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9em 1.8em;
  border: 1px solid currentColor;
  color: inherit;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { background: var(--clay-ink); border-color: var(--clay-ink); color: var(--porcelain); }

.btn--mauve { border-color: var(--mauve); color: var(--mauve); }
.btn--mauve:hover { background: var(--mauve); border-color: var(--mauve); color: var(--porcelain); }

.band--dark .btn:hover { background: var(--kiln-text); border-color: var(--kiln-text); color: var(--kiln-dark); }

.quiet-link { color: var(--mauve); font-size: 1.05rem; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; min-height: 70vw; }
  .hero-copy { padding-top: 2.4rem; }
}

/* ---------- bands ---------- */

.band { padding-block: var(--space-band); }
.band--cream { background: var(--cream); }
.band--dark { background: var(--kiln-dark); color: var(--kiln-text); }
.band--rose { background: var(--mauve-wash); }

.band-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.band-head .label { margin-bottom: 1rem; }
.band-head h2 { font-size: var(--step-3); margin-bottom: 1.1rem; }
.band-head p { color: var(--clay-soft); max-width: 58ch; }
.band--dark .band-head p { color: oklch(0.82 0.02 40); }

/* ---------- catalog plates ---------- */

.plate {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}
.plate:last-child { margin-bottom: 0; }

.plate--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.plate--flip .plate-img { order: 2; }

.plate-img img { width: 100%; }

.plate-caption { padding-bottom: 0.4rem; }
.plate-caption .label { margin-bottom: 0.9rem; }
.plate-caption h3 { font-size: var(--step-2); margin-bottom: 0.8rem; }
.plate-caption h3 a { text-decoration: none; color: inherit; }
.plate-caption h3 a:hover { color: var(--mauve); }
.plate-caption p { color: var(--clay-soft); max-width: 42ch; margin-bottom: 1.3rem; }
.band--dark .plate-caption p { color: oklch(0.78 0.02 70); }
.band--dark .inquire { color: var(--kiln-text); }
.plate-caption .inquire { font-size: 1rem; }

@media (max-width: 56rem) {
  .plate, .plate--flip { grid-template-columns: 1fr; align-items: start; }
  .plate--flip .plate-img { order: 0; }
}

/* ---------- collection index rows ---------- */

.collection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.collection-row:last-of-type { border-bottom: 1px solid var(--line); }

.collection-row h3 { font-size: var(--step-2); margin-bottom: 0.7rem; }
.collection-row .label { margin-bottom: 0.8rem; }
.collection-row p { color: var(--clay-soft); max-width: 52ch; }

.collection-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem; align-content: start; }
.collection-thumbs a { display: block; }
.collection-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

@media (max-width: 56rem) {
  .collection-row { grid-template-columns: 1fr; }
}

/* ---------- dark interlude ---------- */

.interlude { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.interlude h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.interlude p { color: oklch(0.8 0.02 70); max-width: 48ch; margin-bottom: 1.6rem; }
.interlude .label { color: var(--bronze); margin-bottom: 1rem; }

@media (max-width: 56rem) {
  .interlude { grid-template-columns: 1fr; }
}

/* ---------- piece detail ---------- */

.piece {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-band);
}

.piece-gallery img + img { margin-top: 1.5rem; }

.piece-info { position: sticky; top: 2rem; }
.piece-info .label { margin-bottom: 1rem; }
.piece-info h1 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.piece-info p { color: var(--clay-soft); margin-bottom: 1.2rem; max-width: 48ch; }

.piece-meta { list-style: none; margin: 2rem 0; border-top: 1px solid var(--line); }
.piece-meta li { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.piece-meta .k { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-soft); }

@media (max-width: 56rem) {
  .piece { grid-template-columns: 1fr; }
  .piece-info { position: static; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-grid .about-text h1 { font-size: var(--step-3); margin-bottom: 1.6rem; }
.about-grid .about-text h2 { font-size: var(--step-2); margin-top: 2.4rem; margin-bottom: 1rem; }
.about-grid .about-text p { margin-bottom: 1.2rem; max-width: 58ch; }

@media (max-width: 56rem) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-intro h1, .contact-intro h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.contact-intro p { color: var(--clay-soft); max-width: 48ch; margin-bottom: 1.2rem; }

.field { margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--clay-soft); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1.125rem;
  color: var(--clay-ink);
  background: oklch(0.99 0.004 75);
  border: 1px solid oklch(0.7 0.02 70);
  padding: 0.85em 1em;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--mauve);
  outline-offset: 1px;
}
.field textarea { min-height: 9rem; resize: vertical; }

.contact-grid form .btn { margin-top: 0.5rem; }

@media (max-width: 56rem) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.footer { background: var(--cream); color: var(--clay-soft); border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: 1rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: baseline; }
.footer a { color: var(--mauve); }
.footer .nav-brand { font-size: 1.15rem; color: var(--clay-ink); }

/* ---------- page head (interior pages) ---------- */

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.page-head .label { margin-bottom: 1rem; }
.page-head h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.page-head p { color: var(--clay-soft); max-width: 58ch; }

/* ---------- reveal motion (no-JS safe: only hides when .js is set) ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
