/* Lehmiat design tokens, compiled from the Lehmiat design system (tokens.json). */
:root {
  --surface-100: #fbf4ea;
  --surface-200: #fffdf9;
  --surface-300: #f6e3d0;
  --peach-500: #e6a273;
  --taupe-300: #baaea2;
  --ink: #492213;
  --ink-muted: #73402b;
  --cocoa-700: #6b260d;
  --frame-cream: #ede1d6;
  --brand-blue: #154089;
  --blue-deep: #062a63;
  --brand-green: #a8c22b;
  --on-green: #062a63;
  --green-700: #4d6309;
  --brand-red: #d51317;
  --red-700: #b71c1c;
  --brand-orange: #fb9b09;
  --white: #ffffff;
  --border: #e6d7c3;
  --border-control: #8a6b58;
  --focus-ring: #154089;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 0 rgba(59, 31, 20, 0.08), 0 8px 24px rgba(59, 31, 20, 0.08);

  --font-display: "Zilla Slab", Rockwell, Georgia, serif;
  --font-sans: Nunito, "Segoe UI", system-ui, sans-serif;
}

/* Self-hosted Nunito (400, 600, 700) and Zilla Slab (600, 700), Latin subset, from @fontsource (SIL OFL). */
@font-face{font-family:Nunito;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Nunito;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Nunito;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Zilla Slab";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/zilla-slab-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Zilla Slab";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/zilla-slab-latin-700-normal.woff2) format("woff2")}

/* Lehmiat storefront. Every colour, size and radius comes from tokens.css. No new hex values here. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
}
img { max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
a { color: var(--brand-blue); }
a:hover { color: var(--blue-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
button { font-family: inherit; }
[hidden] { display: none !important; }
.grow { flex: 1 1 auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10; padding: var(--space-3) var(--space-4);
  background: var(--brand-blue); color: var(--white); border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--space-2); color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--space-5); padding-right: var(--space-5); }

/* Type */
.h1 { font: 700 36px/40px var(--font-display); color: var(--cocoa-700); }
.h2 { font: 700 28px/34px var(--font-display); color: var(--cocoa-700); margin-bottom: var(--space-2); }
.h3 { font: 600 22px/28px var(--font-display); color: var(--ink); }
.price { font: 700 20px/24px var(--font-display); color: var(--ink); }
.price--lg { font-size: 28px; line-height: 34px; }
.small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.page-lead { margin: var(--space-1) 0 var(--space-6); color: var(--ink-muted); }
.page-lead--lg { margin: var(--space-2) 0 0; color: var(--ink); font-size: 18px; line-height: 28px; }
.section-main { padding-top: var(--space-5); }
.section-main > .h1 + .page-lead, .section-main > .h1 { margin-top: var(--space-4); }
.section { padding-top: var(--space-8); }
.section__lead { margin-bottom: var(--space-6); color: var(--ink-muted); }
.text-link { font-weight: 700; color: var(--brand-blue); }

/* Announcement and header */
.announce { background: var(--brand-blue); color: var(--white); text-align: center; padding: 10px var(--space-4); font: 700 14px/20px var(--font-sans); }
.site-header { background: var(--surface-100); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; padding-top: var(--space-4); padding-bottom: var(--space-4); }
.logo-link { display: flex; }
.logo { display: block; width: 176px; height: auto; }
.nav { display: flex; gap: var(--space-5); flex-grow: 1; flex-wrap: wrap; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; padding: var(--space-2) 0; }
.nav a:hover { text-decoration: underline; }
.cart-pill {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 20px;
  border: 2px solid var(--brand-blue); border-radius: var(--radius-pill); color: var(--brand-blue);
  text-decoration: none; font: 700 16px/1 var(--font-sans);
}
.cart-pill:hover { background: var(--brand-blue); color: var(--white); }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-5);
  border: 2px solid transparent; border-radius: var(--radius-pill); text-decoration: none; cursor: pointer;
  font: 700 16px/1 var(--font-sans);
}
.btn--lg { min-height: 52px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--brand-blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); }
.btn--outline { border-color: var(--brand-blue); color: var(--brand-blue); background: transparent; }
.btn--outline:hover { background: var(--brand-blue); color: var(--white); }
.btn--green { background: var(--brand-green); color: var(--on-green); }
.btn--green:hover { color: var(--on-green); filter: brightness(0.95); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: none; }
.link-btn { min-height: 44px; padding: 0 var(--space-1); border: 0; background: transparent; color: var(--brand-blue); font: 700 14px/1 var(--font-sans); text-decoration: underline; cursor: pointer; }
.badges { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--brand-green); color: var(--on-green);
  font: 700 12px/16px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.stock { font: 700 14px/20px var(--font-sans); }
.stock--in { color: var(--green-700); }
.stock--out { color: var(--red-700); }
.shadow-img { filter: drop-shadow(0 8px 12px rgba(73, 34, 19, 0.25)); }

/* Hero */
.section-hero { padding-top: var(--space-5); }
.hero {
  background: var(--peach-500); border-radius: var(--radius-lg); padding: 56px; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center;
}
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.hero h1 { font: 700 48px/52px var(--font-display); color: var(--cocoa-700); }
.hero__lead { max-width: 480px; font-size: 18px; line-height: 28px; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero__stage { position: relative; width: 380px; height: 440px; flex: none; color: var(--ink); }
.hero__disc { position: absolute; right: 0; bottom: 0; width: 340px; height: 340px; border-radius: 50%; background: var(--taupe-300); }
.hero__frame { position: absolute; left: 40px; top: 20px; width: 300px; height: 400px; border: 8px solid var(--frame-cream); border-radius: 32px; transform: rotate(7deg); }
.hero__pouch { position: absolute; left: 50%; top: 50%; height: 386px; width: auto; transform: translate(-50%, -50%) rotate(-3deg); filter: drop-shadow(0 12px 16px rgba(73, 34, 19, 0.28)); }
.hero__star { position: absolute; left: 0; top: 56px; }
.hero__sparkle { position: absolute; right: 12px; top: 8px; color: var(--surface-200); }

.section-trust { padding-top: var(--space-5); }
.trust { background: var(--surface-300); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-5) 40px; }
.trust > div { flex: 1 1 220px; display: flex; flex-direction: column; }
.trust span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Product grid and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.card { background: var(--surface-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.card__media { display: flex; align-items: center; justify-content: center; height: 300px; background: var(--surface-300); border-radius: var(--radius-md); }
.card__media img { display: block; height: 260px; width: auto; }
.card__body { display: flex; flex-direction: column; gap: var(--space-3); }
.card__title { font: 600 22px/28px var(--font-display); }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__desc { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: calc(var(--space-2) * -1); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; }

/* How ordering works */
.steps { background: var(--surface-300); border-radius: var(--radius-lg); padding: var(--space-7); }
.steps .h2 { margin-bottom: var(--space-6); }
.steps__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.steps__n { display: block; font: 700 40px/44px var(--font-display); color: var(--cocoa-700); }
.steps__list h3 { font: 600 22px/28px var(--font-display); margin: var(--space-2) 0 var(--space-1); }
.steps__list p { color: var(--ink-muted); }

/* Footer */
.site-footer { margin-top: var(--space-8); background: var(--surface-300); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); padding-top: var(--space-7); padding-bottom: var(--space-6); }
.site-footer__brand { flex: 1 1 280px; }
.site-footer__brand .logo { width: 160px; }
.site-footer__brand p { margin-top: var(--space-4); max-width: 320px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.site-footer__col { flex: 0 1 180px; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col--contact { flex-basis: 260px; }
.site-footer__col h3 { margin-bottom: var(--space-1); font: 700 14px/20px var(--font-sans); }
.site-footer__col a { color: var(--ink); padding: var(--space-1) 0; }
.site-footer__legal { padding-top: var(--space-4); padding-bottom: var(--space-6); border-top: 1px solid var(--border); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.site-footer__min { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); justify-content: space-between; padding-top: var(--space-6); padding-bottom: var(--space-6); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.site-footer__min a { color: var(--ink); }

/* Product page */
.breadcrumb { margin-bottom: var(--space-5); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb [aria-current] { color: var(--ink); }
.pdp { display: flex; flex-wrap: wrap; gap: var(--space-7); align-items: flex-start; }
.pdp__gallery { flex: 1 1 460px; min-width: 0; }
.pdp__stage { position: relative; height: 520px; background: var(--surface-300); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pdp__disc { position: absolute; right: -40px; bottom: -60px; width: 360px; height: 360px; border-radius: 50%; background: var(--taupe-300); }
.pdp__frame { position: absolute; left: 50%; top: 50%; width: 330px; height: 440px; border: 8px solid var(--frame-cream); border-radius: 32px; transform: translate(-50%, -50%) rotate(6deg); }
.pdp__img { position: relative; display: block; height: 420px; width: auto; filter: drop-shadow(0 14px 18px rgba(73, 34, 19, 0.28)); }
.thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.thumb { width: 88px; height: 88px; padding: 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border-control); border-radius: var(--radius-md); background: var(--surface-300); cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--brand-blue); }
.thumb img { height: 68px; width: auto; }
.pdp__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pdp__descriptor { margin-top: var(--space-1); font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.pdp__price { display: flex; align-items: baseline; gap: var(--space-4); }
.pdp__buy { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.pdp__buy .btn { flex: 1 1 200px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-5); }
.specs dt { font-weight: 700; }
.specs dd { color: var(--ink-muted); }
.note { background: var(--surface-300); border-radius: var(--radius-md); padding: 14px var(--space-4); font-size: 14px; line-height: 20px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--border-control); border-radius: var(--radius-pill); background: var(--surface-200); }
.stepper button { width: 48px; height: 48px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: 700 20px/1 var(--font-sans); cursor: pointer; }
.stepper button:disabled { opacity: 0.5; cursor: not-allowed; }
.stepper__value { min-width: 40px; text-align: center; font: 700 16px/1 var(--font-sans); }
.stepper--sm button { width: 44px; height: 44px; }
.stepper--sm .stepper__value { min-width: 32px; }

/* Cart and checkout */
.two-col { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; }
.two-col > :first-child { flex: 2 1 560px; min-width: 0; }
.two-col > :last-child { flex: 1 1 320px; min-width: 0; }
.panel { background: var(--surface-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-5); }
.panel--lines { padding-top: var(--space-2); padding-bottom: 0; }
.panel__foot { padding: 20px 0 var(--space-4); }
.summary { display: flex; flex-direction: column; gap: var(--space-4); }
.summary__row { display: flex; justify-content: space-between; }
.summary__row--rule { padding-top: var(--space-4); border-top: 1px solid var(--border); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-4); border-top: 1px solid var(--border); }
.summary__total > span { font-weight: 700; }
.line { display: flex; flex-wrap: wrap; gap: var(--space-4) 20px; align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--border); }
.line__thumb { flex: none; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--surface-300); border-radius: var(--radius-md); }
.line__thumb img { display: block; height: 80px; width: auto; }
.line__info { flex: 1 1 180px; min-width: 0; }
.line__info .card__desc { margin-top: 0; }
.line__info .card__desc + .card__desc { margin-top: var(--space-1); }
.line__controls { display: flex; flex-direction: column; gap: var(--space-1); align-items: flex-start; }
.line__total { min-width: 110px; text-align: right; }
.empty { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; padding: var(--space-5) 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.stack--sm { gap: var(--space-3); }
fieldset.panel { margin: 0; border: 0; min-width: 0; }
fieldset.panel legend { float: left; width: 100%; padding: 0; margin: 0 0 calc(var(--space-2) * -1); }
fieldset.panel > :nth-child(2) { clear: both; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font: 700 14px/20px var(--font-sans); }
.optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  min-height: 48px; padding: 0 var(--space-3); border: 2px solid var(--border-control); border-radius: var(--radius-sm);
  background: var(--surface-200); color: var(--ink); font: 400 16px/24px var(--font-sans); width: 100%;
}
.field textarea { padding: var(--space-3); resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red-700); }
.field__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.field__error, .form-error { display: flex; gap: 6px; align-items: flex-start; font: 700 14px/20px var(--font-sans); color: var(--red-700); }
.field__error svg { flex: none; margin-top: 2px; }
.alert {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px var(--space-4); border: 2px solid var(--red-700);
  border-radius: var(--radius-md); background: var(--surface-200); font-size: 14px; line-height: 20px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay { clear: both; display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) 20px; border: 2px solid var(--brand-blue); border-radius: var(--radius-md); background: var(--surface-100); cursor: pointer; }
.pay input { margin: 4px 0 0; width: 20px; height: 20px; accent-color: var(--brand-blue); }
.pay > span { display: flex; flex-direction: column; gap: 2px; }
.pay > span > span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.turnstile { min-height: 65px; }
.sline { display: flex; gap: var(--space-3); align-items: center; }
.sline__thumb { flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--surface-300); border-radius: var(--radius-sm); }
.sline__thumb img { display: block; height: 52px; width: auto; }
.sline__info { flex: 1 1 auto; min-width: 0; }
.sline__name, .sline__total { font-weight: 700; }
.sline__total { white-space: nowrap; }

/* Thanks */
.thanks { position: relative; background: var(--peach-500); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-5); overflow: hidden; display: flex; justify-content: center; }
.thanks__disc { position: absolute; border-radius: 50%; background: var(--taupe-300); }
.thanks__disc--a { left: -120px; bottom: -160px; width: 420px; height: 420px; }
.thanks__disc--b { right: -100px; top: -140px; width: 360px; height: 360px; }
.thanks__card {
  position: relative; width: 100%; max-width: 640px; background: var(--surface-200); border-radius: var(--radius-lg);
  border: 8px solid var(--frame-cream); padding: 40px; display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start;
}
.thanks__card > svg { color: var(--brand-green); }
.refbox { align-self: stretch; background: var(--surface-300); border-radius: var(--radius-md); padding: var(--space-4) 20px; }
.refbox__ref { font: 700 28px/34px var(--font-display); letter-spacing: 0.06em; }
.next { padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }

/* Text pages */
.prose { max-width: 760px; padding-bottom: var(--space-4); }
.prose > * + * { margin-top: var(--space-4); }
.prose .h3 { margin-top: var(--space-6); }
.contact-list { padding-left: var(--space-5); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .cart-pill { transition: background-color 0.15s, color 0.15s; }
}

/* Phone: single column, 16px gutters, compact product cards */
@media (max-width: 639px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .h1 { font-size: 30px; line-height: 36px; }
  .site-header__inner { gap: var(--space-3); padding-top: var(--space-3); padding-bottom: var(--space-3); justify-content: space-between; }
  .logo { width: 136px; }
  .nav { display: none; }
  .cart-pill { min-height: 48px; padding: 0 var(--space-4); }
  .hero { padding: var(--space-5) var(--space-4); gap: var(--space-5); }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero__lead { font-size: 16px; line-height: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__art { flex-basis: 100%; }
  .hero__stage { width: 100%; max-width: 320px; height: 380px; }
  .hero__disc { width: 260px; height: 260px; }
  .hero__frame { left: 30px; width: 250px; height: 340px; }
  .hero__pouch { height: 320px; }
  .trust { padding: var(--space-4); gap: var(--space-4); }
  .section { padding-top: var(--space-7); }
  .grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "media body" "badges badges" "btn btn"; column-gap: var(--space-3); row-gap: var(--space-3); }
  .card__media { grid-area: media; width: 112px; height: 144px; }
  .card__media img { height: 124px; }
  .card__body { grid-area: body; gap: var(--space-1); }
  .card__desc { margin-top: 0; }
  .card__meta { margin-top: auto; }
  .card__badges { grid-area: badges; }
  .card__badges .badge:nth-child(n+2) { display: none; }
  .card__btn { grid-area: btn; }
  .steps { padding: var(--space-5) var(--space-4); }
  .site-footer__grid { gap: var(--space-5); padding-top: var(--space-6); }
  .pdp { gap: var(--space-5); }
  .pdp__stage { height: 380px; }
  .pdp__img { height: 320px; }
  .pdp__frame { width: 250px; height: 340px; }
  .pdp__buy .btn { flex-basis: 100%; }
  .pdp__info .btn { width: 100%; }
  .panel { padding: var(--space-4); }
  .line__total { text-align: left; }
  .thanks { padding: var(--space-5) var(--space-3); }
  .thanks__card { padding: var(--space-5) var(--space-4); }
  .thanks__card .btn { width: 100%; }
}
