/* ===========================================================
   DeDallad — design tokens, reset, base typography
   =========================================================== */

:root {
  /* Brand palette — refined from the site's existing gold (#DCA54A) toward
     a slightly warmer, less saturated tone for a more restrained, premium feel. */
  --ink: #0b0b0a;
  --ink-soft: #1c1b18;
  --paper: #faf9f6;
  --stone: #8a867c;
  --stone-dim: #56534c;
  --line: #2a2823;
  --gold: #c9974a;
  --gold-deep: #a97830;
  --gold-pale: #e8cfa0;

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  /* Type: serif display paired with a native sans body — zero font network
     requests, deliberately, in place of the three redundant Google Fonts
     calls the audit flagged. */
  --font-display:
    ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua',
    Georgia, serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;

  --fs-hero: clamp(2.75rem, 4.5vw + 1rem, 4.75rem);
  --fs-h2: clamp(1.875rem, 2vw + 1rem, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --container: 1440px;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Pushes a short page's footer to the bottom of the viewport instead of
   letting it ride up directly under sparse content (e.g. an empty cart). */
.site-header,
.site-footer {
  flex-shrink: 0;
}
.site-main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 640px) {
  .container {
    padding-inline: var(--sp-6);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section {
  padding-block: var(--sp-7);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.section-head h2 {
  font-size: var(--fs-h2);
}
.section-head p {
  color: var(--stone);
  max-width: 56ch;
  font-size: var(--fs-lead);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85em 1.9em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  min-height: 44px;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-pale);
}
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 249, 246, 0.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.price {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  background: var(--gold);
  color: var(--ink);
  padding: var(--sp-3) var(--sp-4);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--sp-4);
}
