/* ==========================================================
   Base styles shared by every section.
   The look follows the logo: ink-black on warm ivory paper,
   high-contrast serif capitals and double rules like the
   bars of the split H. Change colours and fonts in :root.
   Section-specific styles live next to each section in sections/.
   ========================================================== */

:root {
  --paper: #f3eee4;         /* main background */
  --paper-alt: #e9e2d4;     /* alternate section background */
  --card: #fbf8f2;          /* inputs, light panels */
  --ink: #15120f;           /* logo black: text, rules, buttons */
  --ink-soft: #4a443c;
  --muted: #7a7266;
  --line: #cdc3b1;
  --accent: #7b2430;        /* oxblood, used sparingly */

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint paper grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--ink); color: var(--paper); }

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: .06em;
}
h3 { font-size: 1.5rem; font-weight: 700; }

p { margin: 0 0 1em; }

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

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

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

/* small letter-spaced label above headings */
.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

/* ---------- Double rule, like the bars in the logo ---------- */
.rule {
  height: 6px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* ---------- Ornament under section headings ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 280px;
  margin: 1.1rem auto 0;
  color: var(--ink);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 5px;
  border-top: 2px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.ornament svg { width: 42px; height: 14px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 1.05em 1.9em;
  border-radius: 2px;
  font: 700 .74rem/1 var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Section layout ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section-alt { background: var(--paper-alt); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
