/* ==========================================================================
   SAVORLEN — Master stylesheet
   Brand system: Warm Porcelain, Vanilla, Midnight Indigo, Muted Terracotta
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Michroma";
  src: url("/assets/fonts/michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --porcelain: #faf9f4;
  --vanilla: #eeebda;
  --indigo: #282b4a;
  --indigo-deep: #1d2038;
  --terracotta: #c47c65;
  --terracotta-ink: #95513f;
  --ink-soft: #4a4d6b;
  --ink-muted: #626581;
  --line: rgba(40, 43, 74, 0.14);
  --line-strong: rgba(40, 43, 74, 0.28);
  --focus: #282b4a;
  --white: #fffdf8;

  --font-display: "Michroma", "Arial Black", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --header-height: 72px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--porcelain);
  color: var(--indigo);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

::selection {
  background: var(--terracotta);
  color: var(--porcelain);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 6.2vw, 5.15rem);
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

.lead {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow--muted {
  color: var(--ink-muted);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
}

.section-label::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--terracotta);
  flex: 0 0 auto;
}

.text-link {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.18s ease;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--indigo);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow span[aria-hidden="true"] {
  transition: transform 0.2s var(--ease-out);
}

.link-arrow:active span[aria-hidden="true"] {
  transform: translateX(2px);
}

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover span[aria-hidden="true"] {
    transform: translateX(4px);
  }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - (2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (2 * var(--gutter)), 860px);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}

.section--vanilla {
  background: var(--vanilla);
}

.section--line {
  border-top: 1px solid var(--line);
}

.section--dark {
  background: var(--indigo);
  color: var(--porcelain);
  --focus: var(--porcelain);
}

.section__header {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__title {
  max-width: 18ch;
}

.section__intro {
  max-width: 62ch;
  color: var(--ink-soft);
}

.section--dark .section__intro,
.section--dark .lead {
  color: rgba(250, 249, 244, 0.76);
}

.section--dark .section-label {
  color: rgba(250, 249, 244, 0.68);
}

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

.stack {
  display: grid;
  gap: 1rem;
}

.stack--lg {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.8rem 1.1rem;
  background: var(--indigo);
  color: var(--porcelain);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease-out;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--indigo);
  color: var(--porcelain);
}

.btn--primary:hover {
  background: var(--indigo-deep);
}

.btn--secondary {
  border-color: var(--indigo);
  background: transparent;
  color: var(--indigo);
}

.btn--secondary:hover {
  background: var(--indigo);
  color: var(--porcelain);
}

.btn--light {
  background: var(--porcelain);
  color: var(--indigo);
}

.btn--light:hover {
  background: var(--vanilla);
}

.btn--outline-light {
  border-color: rgba(250, 249, 244, 0.52);
  background: transparent;
  color: var(--porcelain);
}

.btn--outline-light:hover {
  background: var(--porcelain);
  color: var(--indigo);
}

.btn--small {
  min-height: 44px;
  padding: 0.7rem 1rem;
  font-size: 0.7rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(40, 43, 74, 0.08);
  background: rgba(250, 249, 244, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow:
    0 1px 0 rgba(40, 43, 74, 0.05),
    0 12px 32px -22px rgba(29, 32, 56, 0.5);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--porcelain);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 46px;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.primary-nav__link:hover {
  color: var(--indigo);
}

.primary-nav__link[aria-current="page"] {
  color: var(--indigo);
  font-weight: 600;
}

.primary-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 9px;
  left: 0.85rem;
  height: 2px;
  background: var(--terracotta);
}

.mobile-nav {
  display: none;
}

.mobile-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
  transition:
    background-color 0.18s ease,
    transform 0.1s ease-out;
}

.mobile-nav__toggle:hover {
  background: rgba(40, 43, 74, 0.04);
}

.mobile-nav__toggle:active {
  transform: scale(0.97);
}

.mobile-nav__toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav__toggle::marker {
  content: "";
}

.mobile-nav__icon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.mobile-nav__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.2s var(--ease-out),
    opacity 0.2s ease;
}

.mobile-nav[open] .mobile-nav__icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-nav[open] .mobile-nav__icon span:nth-child(2) {
  opacity: 0;
}

.mobile-nav[open] .mobile-nav__icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav__panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--line-strong);
  background: var(--porcelain);
  box-shadow: 0 24px 48px -24px rgba(29, 32, 56, 0.45);
  transform-origin: top center;
  will-change: opacity, transform;
}

.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(29, 32, 56, 0.32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

body.nav-open .mobile-nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

@media (min-width: 901px) {
  .mobile-nav-scrim {
    display: none;
  }
}

.mobile-nav__inner {
  padding-block: 1rem 1.5rem;
}

.mobile-nav__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--indigo);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav__link[aria-current="page"] {
  font-weight: 700;
}

.mobile-nav__link[aria-current="page"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

.mobile-nav__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.mobile-nav__meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  color: var(--ink-muted);
}

.hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--terracotta);
  flex: 0 0 auto;
}

.hero h1 {
  max-width: 14ch;
}

.hero__lead {
  margin-top: 1.5rem;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.hero__note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex: 0 0 auto;
}

.hero__art {
  position: relative;
  width: 100%;
}

.hero__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 4.65;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  background: var(--indigo);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(250, 249, 244, 0.16);
  pointer-events: none;
}

.hero__mark {
  width: min(62%, 300px);
  height: auto;
}

.hero__index {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  color: rgba(250, 249, 244, 0.62);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__caption {
  position: absolute;
  right: 1.35rem;
  bottom: 1.25rem;
  left: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(250, 249, 244, 0.6);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 8px;
  background: var(--terracotta);
}

/* --------------------------------------------------------------------------
   Home: collection preview, empty states, principles
   -------------------------------------------------------------------------- */

.collection-preview__intro {
  display: grid;
  gap: 1.25rem;
}

.collection-preview__intro .section-label {
  margin-bottom: 0.25rem;
}

.collection-preview__copy {
  max-width: 44ch;
  color: var(--ink-soft);
}

.collection-preview__actions {
  margin-top: 0.5rem;
}

.empty-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.empty-panel__mark {
  width: 88px;
  height: 88px;
  opacity: 0.95;
}

.empty-panel__title {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

.empty-panel__copy {
  max-width: 48ch;
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.empty-panel__actions {
  margin-top: 1.35rem;
}

.empty-panel__label {
  margin-bottom: 0.55rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.principle {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line);
}

.principle + .principle {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.principle__number {
  margin-bottom: 1.2rem;
  color: var(--terracotta-ink);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.principle h3 {
  margin-bottom: 0.65rem;
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Contact band and contact page
   -------------------------------------------------------------------------- */

.contact-band {
  position: relative;
  padding-block: clamp(3.25rem, 7.5vw, 6rem);
  background: var(--indigo-deep);
}

.contact-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(64px, 14vw, 180px);
  height: 2px;
  background: var(--terracotta);
}

.contact-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.contact-band h2 {
  max-width: 16ch;
}

.contact-band__copy {
  max-width: 48ch;
  margin-top: 1rem;
  color: rgba(250, 249, 244, 0.74);
}

.contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin-top: 1.5rem;
  color: rgba(250, 249, 244, 0.66);
  font-size: 0.82rem;
}

.contact-band__meta a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 230px;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--vanilla);
  color: var(--indigo);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease-out;
}

.contact-card:hover {
  border-color: var(--indigo);
  background: #f4f1e5;
}

.contact-card:active {
  transform: scale(0.992);
}

.contact-card__icon {
  width: 30px;
  height: 30px;
  color: var(--indigo);
}

.contact-card__label {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.contact-card__value {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-card__hint {
  margin-top: auto;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.contact-note {
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--terracotta);
  background: var(--vanilla);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-note strong {
  color: var(--indigo);
}

/* --------------------------------------------------------------------------
   Catalogue
   -------------------------------------------------------------------------- */

.catalogue {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 7rem);
}

.catalogue__intro {
  max-width: 68ch;
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.catalogue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-chip {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--indigo);
  font-size: 0.8rem;
  font-weight: 500;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease-out;
}

.filter-chip:hover {
  border-color: var(--indigo);
}

.filter-chip:active {
  transform: scale(0.97);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--indigo);
  background: var(--indigo);
  color: var(--porcelain);
}

.results-count {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--vanilla);
  transition:
    transform 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
}

.product-card:focus-within {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.product-card:has(.product-card__link:active) {
  transform: scale(0.995);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: 0 18px 40px -28px rgba(29, 32, 56, 0.45);
  }
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--vanilla);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__media img {
    transform: scale(1.035);
  }
}

.product-card__media--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-card__media img.product-card__fallback-mark {
  width: 46%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.product-card__fallback-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.1rem 1.25rem;
}

.product-card__category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card__category::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex: 0 0 auto;
}

.product-card__name {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}

.product-card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.product-card__link {
  color: var(--indigo);
  text-decoration: none;
}

.product-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__link:focus-visible {
  outline: none;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 600;
}

.price__current {
  font-size: 1rem;
}

.price__old {
  color: var(--ink-muted);
  font-size: 0.85em;
  font-weight: 400;
  text-decoration: line-through;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--porcelain);
  color: var(--indigo);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.stock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.stock--out {
  color: var(--terracotta-ink);
}

.stock--out .stock__dot {
  border: 1px solid currentColor;
  background: transparent;
}

.stock--unknown {
  color: var(--ink-muted);
}

.stock--unknown .stock__dot {
  border: 1px dashed currentColor;
  background: transparent;
}

/* Shared loading / empty / error states */

.state-panel {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.state-panel--error {
  border-left: 4px solid var(--terracotta);
}

.state-panel__title {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.state-panel__copy {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.state-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.state-panel--compact {
  padding: 1.5rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.skeleton-card {
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.skeleton-card__media {
  aspect-ratio: 4 / 5;
}

.skeleton-card__body {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
}

.skeleton-line {
  position: relative;
  overflow: hidden;
  height: 0.8rem;
  background: rgba(40, 43, 74, 0.08);
}

.skeleton-line--short {
  width: 55%;
}

.skeleton-line--title {
  height: 1.1rem;
  width: 78%;
}

.skeleton-media {
  position: relative;
  overflow: hidden;
  background: rgba(40, 43, 74, 0.06);
}

.skeleton-card__media,
.skeleton-line {
  position: relative;
  overflow: hidden;
}

.skeleton-card__media::after,
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 253, 248, 0.55),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */

.product-detail {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 7rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.breadcrumb a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumb__sep {
  color: var(--line-strong);
}

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

.product-detail__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__media--fallback {
  padding: 3rem;
}

.product-detail__media img.product-detail__fallback-mark {
  width: min(52%, 220px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.product-detail__fallback-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-detail__info {
  padding-top: 0.35rem;
}

.product-detail__category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-detail__category::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

.product-detail__title {
  margin-top: 0.85rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  overflow-wrap: anywhere;
}

.product-detail__description {
  max-width: 60ch;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.04rem;
  white-space: pre-line;
}

.product-detail__meta {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.product-detail__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-detail__label {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-detail__actions {
  margin-top: 2rem;
}

.product-detail__note {
  max-width: 56ch;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.product-detail__note a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.product-detail__loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding-block: 4rem;
}

.product-detail__loading p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.page-hero h1 {
  max-width: 15ch;
  margin-top: 1rem;
}

.page-hero__intro {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
}

.about-statement {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-left: 4px solid var(--terracotta);
  background: var(--vanilla);
}

.about-statement__text {
  max-width: 32ch;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-statement__credit {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.about-panel__mark {
  width: 110px;
  height: 110px;
  margin-bottom: 2rem;
}

.about-facts {
  display: grid;
  margin: 0;
}

.about-fact {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.about-fact:last-child {
  border-bottom: 1px solid var(--line);
}

.about-fact dt {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-fact dd {
  margin: 0;
  color: var(--indigo);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem);
}

.legal__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.legal__toc-title {
  margin-bottom: 0.85rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal__toc ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.legal__toc a {
  color: var(--ink-muted);
  text-decoration: none;
}

.legal__toc a:hover {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal__updated {
  margin-bottom: 2rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose strong {
  color: var(--indigo);
}

.prose hr {
  margin-block: 2.5rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal__contact {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.legal__contact p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.error-page__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.error-page__panel {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--vanilla);
}

.error-page__code {
  color: var(--indigo);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.error-page__copy {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.error-page__actions {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  border-top: 1px solid rgba(250, 249, 244, 0.12);
  background: var(--indigo);
  color: var(--porcelain);
  --focus: var(--porcelain);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-brand__logo {
  width: auto;
  height: 40px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 32ch;
  color: rgba(250, 249, 244, 0.7);
  font-size: 0.9rem;
}

.footer-heading {
  margin-bottom: 1rem;
  color: rgba(250, 249, 244, 0.58);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(250, 249, 244, 0.78);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--porcelain);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-list--contact a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 249, 244, 0.18);
  color: rgba(250, 249, 244, 0.58);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Material fallbacks
   -------------------------------------------------------------------------- */

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .mobile-nav__panel {
    background: var(--porcelain);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-nav-scrim {
    background: rgba(29, 32, 56, 0.5);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.6s var(--ease-out),
      transform 0.6s var(--ease-out);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hero__copy > * {
    animation: rise 0.55s var(--ease-out) both;
  }

  .hero__copy > *:nth-child(2) {
    animation-delay: 0.06s;
  }

  .hero__copy > *:nth-child(3) {
    animation-delay: 0.11s;
  }

  .hero__copy > *:nth-child(4) {
    animation-delay: 0.16s;
  }

  .hero__copy > *:nth-child(5) {
    animation-delay: 0.21s;
  }

  .hero__art {
    animation: fade 0.7s ease both;
    animation-delay: 0.1s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .brand__logo {
    height: 40px;
  }

  .hero__grid,
  .section__header,
  .split,
  .page-hero__inner,
  .contact-band__grid,
  .product-detail__grid,
  .error-page__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__art {
    order: 2;
    max-width: 560px;
    margin-inline: auto;
  }

  .hero__panel {
    aspect-ratio: 4 / 3.4;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .section__header {
    gap: 1rem;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle {
    padding: 1.75rem 0;
    border-left: 0;
  }

  .principle + .principle {
    padding-left: 0;
    border-left: 0;
    border-top: 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    min-height: 200px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal__toc {
    position: static;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .legal__toc ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail__media {
    aspect-ratio: 4 / 3.6;
    max-height: 560px;
  }
}

@media (max-width: 768px) {
  .product-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empty-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .empty-panel__mark {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    min-height: 0;
  }

  .about-fact {
    grid-template-columns: 8rem minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .btn-group .btn,
  .hero__actions .btn,
  .empty-panel__actions .btn,
  .state-panel__actions .btn,
  .contact-band__actions .btn,
  .product-detail__actions .btn,
  .error-page__actions .btn {
    flex: 1 1 100%;
  }

  .product-grid,
  .skeleton-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card__media {
    aspect-ratio: 4 / 4.4;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal__toc ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .hero__caption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .hero__panel {
    aspect-ratio: 4 / 3.8;
  }

  .product-detail__media {
    aspect-ratio: 4 / 4.2;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 1.1rem;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
  }

  .brand__logo {
    height: 36px;
  }

  .mobile-nav__toggle {
    padding-inline: 0.5rem;
  }

  .mobile-nav__label {
    display: none;
  }
}

/* Print: keep the content readable and remove navigation chrome. */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .hero__art,
  .mobile-nav,
  .primary-nav,
  .contact-band__actions,
  .product-detail__actions,
  .catalogue-toolbar,
  .state-panel__actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section,
  .hero,
  .legal,
  .product-detail,
  .catalogue {
    padding-block: 1rem;
  }
}
