@font-face { font-family: "Cardo"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cardo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cardo-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cardo"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/cardo-latin-700-normal.woff2") format("woff2"); }

/* ---------- Palette & type (change here) ---------- */
:root {
  --paper: #f2f0e3;
  --paper-edge: #f2f0e3;
  --ink: #5b7453;
  --ink-soft: #5b7453;
  --accent: #5b7453;
  --rule: #5b7453;
  --serif: Cardo, "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base: easy reading */

body {
  margin: 0;
  min-height: 100vh;
  padding: 2.5rem 1rem 4rem;
  background-color: var(--paper-edge);
  /* faint paper grain */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .15  0 0 0 .09 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* ---------- The card ---------- */
.card {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  background-color: var(--paper);
  background-image: inherit;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 10px 30px rgba(60,80,50,.15);
  /* letterpress double border */
  outline: 2px solid var(--ink);
  outline-offset: -14px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid var(--ink);
  pointer-events: none;
}

/* ---------- Motifs ---------- */
.motif { position: fixed; width: min(30vw, 240px); z-index: 0; pointer-events: none; }
.motif-tl { top: 0; left: 0; }
.motif-br { bottom: 0; right: 0; transform: rotate(180deg); }
@media (max-width: 700px) { .motif { opacity: .35; width: 36vw; } }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 400; margin: 0; }
h1 { font-size: 1.7rem; line-height: 1.3; margin: 0 0 .5rem; }
.date { font-size: 2.6rem; display: inline-block; margin: .3rem 0; }
.names { font-size: 2.4rem; line-height: 1.2; margin: 0; }
.amp { font-style: italic; }
h2 { font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; }
p { margin: .5rem 0; }

.small-caps { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.when { font-size: 1.4rem; margin-top: 1.25rem; }
.where, .time { font-size: 1.1rem; }
.lead { margin-bottom: 1.5rem; }

.rule { border: 0; height: 1px; background: var(--rule); width: 4rem; margin: 2rem auto; position: relative; overflow: visible; }
.rule::after { content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%); background: var(--paper); padding: 0 .5rem; font-size: .8rem; color: var(--accent); }

a { color: var(--ink); }

/* ---------- Form ---------- */
form { text-align: left; max-width: 28rem; margin: 0 auto; }
.field { margin: 0 0 1.5rem; padding: 0; border: 0; }
label, legend { display: block; font-size: 1rem; margin-bottom: .35rem; padding: 0; }
.optional { color: var(--ink-soft); font-size: .9rem; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: .7rem .8rem;
  color: var(--ink);
  background: rgba(255,255,255,.5);
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
}
textarea { resize: vertical; border: 2px solid var(--ink); }
input:focus, textarea:focus, .choice:focus-within, .send:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.choices { display: grid; gap: .6rem; }
.choice {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem; margin: 0;
  border: 2px solid var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) { background: var(--ink); color: var(--paper); }

.send {
  display: block; width: 100%;
  font: inherit; font-size: 1.2rem; letter-spacing: .08em;
  padding: 1rem;
  color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink); cursor: pointer;
  min-height: 3.5rem;
}
.send:hover { filter: brightness(.92); }
.send[disabled] { opacity: .6; cursor: wait; }

.error { color: #8a2d2d; font-weight: 700; margin: .35rem 0 0; min-height: 0; }
.error:empty { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #8a2d2d; }

#form-status { margin-top: 1.25rem; }
#form-status .problem { border: 2px solid #8a2d2d; padding: 1rem; background: #fbeeee; }
#form-status .problem a { font-weight: 700; }

.thanks { padding: 1.5rem 0; }
.thanks h3 { font-size: 2rem; font-style: italic; color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { margin-top: 1rem; }

@media (max-width: 480px) {
  .card { padding: 3rem 2.1rem 2rem; }
  .date { font-size: 2.2rem; } .names { font-size: 2rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
