/* Shared styles for every page: reset, typography, buttons, form controls. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@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(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; }
/* The "S & R" monogram. Italic serif rather than script: a script S on its own reads like an L. */
.monogram { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0.04em; white-space: nowrap; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin: 0 0 0.75rem;
}

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

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

/* Small ornamental divider: ——— ✦ ——— */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--color-accent); margin: 1.25rem auto;
}
.divider::before, .divider::after {
  content: ''; height: 1px; width: 56px; background: currentColor; opacity: 0.7;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.8em;
  border: 1px solid var(--color-dark); border-radius: 999px;
  background: var(--color-dark); color: var(--color-on-dark);
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--light { background: var(--color-on-dark); color: var(--color-dark); border-color: var(--color-on-dark); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: var(--color-dark); }
.btn--ghost:hover { background: var(--color-dark); color: var(--color-on-dark); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Form controls */
.input {
  width: 100%; min-height: 48px; padding: 0.6em 1em;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text);
  font: inherit; font-weight: 400;
}
.input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }

.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--color-accent-soft); border-top-color: var(--color-dark);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
