/* ============================================================
   Design Tokens — Premium Minimal Warm Neutral
   ============================================================
   Shared stylesheet for all downstream pages / webshop steps.
   Link via: <link rel="stylesheet" href="styles.css">
   ============================================================ */

/* ---------- Palette ---------- */
:root {
  /* Backgrounds & surfaces */
  --color-bg:          #FAF9F6;
  --color-surface:     #F3F1ED;
  --color-surface-alt: #EBE8E3;
  --color-card:        #FFFFFF;

  /* Text */
  --color-text:        #2B2825;
  --color-text-muted:  #78726A;
  --color-text-subtle: #A39E96;

  /* Accent — warm copper / terracotta */
  --color-accent:      #C07A50;
  --color-accent-hover:#A86840;
  --color-accent-light:#F0DDD2;

  /* Borders & dividers */
  --color-border:      #E5E1DB;
  --color-border-light:#EDEBE7;

  /* Feedback */
  --color-success:     #6B8F6B;
  --color-error:       #C45B4A;

  /* Overlay */
  --color-overlay:     rgba(43, 40, 37, .45);
}

/* ---------- Type Scale (modular — 1.25 ratio) ---------- */
:root {
  --font-heading: "Cormorant Garamond", "Georgia", serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", monospace;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.563rem;  /* 25px */
  --fs-2xl:  1.953rem;  /* 31px */
  --fs-3xl:  2.441rem;  /* 39px */
  --fs-4xl:  3.052rem;  /* 49px */
  --fs-5xl:  3.815rem;  /* 61px */

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  --ls-tight:  -0.02em;
  --ls-normal:  0;
  --ls-wide:    0.04em;
  --ls-caps:    0.08em;
}

/* ---------- Spacing Scale (4-px base) ---------- */
:root {
  --sp-1:  0.25rem;   /*  4px */
  --sp-2:  0.5rem;    /*  8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.25rem;   /* 20px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-8:  2rem;      /* 32px */
  --sp-10: 2.5rem;    /* 40px */
  --sp-12: 3rem;      /* 48px */
  --sp-16: 4rem;      /* 64px */
  --sp-20: 5rem;      /* 80px */
  --sp-24: 6rem;      /* 96px */
  --sp-32: 8rem;      /* 128px */

  /* Section spacing */
  --section-py:  var(--sp-20);
  --section-px:  var(--sp-6);
  --container-max: 72rem;   /* 1152px */
  --container-narrow: 48rem; /* 768px */
}

/* ---------- Radii & Shadows ---------- */
:root {
  --radius-sm:  0.25rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-full:9999px;

  --shadow-sm:  0 1px 2px rgba(43,40,37,.04);
  --shadow-md:  0 4px 12px rgba(43,40,37,.06);
  --shadow-lg:  0 8px 30px rgba(43,40,37,.08);
  --shadow-xl:  0 16px 48px rgba(43,40,37,.10);
}

/* ---------- Transitions ---------- */
:root {
  --ease-out:   cubic-bezier(.25, .46, .45, .94);
  --ease-in-out:cubic-bezier(.42, 0, .58, 1);
  --duration:   .25s;
}

/* ============================================================
   Base Reset & Defaults
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ============================================================
   Typography Helpers
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-5xl); margin-bottom: var(--sp-6); }
h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-5); }
h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
h4 { font-size: var(--fs-xl);  margin-bottom: var(--sp-3); }
h5 { font-size: var(--fs-lg);  margin-bottom: var(--sp-3); }
h6 { font-size: var(--fs-md);  margin-bottom: var(--sp-2); }

p  { margin-bottom: var(--sp-4); max-width: 65ch; }
p:last-child { margin-bottom: 0; }

.text-muted  { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-accent { color: var(--color-accent); }
.text-caps   { text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-py);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--sp-8);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 64rem) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  background: rgba(250, 249, 246, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
}

.nav__links {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease-out);
}

.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.btn--ghost {
  color: var(--color-text-muted);
  padding: var(--sp-2) var(--sp-3);
}
.btn--ghost:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: box-shadow var(--duration) var(--ease-out),
              transform  var(--duration) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__img {
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: var(--color-surface-alt);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-32) var(--sp-6) var(--sp-20);
  background: var(--color-surface);
}

.hero__title {
  font-size: var(--fs-5xl);
  max-width: 18ch;
  margin-bottom: var(--sp-6);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: var(--sp-8);
  line-height: var(--lh-loose);
}

/* ============================================================
   Divider / Rule
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-12) 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: var(--sp-12) var(--sp-6);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* ============================================================
   Shop-specific helpers
   ============================================================ */
.price {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  color: var(--color-text);
}

.price--sale {
  color: var(--color-accent);
}

.price--original {
  text-decoration: line-through;
  color: var(--color-text-subtle);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
}

.badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  border-radius: var(--radius-full);
  background: var(--color-accent-light);
  color: var(--color-accent);
}
