/* ==========================================================================
   Base — design tokens, reset, typography, and shared controls.
   Loaded first, before layout.css and home.css.
   ========================================================================== */

/* Design tokens ----------------------------------------------------------- */

:root {
  color-scheme: light;
  scroll-behavior: smooth;

  --cream: #f5f0e6;
  --ink: #292a22;
  --line: #d9d3c7;

  /* The one grey for secondary text. Clears 4.5:1 on cream (WCAG 1.4.3);
     the lighter greys the site used before did not. */
  --muted: #65645a;

  /* Brand red: prices, accents, buttons. 5.6:1 on cream, so it is safe for
     small text as well as large. */
  --red: #a83a29;
  --red-hover: #872f22;

  --olive: #626643;

  /* Pale tones for text on the red, olive and ink panels. */
  --blush: #ecd0b5;
  --on-dark-muted: #bab9a8;

  /* Focus rings: red on light surfaces, cream on the dark and red panels.
     Both are well above the 3:1 minimum (WCAG 1.4.11). */
  --focus-on-light: var(--red);
  --focus-on-dark: var(--cream);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

/* Reset ------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

p {
  line-height: 1.8;
}

/* Header is not sticky; this just leaves breathing room above a section
   when jumping to it from the nav. */
section[id] {
  scroll-margin-top: 24px;
}

/* Typography -------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(3.25rem, 5.6vw, 5.25rem);
  line-height: 1.09;
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 3.4vw, 3.0625rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* Italic accent phrase inside a heading. */
em {
  color: var(--red);
}

/* Small uppercase label that sits above a section heading. */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Buttons and links ------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 56px;
  padding: 16px 24px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff9ec;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 200ms, transform 200ms;
}

.button:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

.button-small {
  gap: 24px;
  min-height: 44px;
  padding: 10px 20px;
}

/* Inverted button, for the red order banner. */
.button-light {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--red);
}

.button-light:hover {
  background: #fff;
}

/* Arrow glyph after a link: ↗ leaves the site, ↓ / ↑ move down or up the
   page. Always aria-hidden in the HTML. */
.arrow {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

/* Understated link with an underline. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color 200ms;
}

.text-link .arrow {
  font-size: 1.125rem;
}

.text-link:hover {
  color: var(--red);
}

/* Focus rings ------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 5px;
}

/* Visible only once it receives focus: lets keyboard and screen-reader users
   jump past the header navigation (WCAG 2.4.1). */
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-link:focus-visible {
  outline-offset: 2px;
}

/* Hidden on screen but still read by assistive technology. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.875rem, 14vw, 3.6875rem);
  }

  h2 {
    font-size: 2.5rem;
  }

  .button {
    gap: 16px;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 0.75rem;
  }

  .text-link {
    gap: 12px;
    font-size: 0.75rem;
  }
}

/* Reduced motion ---------------------------------------------------------- */
/* Each stylesheet neutralises its own transitions, so that the override
   always comes after the rule it is cancelling. */

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .button,
  .text-link {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
