/* Wedding look, taken from Nicola and Graham's invitation. */
/* Fonts are served with the site (Pinyon Script and EB Garamond, both free under the SIL Open Font Licence). */
@font-face { font-family: 'Pinyon Script'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/pinyon-script-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/eb-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/eb-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/eb-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url('/fonts/eb-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/eb-garamond-latin-500-italic.woff2') format('woff2'); }

:root {
  --bg: #fcf5eb;          /* invitation paper */
  --surface: #fffbf5;     /* cards */
  --ink: #1f1c18;         /* main text, near black */
  --muted: #4a4036;       /* secondary text, kept dark enough to read easily */
  --gold: #7a5620;        /* names, buttons, gold text */
  --gold-light: #a8843f;  /* fine lines */
  --accent: #7a5620;      /* buttons */
  --accent-ink: #fffaf2;  /* text on buttons */
  --line: #e8dcc6;        /* card borders */
  --danger: #a5402f;
  --radius: 6px;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --sans: 'EB Garamond', Garamond, Georgia, serif;
  /* double gold frame with notched corners, as on the invitation */
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' fill='none' stroke='%237a5620'%3E%3Cpath stroke-width='1.6' d='M13 1H59A12 12 0 0 0 71 13V59A12 12 0 0 0 59 71H13A12 12 0 0 0 1 59V13A12 12 0 0 0 13 1Z'/%3E%3Cpath stroke-width='.8' stroke='%23a8843f' d='M17.25 6H54.75A17 17 0 0 0 66 17.25V54.75A17 17 0 0 0 54.75 66H17.25A17 17 0 0 0 6 54.75V17.25A17 17 0 0 0 17.25 6Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* Frame: put class="frame" on any box */
.frame {
  border: 22px solid transparent;
  border-image: var(--frame) 24 stretch;
}

/* "Nicola ——— and ——— Graham" */
.names { text-align: center; color: var(--gold); line-height: 1; }
.names .script { display: block; font-family: var(--script); font-weight: 400; font-size: 3.4rem; }
.names .and {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--script); font-size: 1.6rem; margin: .1em 0 .15em;
}
.names .and::before, .names .and::after { content: ''; height: 1px; width: 3.2em; background: var(--gold-light); }

/* gold heart between two fine lines */
.divider { display: flex; align-items: center; justify-content: center; gap: .7em; color: var(--gold); margin: 14px auto; }
.divider::before, .divider::after { content: ''; height: 1px; width: 70px; background: var(--gold-light); }
.divider span { font-size: .8rem; line-height: 1; }

.caps { text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; font-weight: 600; }
.gold { color: var(--gold); }
.italic { font-style: italic; letter-spacing: .06em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  padding: 14px 20px; border-radius: var(--radius);
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  cursor: pointer; text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--gold); color: var(--accent-ink); }
.btn.small { padding: 8px 14px; font-size: .75rem; }
.btn.ghost { border-color: var(--line); color: var(--ink); }

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

.fatal {
  margin: 16px; padding: 14px 16px; border-radius: 6px;
  background: #fbeae7; color: var(--danger); border: 1px solid #f0c9c2;
}
