/* =========================================================
   base.css: colours, fonts, reset and layout helpers
   Used by every page of the website and the admin panel.
   ========================================================= */

:root {
  /* Colours (green and gold) */
  --green: #12261D;          /* page background */
  --green-deep: #0D1D15;     /* footer, admin sidebar */
  --green-panel: #1A3327;    /* cards and alternate sections */
  --line: #2E4739;           /* borders */
  --line-strong: #5B7566;
  --gold: #C9A24B;           /* buttons, highlights */
  --gold-light: #E3C26F;
  --cream: #F3EBD8;          /* main text */
  --text-soft: #CFC7B1;      /* secondary text */
  --text-mute: #8FA394;
  --on-gold: #12261D;        /* text on gold buttons */

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Sizes */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 9vw, 96px);
  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* for contact form */
[hidden] { display: none !important; }

/* end contact form */

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

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

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding-block: var(--section-y);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section--panel { background: var(--green-panel); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.section-title { font-size: clamp(32px, 4.5vw, 48px); }

.muted { color: var(--text-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}