@font-face {
  font-family: "Andasia";
  src: url("./assets/fonts/Andasia.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Mistrully";
  src: url("./assets/fonts/Mistrully.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@import url('https://fonts.googleapis.com/css2?family=Euphoria+Script&family=Ibarra+Real+Nova:ital,wght@0,400;0,500;0,600;1,400&family=Vollkorn:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/*
  Exact font mapping from the Save Our Dates:
  - SAVE / DATES: Ibarra Real Nova
  - Our: Andasia
  - Jeroen & Cathelijne: Mistrully
  - "Een weekend om nooit te vergeten": Euphoria Script
  - all remaining typography: Vollkorn

  Andasia and Mistrully are local/licensed fonts.
  Add your licensed webfont files at:
    assets/fonts/Andasia.woff2
    assets/fonts/Mistrully.woff2
*/

:root {
  --paper: #f2ede2;
  --ink: #000000;
  --line: rgba(0, 0, 0, 0.22);
  --field: rgba(255, 255, 255, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: "Vollkorn", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  padding: 24px 18px 52px;
}

.container {
  width: min(100%, 980px);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 36px 0 42px;
}

.save-our-dates {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
}

.serif-word {
  font-family: "Ibarra Real Nova", Georgia, serif;
  font-size: clamp(2.7rem, 6.1vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.045em;
}

.script-word {
  font-family: "Andasia", "Euphoria Script", cursive;
  font-size: clamp(3.25rem, 6.8vw, 5.7rem);
  font-weight: 400;
  color: var(--ink);
}

.date {
  margin: 20px 0 4px;
  font-family: "Vollkorn", Georgia, serif;
  font-size: clamp(1.18rem, 2.3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.13em;
}

.weekend-tagline {
  margin: 8px auto 18px;
  font-family: "Euphoria Script", cursive;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.vertical-line {
  width: 1px;
  height: 54px;
  background: var(--ink);
  margin: 0 auto 18px;
}

.names,
.signature {
  font-family: "Mistrully", "Euphoria Script", cursive;
  color: var(--ink);
  font-weight: 400;
}

.names {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  line-height: 1;
}

.venue-mark {
  display: block;
  width: min(205px, 38vw);
  margin: 30px auto 10px;
}

.location {
  margin: 0;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.intro-section {
  border-top: 1px solid rgba(255,255,255,0.8);
  text-align: center;
  padding: 58px 0 30px;
}

.intro-section h1 {
  margin: 0;
  font-family: "Vollkorn", Georgia, serif;
  font-size: clamp(2rem, 4.3vw, 3.55rem);
  font-weight: 400;
  letter-spacing: 0.045em;
}

.small-rule {
  width: 52px;
  height: 1px;
  background: var(--ink);
  margin: 20px auto 24px;
}

.intro-section p {
  max-width: 700px;
  margin: 18px auto 0;
  font-family: "Vollkorn", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.5;
}

.intro-section .liefs {
  margin-top: 28px;
}

.signature {
  margin-top: 2px !important;
  font-size: clamp(2.2rem, 4vw, 3.15rem) !important;
}

.wedding-form {
  padding: 28px 34px 16px;
  font-family: "Vollkorn", Georgia, serif;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 30px;
}

.field {
  margin-bottom: 28px;
}

label,
legend {
  display: block;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.075em;
}

.hint {
  margin: 6px 0 10px;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--ink);
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.08rem;
}

.attendance {
  border: 0;
  padding: 0;
  margin: 10px 0 0;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.06rem;
  letter-spacing: 0;
  cursor: pointer;
}

.option input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}

button {
  margin-top: 30px;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 14px 30px;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-error {
  margin-top: 20px;
  font-family: "Vollkorn", Georgia, serif;
  font-size: 0.98rem;
}

.footer {
  text-align: center;
  padding: 38px 0 2px;
  font-family: "Vollkorn", Georgia, serif;
}

.venue-mark-small {
  width: 82px;
  margin: 0 auto 14px;
}

.footer-main {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.10em;
}

.footer-sub {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .page { padding: 12px 14px 40px; }
  .hero { padding: 32px 0 36px; }
  .save-our-dates { gap: 4px; }
  .serif-word { font-size: 2rem; letter-spacing: 0.035em; }
  .script-word { font-size: 2.55rem; }
  .date { font-size: 1rem; letter-spacing: 0.10em; }
  .weekend-tagline { font-size: 1.55rem; margin-top: 8px; }
  .vertical-line { height: 44px; }
  .names { font-size: 3.15rem; }
  .venue-mark { width: 150px; margin-top: 24px; }
  .location { font-size: 0.76rem; letter-spacing: 0.16em; }
  .intro-section { padding: 42px 10px 20px; }
  .intro-section h1 { font-size: 1.9rem; }
  .intro-section p { font-size: 1.02rem; }
  .wedding-form { padding: 24px 8px 10px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: 24px; }
  label, legend { font-size: 0.94rem; }
  button { width: 100%; }
  .venue-mark-small { width: 72px; }
}


/* Invitation-text alignment */
.hero { padding-bottom: 58px; }
.weekend-tagline { margin-top: 14px; margin-bottom: 30px; }
.vertical-line { height: 178px; margin-bottom: 24px; }
.names { margin-bottom: 26px; }
.invitation-line {
  margin: 0 auto;
  max-width: 620px;
  font-family: "Vollkorn", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.vertical-line-bottom {
  height: 118px;
  margin-top: 32px;
  margin-bottom: 20px;
}
.location { font-weight: 600; letter-spacing: 0.12em; }
.intro-section { padding-top: 48px; }
.intro-section h1 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
@media (max-width: 720px) {
  .weekend-tagline { font-size: 1.55rem; margin-bottom: 26px; }
  .vertical-line { height: 148px; }
  .names { margin-bottom: 22px; }
  .invitation-line { font-size: 0.92rem; line-height: 1.45; padding: 0 10px; }
  .vertical-line-bottom { height: 104px; margin-top: 28px; }
  .location { font-size: 0.78rem; letter-spacing: 0.10em; }
}


/* Exact invitation font mapping */
.save-our-dates .script-word {
  font-family: "Andasia", cursive !important;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}

.names,
.signature {
  font-family: "Mistrully", cursive !important;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
