/* ==========================================================================
   Trend Collection — base tokens, reset, typography, buttons
   Tokens marked (C) are overridden inline by the Customizer.
   ========================================================================== */

:root {
  --t-accent: #9c2a4e;          /* (C) */
  --t-accent-ink: #ffffff;
  --t-ink: #1b1719;             /* (C) */
  --t-ink-60: rgba(27, 23, 25, .62);
  --t-ink-35: rgba(27, 23, 25, .35);
  --t-ink-12: rgba(27, 23, 25, .12);
  --t-sand: #f7f2ec;            /* (C) */
  --t-card: #ffffff;
  --t-line: rgba(27, 23, 25, .10);
  --t-ok: #1f7a4d;
  --t-warn: #b4541a;

  --t-speed: 380ms;             /* (C) */
  --t-fast: 180ms;
  --t-ease: cubic-bezier(.22, .61, .36, 1);
  --t-ease-out: cubic-bezier(.16, 1, .3, 1);

  --t-radius: 2px;
  --t-radius-lg: 4px;
  --t-shadow: 0 1px 2px rgba(27,23,25,.04), 0 8px 24px rgba(27,23,25,.06);
  --t-shadow-lift: 0 4px 12px rgba(27,23,25,.08), 0 24px 48px rgba(27,23,25,.12);

  --t-gutter: clamp(16px, 4vw, 48px);
  --t-max: 1440px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --hdr-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--t-sand);
  color: var(--t-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--t-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--t-max); margin-inline: auto; padding-inline: var(--t-gutter); }
.container.narrow { max-width: 760px; }
.section { padding-block: clamp(48px, 7vw, 104px); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--t-ink); color: #fff; padding: 10px 16px;
}
.skip-link:not(:focus) { clip-path: inset(50%); }

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

.btn {
  --btn-bg: var(--t-ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--t-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 12px/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--t-fast) var(--t-ease), border-color var(--t-fast) var(--t-ease), transform var(--t-fast) var(--t-ease);
}

/* Fill wipes up from the bottom edge on hover. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--t-accent);
  transform: translate3d(0, 101%, 0);
  transition: transform var(--t-speed) var(--t-ease-out);
}
.btn:hover::after,
.btn:focus-visible::after { transform: translate3d(0, 0, 0); }
.btn:hover { color: var(--t-accent-ink); }
.btn:active { transform: scale(.98); }

.btn--primary { --btn-bg: var(--t-accent); --btn-fg: var(--t-accent-ink); }
.btn--primary::after { background: var(--t-ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--t-ink);
  border-color: var(--t-ink-35);
}
.btn--ghost:hover { border-color: var(--t-accent); }

.btn--lg { padding: 16px 34px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.btn.is-loading::before {
  content: "";
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: t-spin .7s linear infinite;
}

/* ---------- Forms ---------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  background: #fff;
  font: 400 15px/1.4 var(--font-body);
  color: var(--t-ink);
  transition: border-color var(--t-fast) var(--t-ease), box-shadow var(--t-fast) var(--t-ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--t-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-accent) 14%, transparent);
  outline: none;
}

label { font-size: 13px; font-weight: 500; }

/* ---------- Utility ---------- */

.hidden, [hidden] { display: none !important; }

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