/*  Rose Couture — typography
    Display : Cormorant Garamond (italic for romantic beats)
    Heading : Cormorant SC (kerned small caps for nav / eyebrow)
    Body    : Lora
    Accent  : Dancing Script (rare, signature only)
*/

html { font-size: 16px; }

/* Body scales up comfortably on desktop — serif body needs 17–18px to
   avoid the cramped look Lora/Cormorant gets at 16px on wide screens. */
body,
body.woocommerce,
body.woocommerce-page {
  font-family: var(--wml-font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.92rem + 0.3vw, 1.125rem);
  line-height: 1.68;
  letter-spacing: var(--wml-tracking-body);
  color: var(--wml-ink);
  background: var(--wml-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Headings ------------------------------------------------------- */

h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6 {
  font-family: var(--wml-font-display);
  font-weight: 400;
  color: var(--wml-ink);
  letter-spacing: normal;
  margin: 0 0 0.5em;
}
h1,.h1 {
  font-size: clamp(2.25rem, 5vw, var(--wml-size-3xl));
  line-height: 1.05;
  font-weight: 300;
}
h2,.h2 {
  font-size: clamp(1.75rem, 3.6vw, var(--wml-size-2xl));
  line-height: 1.12;
  font-weight: 400;
}
h3,.h3 {
  font-size: clamp(1.25rem, 2.2vw, var(--wml-size-xl));
  line-height: 1.22;
  font-weight: 400;
}
h4,.h4 { font-size: var(--wml-size-lg); line-height: 1.3; }
h5,.h5 { font-size: var(--wml-size-md); line-height: 1.4; }
h6,.h6 { font-size: var(--wml-size-base); line-height: 1.5; }

/* ---- Lyrical italic display (hero tagline, pull quotes) ------------- */

.wml-display-italic,
.wml-hero-tagline,
.wml-pullquote {
  font-family: var(--wml-font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--wml-ink);
}
.wml-hero-tagline {
  font-size: clamp(2.5rem, 6.5vw, var(--wml-size-hero));
}
.wml-pullquote {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  text-align: center;
  max-width: 44ch;
  margin: 2em auto;
  font-style: italic;
}
.wml-pullquote::before,
.wml-pullquote::after {
  content: "";
  display: block;
  width: 2.5rem; height: 1px;
  background: var(--wml-accent);
  margin: 1.2em auto;
}

/* ---- Small caps — nav, eyebrow, label, button ---------------------- */

.wml-eyebrow,
.wml-smallcaps,
.wml-nav a,
nav.wml-nav a,
.wml-btn,
button.wml-btn {
  font-family: var(--wml-font-heading);
  text-transform: uppercase;
  letter-spacing: var(--wml-tracking-caps);
  font-weight: 500;
  font-size: 0.95rem;
  font-feature-settings: "kern","ss01";
}
.wml-eyebrow {
  color: var(--wml-accent);
  font-size: 0.78rem;
  display: inline-block;
  margin-bottom: 0.85rem;
}

/* ---- Accent script — signature only -------------------------------- */

.wml-signature-script {
  font-family: var(--wml-font-accent);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--wml-accent);
  line-height: 1.2;
}

/* ---- Body copy ----------------------------------------------------- */

p { margin: 0 0 1.25em; max-width: 70ch; }
p.lead {
  font-size: var(--wml-size-md);
  line-height: 1.55;
  color: var(--wml-ink-soft);
  max-width: 56ch;
}
small, .wml-fineprint {
  font-size: var(--wml-size-xs);
  color: var(--wml-muted);
  letter-spacing: 0.04em;
}

/* ---- Links --------------------------------------------------------- */

a {
  color: var(--wml-ink);
  text-decoration: none;
  background-image: linear-gradient(var(--wml-accent), var(--wml-accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size var(--wml-dur-base) var(--wml-ease),
    color var(--wml-dur-fast) var(--wml-ease);
}
a:hover, a:focus-visible {
  color: var(--wml-accent);
  background-size: 100% 1px;
}
a.wml-btn, a.wml-btn:hover { background-image: none; }

/* ---- Rules & dividers ---------------------------------------------- */

.wml-rule {
  border: 0;
  height: 1px;
  background: var(--wml-hairline);
  margin: var(--wml-section-y) auto;
  max-width: 6rem;
}
.wml-rule.is-gilt   { background: var(--wml-gilt); opacity: 0.75; }
.wml-rule.is-accent { background: var(--wml-accent); }
.wml-rule.is-wide   { max-width: min(32rem, 60%); }

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

.wml-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.4rem;
  min-height: 3rem;
  background: var(--wml-ink);
  color: var(--wml-white);
  border: 1px solid var(--wml-ink);
  border-radius: var(--wml-radius);
  cursor: pointer;
  transition:
    background var(--wml-dur-base) var(--wml-ease),
    color var(--wml-dur-base) var(--wml-ease),
    border-color var(--wml-dur-base) var(--wml-ease);
}
.wml-btn:hover,
.wml-btn:focus-visible {
  background: var(--wml-accent);
  border-color: var(--wml-accent);
  color: var(--wml-white);
}
.wml-btn--ghost {
  background: transparent;
  color: var(--wml-ink);
}
.wml-btn--ghost:hover,
.wml-btn--ghost:focus-visible {
  background: var(--wml-ink);
  color: var(--wml-white);
  border-color: var(--wml-ink);
}
.wml-btn--gilt {
  background: var(--wml-gilt);
  border-color: var(--wml-gilt);
  color: var(--wml-ink);
}
.wml-btn--gilt:hover,
.wml-btn--gilt:focus-visible {
  background: var(--wml-gilt-deep);
  border-color: var(--wml-gilt-deep);
  color: var(--wml-ink);
}
.wml-btn--sm { padding: 0.65rem 1.5rem; min-height: 2.4rem; font-size: var(--wml-size-xs); }
.wml-btn--lg { padding: 1.2rem 3rem; font-size: var(--wml-size-base); }

/* ---- Form fields --------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea,
.wml-field input,
.wml-field textarea {
  font-family: var(--wml-font-body);
  font-size: var(--wml-size-base);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--wml-hairline);
  border-radius: 0;
  padding: 0.75rem 0;
  color: var(--wml-ink);
  box-shadow: none;
  transition: border-color var(--wml-dur-base) var(--wml-ease);
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-bottom-color: var(--wml-accent);
  box-shadow: none;
}
label,
.wml-field label {
  font-family: var(--wml-font-heading);
  text-transform: uppercase;
  letter-spacing: var(--wml-tracking-caps);
  font-size: var(--wml-size-xs);
  color: var(--wml-ink-soft);
  display: block;
  margin-bottom: 0.4rem;
}

/* ---- Paper grain overlay ------------------------------------------- */

.wml-paper-grain { position: relative; }
.wml-paper-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(43,26,30,0.7) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---- Selection ----------------------------------------------------- */

::selection {
  background: var(--wml-accent);
  color: var(--wml-white);
}
