/* ==========================================================================
   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: #fbf6ec;
  --line: #e6dcc6;

  /* Body text and the one grey for secondary text. The grey clears 4.5:1 on
     cream (WCAG 1.4.3). */
  --text: #2b2a26;
  --muted: #6e6a60;

  /* Chalkboard green: headings, the announcement bar and the visit panel. */
  --ink: #1e3a34;

  /* Mustard walls. Used as a surface (buttons, accents on ink), never as
     text on cream. */
  --saffron: #e9b949;
  --saffron-hover: #f2c85f;
  --saffron-soft: #f6e3b0;

  /* Teal is split in two, like the gold on the sibling sites:
     --teal (#2e8a8a) is the counter-and-chairs brand teal. At 3.8:1 on cream
     it is kept to large text, borders and decoration.
     --teal-deep (#1f5f60) clears 6.8:1, so it carries every small label,
     price and active tab. */
  --teal: #2e8a8a;
  --teal-deep: #1f5f60;

  /* Wood accent for small italic notes. Darkened from the original #a86f3d
     (3.9:1) to clear 4.5:1 on cream. */
  --wood: #8a5a2f;

  /* Dotted leader between a menu item and its price. Decorative only. */
  --leader: #c9bca0;

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

  --header-height: 104px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  -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;
}

/* The header is sticky, so leave room for it above a section when jumping
   to it from the nav. */
section[id] {
  scroll-margin-top: var(--header-height);
}

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

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

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
}

/* Small uppercase label that sits above a section heading. */
.eyebrow {
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

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

.button {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  background: var(--saffron);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 200ms, background 200ms;
}

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

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

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

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

/* 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-color: var(--focus-on-dark);
  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;
}

/* 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 {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
