/* ==========================================================================
   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;
  scroll-padding-top: 110px;

  --cream: #f7f3ec;
  --paper: #fdfbf7;
  --ink: #39342b;
  --muted: #756e63;
  --border: #dcd2c2;
  --espresso: #3d3a31;

  /* Gold for small text, buttons and focus rings. Darkened from #947445 so
     12px labels and white button text clear 4.5:1 (WCAG 1.4.3). */
  --gold: #85683e;
  --gold-hover: #795e36;

  /* The original, lighter gold. Only for large headings (3:1 is enough at
     that size) and decorative marks — never for body-sized text. */
  --gold-display: #947445;

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

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  -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 {
  margin: 0;
}

/* 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: 400;
}

h1 {
  margin: 27px 0;
  font-size: clamp(4.0625rem, 7.5vw, 6.5625rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 15px;
  font-size: clamp(2.625rem, 4vw, 3.8125rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* Italic accent phrase inside a heading. */
em {
  color: var(--gold-display);
  font-weight: 400;
}

/* Small uppercase label that sits above a section heading. */
.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  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: center;
  gap: 10px;
  min-height: 53px;
  padding: 16px 27px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: background 200ms, transform 200ms;
}

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

.button-small {
  min-height: 44px;
  padding: 12px 20px;
}

/* Inverted button, for the espresso "Appointment" panel. */
.button-light {
  border-color: #e4d4b4;
  background: #e4d4b4;
  color: #3d382c;
}

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

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.button svg .instagram-dot {
  fill: currentColor;
  stroke: none;
}

/* Understated link with a gold underline. */
.text-link {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  font-size: 0.875rem;
  line-height: 1.65;
  transition: color 200ms;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-on-light);
  outline-offset: 6px;
}

/* 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) {
  :root {
    scroll-padding-top: 25px;
  }

  h1 {
    margin: 24px 0;
    font-size: clamp(3.1875rem, 10vw, 4.75rem);
  }

  h2 {
    font-size: 2.75rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 3.0625rem;
  }
}

/* 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;
  }
}
