/* Self-hosted fonts (OFL) — no external requests */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/mulish-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Mulish'; font-style: normal; font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/mulish-normal-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

  :root {
    --paper:   #ECE9DE;
    --paper-2: #E3DFD0;
    --ink:     #2B2620;
    --green:   #996136;
    --olive:   #8A5730;
    --sage:    #D8C4A6;
    --gold:    #A9884A;

    --display: "Fraunces", Georgia, serif;
    --body:    "Mulish", system-ui, sans-serif;

    /* Warm scrim over the hero photo so light text stays readable.  */
    /* The photo itself is set on .hero and swapped by screen size    */
    /* (mobile vs desktop) further down in this file.                 */
    --hero-scrim:
      linear-gradient(180deg, rgba(32,24,15,.44) 0%, rgba(32,24,15,.10) 42%, rgba(34,23,13,.74) 100%);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* ── Shared type helpers ─────────────────────────────── */
  .eyebrow {
    font-family: var(--body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--olive);
    display: block;
    margin-bottom: 1.4rem;
  }
  .heading {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--green);
  }
  .prose { max-width: 34rem; }
  .prose p { margin-bottom: 1.1rem; color: #4a3b2e; }
  .prose p:last-child { margin-bottom: 0; }

  section { padding: clamp(4.5rem, 9vw, 8rem) 1.5rem; }
  .wrap { max-width: 62rem; margin: 0 auto; }

  /* ── Reveal on scroll ────────────────────────────────── */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ── Top bar ─────────────────────────────────────────── */
  .topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  }
  /* Solid, blurred background once you scroll past the hero */
  .topbar.scrolled {
    background: rgba(236,233,222,.90);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(43,38,32,.10);
    padding-top: .85rem; padding-bottom: .85rem;
  }
  .topbar.scrolled .monogram,
  .topbar.scrolled nav a { color: var(--green); }
  .monogram { font-family: var(--display); font-size: 1.1rem; letter-spacing: .05em; }
  .topbar nav { display: flex; gap: 1.6rem; }
  .topbar nav a {
    color: #fff; text-decoration: none; font-size: .74rem;
    letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
    transition: color .3s ease;
  }
  .topbar nav a:hover { opacity: .7; }
  @media (max-width: 640px) { .topbar nav { display: none; } }

  /* ── Hero ────────────────────────────────────────────── */
  .hero {
    min-height: 100svh;
    background-image: var(--hero-scrim), url("assets/iva-goran-mobile.jpg");
    background-size: cover; background-position: center 32%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 6rem 1.5rem 4rem;
    position: relative;
  }
  /* Larger / high-DPI screens get the full-resolution photo */
  @media (min-width: 768px) {
    .hero { background-image: var(--hero-scrim), url("assets/iva-goran.jpg"); }
  }
  .hero .kicker {
    font-size: .74rem; letter-spacing: .34em; text-transform: uppercase;
    font-weight: 600; margin-bottom: 2rem; opacity: .92;
  }
  .hero h1 {
    font-family: var(--display); font-weight: 300;
    font-size: clamp(3.2rem, 12vw, 8rem); line-height: .92;
    letter-spacing: -0.02em; margin: 0;
  }
  .hero h1 .amp { font-style: italic; font-weight: 300; color: var(--sage); display: block; font-size: .6em; margin: .1em 0; }
  .hero .when {
    margin-top: 2.4rem; font-size: clamp(.95rem, 2vw, 1.15rem);
    letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  }
  .hero .scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    color: #fff; opacity: .85; display: flex; flex-direction: column; align-items: center;
    text-decoration: none; }
  .hero .scroll svg { width: 38px; height: 38px; }
  @media (prefers-reduced-motion: no-preference) {
    .hero .scroll svg { animation: bob 1.9s ease-in-out infinite; }
    @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
  }

  /* ── Welcome / story ─────────────────────────────────── */
  .story { background: var(--paper); position: relative; overflow: hidden; }
  .story .ampmark {
    position: absolute; right: -3rem; top: 50%; transform: translateY(-50%);
    font-family: var(--display); font-style: italic; font-weight: 300;
    font-size: 34rem; line-height: 1; color: var(--sage); opacity: .16;
    pointer-events: none; user-select: none;
  }
  .story .wrap { position: relative; z-index: 1; }
  .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  @media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } .story .ampmark { display: none; } }

  /* ── Details cards ───────────────────────────────────── */
  .details { background: var(--green); color: var(--paper); }
  .details .eyebrow { color: var(--sage); }
  .details .head { text-align: center; margin-bottom: 3.5rem; }
  .details .head .heading { color: var(--paper); }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
  .card { background: var(--green); padding: 2.4rem 1.8rem; text-align: center; }
  .card .lbl { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: 1rem; }
  .card .big { font-family: var(--display); font-size: 1.5rem; font-weight: 400; margin-bottom: .4rem; }
  .card .sub { font-size: .92rem; color: #e4d7c2; }
  @media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

  /* ── Timeline (the signature) ────────────────────────── */
  .timeline { background: var(--paper-2); }
  .timeline .head { text-align: center; margin-bottom: 4rem; }
  .tl { max-width: 40rem; margin: 0 auto; position: relative; }
  .tl::before {
    content: ""; position: absolute; left: 6.5rem; top: .6rem; bottom: .6rem;
    width: 1px; background: linear-gradient(var(--sage), var(--olive)); }
  .tl-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 2rem; padding: 1.1rem 0; position: relative; }
  .tl-time { font-family: var(--display); font-size: 1.5rem; color: var(--green); text-align: right; line-height: 1.1; padding-right: .9rem; }
  .tl-time small { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-top: .2rem; }
  .tl-body { padding-left: 1.8rem; position: relative; }
  .tl-body::before {
    content: ""; position: absolute; left: -.42rem; top: .55rem; width: 9px; height: 9px;
    background: var(--paper-2); border: 1.5px solid var(--olive); transform: rotate(45deg); }
  .tl-title { font-family: var(--display); font-size: 1.15rem; color: var(--ink); margin-bottom: .15rem; }
  .tl-note { font-size: .92rem; color: #574a3d; }
  @media (max-width: 560px) {
    .tl::before { left: 4.6rem; }
    .tl-row { grid-template-columns: 4.6rem 1fr; gap: 1rem; }
    .tl-time { font-size: 1.15rem; }
  }

  /* ── RSVP ────────────────────────────────────────────── */
  .rsvp { background: var(--paper); }
  .rsvp .head { text-align: center; margin-bottom: 3rem; }
  .rsvp .prose { margin: 0 auto 3rem; text-align: center; }
  form { max-width: 34rem; margin: 0 auto; }
  .field { margin-bottom: 1.4rem; }
  .field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: .5rem; }
  .field input, .field select, .field textarea {
    width: 100%; padding: .85rem 1rem; font-family: var(--body); font-size: 1rem;
    color: var(--ink); background: var(--paper-2); border: 1px solid #cfcbbb; border-radius: 2px;
    transition: border-color .2s ease, box-shadow .2s ease; }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(153,97,54,.20); }
  .field textarea { resize: vertical; min-height: 5rem; }
  .radio-row { display: flex; gap: 1rem; flex-wrap: wrap; }
  .radio-row label {
    flex: 1; min-width: 8rem; display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1rem; background: var(--paper-2); border: 1px solid #cfcbbb; border-radius: 2px;
    cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink); margin: 0; }
  .radio-row input { width: auto; }
  .radio-row label:has(input:checked) { border-color: var(--olive); background: #e7e4d5; }
  .btn {
    width: 100%; padding: 1rem; margin-top: .6rem; font-family: var(--body); font-weight: 600;
    font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper);
    background: var(--green); border: none; border-radius: 2px; cursor: pointer; transition: background .2s ease; }
  .btn:hover { background: #7d4f2c; }
  .form-note { font-size: .82rem; color: #6a7263; text-align: center; margin-top: 1rem; }
  .thanks {
    display: none; text-align: center; padding: 3rem 1.5rem; background: var(--paper-2);
    border: 1px solid var(--sage); border-radius: 2px; }
  .thanks.show { display: block; }
  .thanks .heading { font-size: 1.8rem; margin-bottom: .6rem; }

  /* Add-guest button + additional guest blocks */
  .btn-add {
    width: 100%; padding: .9rem 1rem; font-family: var(--body); font-weight: 600;
    font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
    background: transparent; border: 1px dashed var(--olive); border-radius: 2px; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease; }
  .btn-add:hover { background: #e7e4d5; }
  .btn-add:disabled { opacity: .45; cursor: not-allowed; border-style: solid; }

  .guest-row {
    border-left: 2px solid var(--sage); padding: 1.3rem 0 1.3rem 1.3rem; margin-bottom: 1.4rem; }
  .guest-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
  .guest-title { font-family: var(--display); font-size: 1.15rem; color: var(--green); }
  .guest-remove {
    background: none; border: none; cursor: pointer; font-family: var(--body); font-weight: 600;
    font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
    padding: .2rem; }
  .guest-remove:hover { color: #8a3b2f; text-decoration: underline; }
  @media (prefers-reduced-motion: no-preference) {
    .guest-row { animation: guestIn .35s ease; }
    @keyframes guestIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  }

  /* ── FAQ ─────────────────────────────────────────────── */
  .faq { background: var(--paper-2); }
  .faq .head { text-align: center; margin-bottom: 3rem; }
  .faq-list { max-width: 40rem; margin: 0 auto; }
  details {
    border-bottom: 1px solid #cfcbbb; padding: 1.3rem 0; }
  details summary {
    list-style: none; cursor: pointer; font-family: var(--display); font-size: 1.15rem;
    color: var(--green); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  details summary::-webkit-details-marker { display: none; }
  details summary::after { content: "+"; font-family: var(--body); font-weight: 300; font-size: 1.5rem; color: var(--olive); transition: transform .25s ease; }
  details[open] summary::after { transform: rotate(45deg); }
  details p { margin-top: .9rem; color: #574a3d; max-width: 36rem; }

  /* ── Footer ──────────────────────────────────────────── */
  footer { background: var(--green); color: var(--sage); text-align: center; padding: 4rem 1.5rem; }
  footer .mono { font-family: var(--display); font-size: 2rem; color: var(--paper); margin-bottom: .8rem; }
  footer .amp { font-style: italic; color: var(--sage); }
  footer p { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

  /* ── Countdown ───────────────────────────────────────── */
  .countdown { background: var(--paper-2); text-align: center; padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem; }
  .countdown .eyebrow { color: var(--olive); margin-bottom: 2rem; }
  .cd-grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(.5rem, 2.5vw, 1.4rem); flex-wrap: nowrap; }
  .cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 2.8rem; }
  .cd-num {
    font-family: var(--display); font-weight: 300; line-height: 1; color: var(--green);
    font-size: clamp(2.4rem, 8vw, 4.2rem); font-variant-numeric: tabular-nums; }
  .cd-lbl { margin-top: .7rem; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
  .cd-sep {
    font-family: var(--display); font-weight: 300; line-height: 1; color: var(--sage);
    font-size: clamp(2rem, 6.5vw, 3.4rem); }
  .cd-done { font-family: var(--display); font-weight: 400; color: var(--green); font-size: clamp(1.8rem, 5vw, 2.8rem); }

  /* ── Google Maps link in the schedule ────────────────── */
  .venue { display: block; color: var(--ink); font-weight: 600; margin-top: .1rem; }
  .maps-link {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--green);
    text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
  .maps-link svg { width: 14px; height: 14px; flex: none; }
  .maps-link:hover { border-bottom-color: var(--green); }

  /* ── Contact ─────────────────────────────────────────── */
  .contact { background: var(--paper-2); text-align: center; }
  .contact .head { margin-bottom: 3rem; }
  .contact-grid { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
  .contact-card {
    display: flex; flex-direction: column; align-items: center; gap: .7rem;
    padding: 2rem 2.6rem; min-width: 15rem; background: var(--paper);
    border: 1px solid #cfcbbb; border-radius: 2px; text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .contact-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(43,38,32,.08); }
  .c-name { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); font-weight: 600; }
  .c-num { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.5rem; color: var(--green); }
  .c-num svg { width: 17px; height: 17px; flex: none; }
