/* ============================================================
   Wedmind Design System — Colors & Type
   ----------------------------------------------------------------
   Brand source: uploads/Branding Merch - 6.PNG (fonts)
                 uploads/Branding Merch - 7.PNG (colors)
   ============================================================ */

/* ---------- Web fonts (Google Fonts approximations) ---------- */
/* See README.md → Typography → "Font substitutions" for the full
   mapping from brand fonts to Google Fonts. Replace these imports
   with self-hosted .woff2 files in fonts/ once licensed copies
   of TAN Twinkle / The Seasons / The Youngest Serif / Glacial
   Indifference are provided. */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&family=Courier+Prime:ital,wght@0,400;0,700&family=Italianno&family=Outfit:wght@300;400;500;600&family=Forum&display=swap");

:root {
  /* ============================================================
     COLOR — "Farger"
     ============================================================ */

  /* MEST (most-used) ------------------------------------------- */
  --wm-cream:        #FAF8F1;   /* page bg, default canvas */
  --wm-bone:         #EFE5D7;   /* warm beige, secondary surface */
  --wm-espresso:     #54443F;   /* TEKST — primary text, dark brand */

  /* mid neutrals ---------------------------------------------- */
  --wm-sand:         #E1CDB1;   /* warm tan, dividers/cards */
  --wm-mist:         #E2D6CD;   /* mauve cream, soft fill */
  --wm-walnut:       #8F6B4A;   /* MINDRE TEKST — secondary text, links */

  /* AKSENTFARGER (accents) ------------------------------------ */
  --wm-pearl:        #DBD6CE;   /* light gray, neutral chip */
  --wm-rose:         #A86A69;   /* dusty rose, primary accent */
  --wm-stone:        #A08C84;   /* warm taupe, secondary accent */

  /* ----- Semantic foreground / background ---------------------- */
  --wm-bg:           var(--wm-cream);
  --wm-bg-alt:       var(--wm-bone);
  --wm-bg-card:      #FFFFFF;
  --wm-bg-inset:     var(--wm-mist);

  --wm-fg:           var(--wm-espresso);
  --wm-fg-muted:     var(--wm-walnut);
  --wm-fg-soft:      #6e5a52;            /* darker walnut for body */
  --wm-fg-on-dark:   var(--wm-cream);

  --wm-border:       #E5DACC;            /* hairline on cream */
  --wm-border-soft:  #EFE5D7;
  --wm-border-strong:#D4C4B0;

  --wm-link:         var(--wm-walnut);
  --wm-link-hover:   var(--wm-espresso);

  --wm-accent:       var(--wm-rose);
  --wm-accent-hover: #934f4e;            /* rose -10% */
  --wm-accent-soft:  #E8D2D2;            /* rose 15% on cream */

  /* status — used sparingly; tinted toward warm palette */
  --wm-success:      #6E8B6F;
  --wm-warning:      #C99963;
  --wm-danger:       #A8534F;
  --wm-info:         var(--wm-stone);

  /* ============================================================
     TYPE — "Fonter"
     ============================================================ */

  /* Display family — Playfair Display: hero, page titles */
  --wm-font-display: "Playfair Display", "EB Garamond", Georgia, serif;

  /* Editorial family — Cormorant Garamond: large body, blockquotes,
     elegant subheads, "the seasons" feel for short phrases */
  --wm-font-editorial: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;

  /* Decorative script — TAN Twinkle approximation */
  --wm-font-script: "Italianno", "Pinyon Script", "Apple Chancery", cursive;

  /* Decorative serif — "The Youngest Serif" approximation */
  --wm-font-decorative: "Forum", "Cormorant Unicase", "Cormorant Garamond", serif;

  /* UI sans — Montserrat (used uppercase, tracked for labels) */
  --wm-font-ui: "Montserrat", "Glacial Indifference", "Outfit", system-ui, sans-serif;

  /* Body sans — Glacial Indifference approximation */
  --wm-font-body: "Outfit", "Glacial Indifference", "Montserrat", system-ui, sans-serif;

  /* Mono — Courier Prime, used for fine print / labels / spec */
  --wm-font-mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  /* Type scale (1.250 — Major Third) ---------------------------- */
  --wm-fs-12: 0.75rem;     /* tracked uppercase eyebrow */
  --wm-fs-14: 0.875rem;    /* small UI / mono labels */
  --wm-fs-16: 1rem;        /* base body */
  --wm-fs-18: 1.125rem;    /* large body */
  --wm-fs-20: 1.25rem;     /* lead */
  --wm-fs-24: 1.5rem;
  --wm-fs-30: 1.875rem;
  --wm-fs-36: 2.25rem;
  --wm-fs-48: 3rem;
  --wm-fs-60: 3.75rem;
  --wm-fs-72: 4.5rem;
  --wm-fs-96: 6rem;        /* hero display */

  --wm-lh-tight:   1.05;
  --wm-lh-snug:    1.2;
  --wm-lh-base:    1.55;
  --wm-lh-loose:   1.75;

  --wm-tracking-tight:  -0.02em;
  --wm-tracking-normal: 0;
  --wm-tracking-wide:   0.08em;
  --wm-tracking-xwide:  0.18em;   /* signature MONTSERRAT label */

  /* ============================================================
     SPACING / RADII / SHADOW / ELEVATION
     ============================================================ */
  --wm-space-1:  4px;
  --wm-space-2:  8px;
  --wm-space-3:  12px;
  --wm-space-4:  16px;
  --wm-space-5:  20px;
  --wm-space-6:  24px;
  --wm-space-8:  32px;
  --wm-space-10: 40px;
  --wm-space-12: 48px;
  --wm-space-16: 64px;
  --wm-space-20: 80px;
  --wm-space-24: 96px;

  /* Wedmind uses a generous, soft corner radius (see brand
     reference card around the swatch palette: ~24px on tiles,
     ~40px on the outer container). */
  --wm-radius-xs: 4px;
  --wm-radius-sm: 8px;
  --wm-radius-md: 14px;
  --wm-radius-lg: 22px;     /* default card */
  --wm-radius-xl: 36px;     /* large container, palette tile */
  --wm-radius-pill: 999px;

  /* Shadows — gentle, warm-tinted; never harsh black */
  --wm-shadow-xs:  0 1px 2px rgba(84,68,63,0.06);
  --wm-shadow-sm:  0 2px 6px rgba(84,68,63,0.06), 0 1px 2px rgba(84,68,63,0.04);
  --wm-shadow-md:  0 6px 18px rgba(84,68,63,0.08), 0 2px 4px rgba(84,68,63,0.04);
  --wm-shadow-lg:  0 18px 40px rgba(84,68,63,0.10), 0 6px 12px rgba(84,68,63,0.05);
  --wm-shadow-inset: inset 0 1px 2px rgba(84,68,63,0.05);

  /* ============================================================
     MOTION
     ============================================================ */
  --wm-ease:        cubic-bezier(.22,.61,.36,1);   /* gentle ease-out */
  --wm-ease-soft:   cubic-bezier(.4,0,.2,1);
  --wm-dur-fast:    140ms;
  --wm-dur-base:    220ms;
  --wm-dur-slow:    420ms;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   Apply by adding `class="wm"` to a root, OR import this
   sheet and the variables flow through everything.
   ============================================================ */

.wm,
body.wm {
  background: var(--wm-bg);
  color: var(--wm-fg);
  font-family: var(--wm-font-body);
  font-size: var(--wm-fs-16);
  line-height: var(--wm-lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADINGS — display serif, tight tracking */
.wm h1, .wm .h1 {
  font-family: var(--wm-font-display);
  font-weight: 500;
  font-size: clamp(var(--wm-fs-48), 6vw, var(--wm-fs-96));
  line-height: var(--wm-lh-tight);
  letter-spacing: var(--wm-tracking-tight);
  margin: 0 0 var(--wm-space-6);
  color: var(--wm-fg);
}
.wm h2, .wm .h2 {
  font-family: var(--wm-font-display);
  font-weight: 500;
  font-size: clamp(var(--wm-fs-36), 4vw, var(--wm-fs-60));
  line-height: var(--wm-lh-snug);
  letter-spacing: var(--wm-tracking-tight);
  margin: 0 0 var(--wm-space-5);
}
/* Brand-mønster: <em> i alle h1/h2 = Cormorant italic rose */
.wm h1 em,
.wm h2 em,
.wm h3 em,
.wm .h1 em,
.wm .h2 em,
.wm .h3 em {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--wm-rose);
}
.wm h3, .wm .h3 {
  font-family: var(--wm-font-display);
  font-weight: 500;
  font-size: var(--wm-fs-30);
  line-height: var(--wm-lh-snug);
  margin: 0 0 var(--wm-space-4);
}
.wm h4, .wm .h4 {
  font-family: var(--wm-font-editorial);
  font-weight: 500;
  font-size: var(--wm-fs-24);
  line-height: 1.3;
  margin: 0 0 var(--wm-space-3);
}
.wm h5, .wm .h5 {
  font-family: var(--wm-font-ui);
  font-weight: 500;
  font-size: var(--wm-fs-14);
  text-transform: uppercase;
  letter-spacing: var(--wm-tracking-xwide);
  color: var(--wm-fg-muted);
  margin: 0 0 var(--wm-space-3);
}

/* BODY */
.wm p, .wm .p {
  font-family: var(--wm-font-body);
  font-size: var(--wm-fs-16);
  line-height: var(--wm-lh-loose);
  color: var(--wm-fg-soft);
  margin: 0 0 var(--wm-space-4);
}
.wm .lead {
  font-family: var(--wm-font-editorial);
  font-size: var(--wm-fs-24);
  line-height: 1.5;
  font-weight: 400;
  color: var(--wm-fg);
}

/* EYEBROW — the signature uppercase tracked Montserrat label */
.wm .eyebrow {
  font-family: var(--wm-font-ui);
  font-size: var(--wm-fs-12);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--wm-tracking-xwide);
  color: var(--wm-fg-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space-3);
}
.wm .eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* QUOTE / SCRIPT */
.wm blockquote, .wm .quote {
  font-family: var(--wm-font-editorial);
  font-style: italic;
  font-size: var(--wm-fs-30);
  line-height: 1.35;
  color: var(--wm-fg);
  margin: 0;
  padding: 0;
}
.wm .script {
  font-family: var(--wm-font-script);
  font-weight: 400;
  font-size: var(--wm-fs-72);
  line-height: 1;
  color: var(--wm-fg);
}

/* CODE / MONO */
.wm code, .wm .mono, .wm kbd, .wm samp {
  font-family: var(--wm-font-mono);
  font-size: 0.95em;
  letter-spacing: 0.02em;
}

/* LINK */
.wm a {
  color: var(--wm-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--wm-dur-fast) var(--wm-ease);
}
.wm a:hover { color: var(--wm-link-hover); }

/* RULE */
.wm hr {
  border: 0;
  border-top: 1px solid var(--wm-border);
  margin: var(--wm-space-8) 0;
}

/* PRIMITIVE — eyebrow rule (the underlined "WEDMIND BRANDING" pattern) */
.wm .rule-label {
  display: inline-block;
  padding-bottom: var(--wm-space-2);
  border-bottom: 1px solid var(--wm-fg);
  font-family: var(--wm-font-display);
  font-weight: 400;
  font-size: var(--wm-fs-24);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
