/* ===== Design Tokens ===== */
:root {
  --bg: #F7F2EA;
  --surface: #FFFDF8;
  --border: #DED2C3;
  --ink: #262626;
  --ink-soft: #555555;
  --accent: #7A263A;
  --accent-hover: #5A1E2D;
  --dark: #142E25;
  --dark-2: #23483A;
  --dark-3: #2A5243;
  --ink-on-dark: #F4EBDD;
  --cat-fashion: #9F1239;
  --cat-lifestyle: #0F766E;
  --cat-travel: #1E3A8A;
  --cat-beauty: #A855F7;
  --trust-green: #00B67A;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --container: 1280px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset ===== */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:where(body) { margin: 0; }
:where(img, picture, video, canvas, svg) { display: block; max-width: 100%; }
:where(h1, h2, h3, h4, h5, h6, p, figure) { margin: 0; }
:where(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(button) { background: none; border: none; cursor: pointer; padding: 0; }

/* The [hidden] attribute must beat any component `display` rule.
   Without this, a class setting `display:flex` (e.g. .subscribe-success)
   out-specifies the UA `[hidden]{display:none}` and renders an empty box. */
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* overflow-y must be set explicitly alongside overflow-x. Leaving it
     unset makes the UA compute it to `auto`, which turns <body> into its
     own independent scroll container decoupled from the viewport - so
     window.scrollTo() and #anchor jumps (the footer's Back to Top link)
     silently do nothing, even though mousewheel scrolling still "works"
     because it's scrolling body's own box instead. */
  overflow-x: hidden;
  overflow-y: visible;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: var(--font-heading);
  line-height: 1.15;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

img { object-fit: cover; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-ghost-light { background: rgba(255,255,255,.95); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Opt-in uppercase - only the buttons the source design sets in caps. */
.btn--caps { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
/* Opt-in square-rounded. Pill is the default button shape; the source design
   uses this softer 8px corner for in-card CTAs (hero, forms). */
.btn--square { border-radius: var(--radius-sm); }

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.badge-fashion { background: var(--cat-fashion); }
.badge-lifestyle { background: var(--cat-lifestyle); }
.badge-travel { background: var(--cat-travel); }
.badge-beauty { background: var(--cat-beauty); }

/* ===== Utility ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: .75rem 1.25rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

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