/* ==========================================================================
   Old money foundation — paper, ink, forest green, antique gold.
   ========================================================================== */

:root {
  --paper:      #f2ede1;
  --paper-deep: #e7dfcd;
  --ink:        #23211c;
  --ink-soft:   #5b5648;
  --green:      #1e3a2b;
  --green-deep: #142418;
  --gold:       #b08d57;
  --gold-light: #d4b483;
  --wax:        #7b2233;
  --wax-light:  #9c3145;

  /* Type system — three roles, applied consistently everywhere:
       --script  the couple's names and the A & R monogram, nothing else
       --serif   every heading and all body copy
       --sans    small tracked capitals only: labels, buttons, dates, addresses
     Keeping the script to the signature moments is what stops the pages from
     looking like three different documents. */
  --serif:  'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
  --sans:   'Jost', 'Optima', 'Segoe UI', sans-serif;

  --tracking: 0.18em;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle laid-paper grain, drawn rather than downloaded. */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.014) 0 1px, transparent 1px 4px);
}

h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  color: var(--gold);
}

.script { font-family: var(--script); }

/* --- Rule with a centred diamond ---------------------------------------- */
.rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.rule span { font-size: 0.6rem; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), letter-spacing 0.4s var(--ease);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
  letter-spacing: 0.24em;
}
.btn--solid { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--green-deep); color: #fff; }
.btn--ghost-light { color: var(--paper); border-color: rgba(212,180,131,0.7); }
.btn--ghost-light:hover { background: var(--paper); color: var(--green); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

:focus-visible { outline: 2px solid var(--gold); 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;
}

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
