/* Typography matched visually to the physical invitation concept boards. */
:root {
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-text: "EB Garamond", Georgia, serif;
}

body {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  /* Cifre old-style în text curent — registrul papetăriei gravate. */
  font-variant-numeric: oldstyle-nums;
}

.nav-mark,
.hero h1,
.section-intro h2,
.location-card h2,
.rsvp-heading h2,
.countdown strong,
.time,
.event h3,
.map-art text,
footer p {
  font-family: var(--font-display);
  font-weight: 400;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: clamp(32px, min(5.3vw, 7.4vh), 66px);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .19em;
  margin: clamp(12px, 2.4vh, 24px) 0;
}

.hero h1 span { padding-left: .19em; }
.hero h1 i {
  font-style: normal;
  font-size: .47em;
  line-height: 1;
  letter-spacing: 0;
}

.section-intro h2,
.location-card h2,
.rsvp-heading h2 { line-height: 1.06; }
.venue {
  font-family: var(--font-text);
  font-size: 21px;
  letter-spacing: .04em;
}

.eyebrow,
.menu a,
.date-line p,
.countdown span,
.scroll-cue,
label,
legend,
.button,
footer span {
  font-family: var(--font-text);
  font-weight: 400;
  /* Small caps în locul lui text-transform: uppercase. */
  font-variant-caps: all-small-caps;
  text-transform: none;
}

.eyebrow { font-size: 14px; letter-spacing: .19em; }
.menu a { font-size: 14px; letter-spacing: .15em; }
.date-line p { font-size: 17px; letter-spacing: .2em; font-variant-numeric: lining-nums; }
.countdown span { font-size: 13px; letter-spacing: .19em; }
.countdown strong { font-variant-numeric: lining-nums tabular-nums; }
.scroll-cue { font-size: 13px; }
label, legend { font-size: 14px; letter-spacing: .12em; }
.button { font-size: 14px; line-height: 1.4; letter-spacing: .13em; }
.story-body p { font-size: 19px; }
.story-sign i { font-family: var(--font-display); }
.blessing-grid .eyebrow { color: var(--bronze); }
input, select, textarea {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
}
.form-status { font-size: 16px; margin: 0; line-height: 1.5; }
.form-status:empty { display: none; }
.rsvp-form { gap: 28px; min-width: 0; align-content: start; }
.rsvp-form .form-row { align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-field { display: flex; flex-direction: column; min-width: 0; }
.form-field > label { display: block; line-height: 1.5; }
.form-field input, .form-field textarea, .form-field select { min-width: 0; margin-top: 9px; }
.rsvp-form .form-row .form-field > label { min-height: 3em; display: flex; align-items: flex-end; }
.rsvp-form select { height: 52px; }
.field-hint, .field-error {
  font-size: 16px;
  line-height: 1.4;
  text-transform: none;
  font-variant-caps: normal;
  letter-spacing: 0;
  font-weight: 400;
  margin: 8px 0 0;
}
.field-hint { color: var(--muted); }
.field-error { color: #874c46; }
.rsvp-form input[aria-invalid="true"] { border-color: #874c46; }
.rsvp-form input:focus-visible, .rsvp-form textarea:focus-visible {
  outline: 1px solid var(--bronze);
  outline-offset: 3px;
}
.optional-label { font-variant-caps: normal; letter-spacing: 0; color: var(--muted); }
.attendance-options { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }
.attendance-options .choice { margin: 0; min-height: 44px; cursor: pointer; }
.attendance-options input { width: 16px; height: 16px; flex-shrink: 0; }
.guest-names { display: grid; gap: 25px; }
.rsvp-form .guest-entry {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(128, 106, 71, .3);
}
.guest-entry > legend { padding: 0 12px 0 0; color: var(--bronze); }
.rsvp-form [hidden] { display: none; }
.rsvp-form select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  padding: 12px 36px 12px 12px;
  border: 1px solid rgba(128, 106, 71, .3);
  border-radius: 2px;
  background-color: rgba(255, 253, 248, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23806a47' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-size: 18px;
  letter-spacing: .015em;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.rsvp-form select:hover { border-color: var(--gold); }
.rsvp-form select:focus-visible {
  outline: 1px solid var(--bronze);
  outline-offset: 3px;
  background-color: var(--ivory);
}
.rsvp-form select option {
  background: var(--ivory);
  color: var(--ink);
  font-weight: 400;
}

/* Refine the open list where customizable native selects are supported. */
@supports (appearance: base-select) {
  .rsvp-form select,
  .rsvp-form select::picker(select) { appearance: base-select; }
  .rsvp-form select::picker-icon { display: none; }
  .rsvp-form select::picker(select) {
    margin-block: 6px;
    padding: 6px;
    border: 1px solid rgba(128, 106, 71, .3);
    border-radius: 2px;
    background: var(--ivory);
    box-shadow: 0 8px 22px rgba(32, 29, 25, .08);
    font-family: var(--font-text);
    font-size: 18px;
  }
  .rsvp-form select option {
    min-height: 44px;
    padding: 10px 12px;
    gap: 12px;
    cursor: pointer;
  }
  .rsvp-form select option:hover,
  .rsvp-form select option:focus-visible { background: var(--cream); }
  .rsvp-form select option:checked { color: var(--bronze); }
  .rsvp-form select option::checkmark { color: var(--bronze); font-size: 12px; }
}
footer p { font-size: 29px; }
footer span { font-size: 14px; }

@media (max-width: 760px) {
  .travel-grid { grid-template-columns: 1fr; gap: 32px; }
  .rsvp-form .form-row { grid-template-columns: 1fr; gap: 24px; }
  .rsvp-form .form-row .form-field > label { min-height: 0; }
  .hero h1 { font-size: clamp(32px, 8vw, 49px); }
  .hero-content > .eyebrow { max-width: 290px; margin-inline: auto; }
  .date-line { gap: 12px; }
  .date-line span { width: 42px; }
  .date-line p { white-space: nowrap; }
  .countdown span { font-size: 12px; letter-spacing: .1em; }
  .choice { margin-right: 14px; }
}
