/* ==========================================================================
   Sea Salt Clay — site styles
   Single stylesheet, no build step. Tokens live in :root.
   ========================================================================== */

:root {
  /* Palette: salt light and sea blue.
     The token names are unchanged from the earlier clay palette, so only
     these values move; --clay is now the deep blue that carries white
     text on buttons and links (4.8:1), while the pale blues stay for
     backgrounds, borders and the mark. */
  --cream:      #f4f9fc;
  --sand:       #e9f2f8;
  --glaze:      #dcedf8;
  --clay:       #36749a;
  --clay-dark:  #2a5c7c;
  --sea:        #a9d2e8;
  --sea-mid:    #8fc0de;
  --sea-dark:   #6fa8cc;
  --ink:        #22333d;
  --muted:      #566c7d;
  --line:       #d5e6f0;

  --bg:         var(--cream);
  --surface:    #ffffff;
  --text:       var(--ink);
  --text-muted: var(--muted);
  --accent:     var(--clay);
  --accent-ink: #fff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --gutter: 20px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(34, 51, 61, .05), 0 8px 24px rgba(34, 51, 61, .07);
  --shadow-lift: 0 2px 4px rgba(34, 51, 61, .06), 0 18px 40px rgba(34, 51, 61, .13);
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #141c22;
    --surface:    #1b262e;
    --sand:       #1b262e;
    --glaze:      #223039;
    --line:       #2c3d47;
    --text:       #e8f1f6;
    --text-muted: #9bb0be;
    --accent:     #8cc0e2;
    --accent-ink: #11191f;
    --sea:        #8fc0de;
  }
}

/* --------------------------------------------------------- base */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

img, svg { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 9vw, 96px); }
.section--tint { background: var(--sand); }

.section-head { max-width: 58ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--sea); }
}

/* --------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { color: var(--text); background: var(--glaze); }
.nav a[aria-current="page"] { color: var(--text); background: var(--glaze); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 16px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
}

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--clay-dark); color: var(--accent-ink); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--glaze); color: var(--text); }

/* --------------------------------------------------------- hero */

.hero { padding-block: clamp(48px, 8vw, 88px) clamp(56px, 9vw, 96px); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--text-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sea);
  flex: none;
}

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 70% 15%, color-mix(in srgb, var(--sea) 26%, transparent), transparent 62%),
    linear-gradient(160deg, var(--glaze), var(--sand));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 10%;
  overflow: hidden;
}
.hero__art img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 4 / 3; padding: 6%; }
}

/* --------------------------------------------------------- product grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--sand), var(--glaze));
  display: grid;
  place-items: center;
  padding: 14%;
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }

.card__tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.card__tag--sold { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { font-size: 1.05rem; margin: 0; }
.card__desc { font-size: .88rem; color: var(--text-muted); margin: 0 0 10px; }
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.card__price { font-weight: 600; font-size: 1rem; }
.card__price--sold { color: var(--text-muted); text-decoration: line-through; }
.card__link { font-size: .88rem; font-weight: 600; text-decoration: none; }
.card__link[aria-disabled="true"] { color: var(--text-muted); pointer-events: none; }

/* --------------------------------------------------------- filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter:hover { background: var(--glaze); color: var(--text); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filter[aria-pressed="true"] {
    background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  }
}

.grid-empty {
  color: var(--text-muted);
  padding: 2rem 0;
}

/* --------------------------------------------------------- feature rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split__art {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--glaze), var(--sand));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 10%;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: .4rem;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* --------------------------------------------------------- prose + faq */

.prose { max-width: 66ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; color: var(--text-muted); }
.prose li { margin-bottom: .4rem; }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  font-weight: 600;
  position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--text-muted); margin: 0 0 14px; max-width: 62ch; }

/* --------------------------------------------------------- forms */

.form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.field small { color: var(--text-muted); font-size: .8rem; }

.form-note {
  font-size: .86rem;
  color: var(--text-muted);
  background: var(--sand);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

/* --------------------------------------------------------- misc blocks */

.callout {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}
.callout h2 { margin-bottom: .4rem; }
.callout p { color: var(--text-muted); max-width: 48ch; margin-inline: auto; }
.callout .btn { margin-top: 1.25rem; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list dt, .info-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.info-list span, .info-list p { color: var(--text-muted); font-size: .92rem; margin: 0; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand);
  padding-block: 48px 32px;
  margin-top: clamp(48px, 8vw, 88px);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer p { color: var(--text-muted); font-size: .9rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer__base {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------- language switch */

.nav__lang {
  margin-left: 6px;
  padding: 6px 12px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
  color: var(--text-muted) !important;
}
.nav__lang:hover { background: var(--glaze); color: var(--text) !important; }

@media (max-width: 720px) {
  .nav__lang {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    border-radius: 10px !important;
  }
}

/* --------------------------------------------------- photographs in cards */

.card__media--photo {
  padding: 0;
  aspect-ratio: 1 / 1;
  background: var(--sand);
}
.card__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A photograph fills the hero and split frames too, rather than sitting
   inside them the way the illustrations do. */
.hero__art--photo,
.split__art--photo { padding: 0; overflow: hidden; }
.hero__art--photo img,
.split__art--photo img { width: 100%; height: 100%; object-fit: cover; }
