:root {
  --bg: #f6f4ee;
  --card: #fffdf9;
  --ink: #1c1a17;
  --muted: #8a857c;
  --accent: #e2932f;
  --accent-soft: #fbeed6;
  --green: #4b7a52;
  --green-soft: #eef5ee;
  --line: #e7e3d9;
  --radius: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.screen { min-height: 100vh; display: flex; justify-content: center; }
[hidden] { display: none !important; }

/* ---------- Pogas ---------- */
.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform .05s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.linkbtn {
  background: none; border: none; color: var(--muted);
  font-family: var(--body); font-size: 16px; cursor: pointer; text-decoration: underline;
}

/* ---------- Bloķēšanas ekrāns ---------- */
.lock-card {
  max-width: 520px; width: 100%; margin: auto; padding: 48px 28px;
  text-align: center;
}
.lock-title, .couple { font-family: var(--serif); font-weight: 700; }
.lock-title { font-size: 40px; margin: 8px 0 28px; }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 20px;
}
.notice strong { font-weight: 700; }

#codeInput {
  width: 100%; padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; font-family: var(--serif);
  font-size: 22px; text-align: center; margin-bottom: 12px; color: var(--ink);
}
#codeInput:focus { outline: 2px solid var(--accent); }
.turnstile-widget { display: flex; justify-content: center; min-height: 65px; margin: 0 0 12px; }
.btn:disabled { cursor: wait; opacity: .65; }
.fineprint { color: var(--muted); font-size: 15px; margin-top: 22px; }
.error { color: #b4453a; font-size: 15px; margin-top: 10px; }

/* ---------- Ielūgums ---------- */
.invite-wrap { max-width: 620px; width: 100%; padding: 40px 20px 60px; }
.hero { text-align: center; margin-bottom: 28px; }
.couple { font-size: 46px; margin: 12px 0 4px; }
.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.invite-label {
  display: inline-block;
  margin: 20px 0 0;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
}
.event-intro {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  white-space: pre-line;
}
.latvian-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 180px;
  margin: 22px auto 0;
  color: var(--accent);
}
.latvian-divider span { width: 54px; height: 1px; background: currentColor; opacity: .55; }
.latvian-divider svg { width: 28px; height: 28px; overflow: visible; }
.latvian-divider path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: miter; }
.latvian-divider-small { width: 120px; margin: 0 auto 20px; opacity: .65; }
.latvian-divider-small span { width: 34px; }
.latvian-divider-small svg { width: 20px; height: 20px; }

.media-frame {
  aspect-ratio: 16/10; background: #111; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
  overflow: hidden;
}
.media-frame.has-image { background-size: cover; background-position: center; }
.media-frame .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
}

.greeting { text-align: center; margin-bottom: 30px; }
.greeting h2 { font-family: var(--serif); font-size: 30px; color: var(--muted); margin: 0 0 6px; }
.greet-names { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 0 14px; }
.intro { color: var(--muted); max-width: 480px; margin: 0 auto; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-bottom: 22px;
}
.info-card .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.info-card .row:last-child { border-bottom: none; }
.info-card .lbl { font-family: var(--serif); font-weight: 700; }
.row-value { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.inline-jump {
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .7px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.countdown { display: flex; justify-content: space-around; text-align: center; }
.cd-num { font-family: var(--serif); font-size: 34px; font-weight: 700; display: block; }
.cd-lbl { color: var(--muted); font-size: 13px; letter-spacing: 1px; }

.when-where { text-align: center; }
.ww-date { font-family: var(--serif); font-size: 24px; margin: 0; }
.ww-time { color: var(--muted); margin: 4px 0 0; }
.when-where hr { border: none; border-top: 1px solid var(--line); width: 40px; margin: 18px auto; }
.ww-venue { font-family: var(--serif); font-size: 22px; margin: 0; }
.ww-addr { color: var(--muted); margin: 4px 0 0; }
.map-link { display: inline-block; margin-top: 8px; color: var(--accent); }

/* ---------- Karte ---------- */
.map-block { margin-top: 18px; }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.map-btn {
  flex: 1 1 30%; min-width: 110px; text-align: center; cursor: pointer;
  padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: var(--serif); font-size: 16px;
  text-decoration: none;
}
.map-btn:active { transform: translateY(1px); }

/* ---------- RSVP ---------- */
.rsvp h2 { font-family: var(--serif); font-size: 28px; text-align: center; margin: 0 0 4px; }
.rsvp-sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.thanks {
  background: var(--green-soft); border: 1px solid #cfe3d0; color: var(--green);
  border-radius: 12px; padding: 16px; text-align: center; font-family: var(--serif);
  font-size: 20px; margin-bottom: 20px;
}

.guest-row {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
}
.guest-name { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; }
.guest-name input {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--serif); font-size: 20px; background: #fff; color: var(--ink);
}
.tagpill { font-size: 13px; color: var(--accent); letter-spacing: 1px; margin-left: 8px; }

.toggle { display: flex; gap: 10px; }
.toggle .opt {
  flex: 1; padding: 13px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; font-family: var(--serif); font-size: 17px; letter-spacing: 1px;
  color: var(--muted); cursor: pointer;
}
.toggle .opt.yes-on { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.toggle .opt.no-on  { border-color: #cbb6a0; color: var(--ink); background: #f3ece2; }

.overnight { margin: 6px 0 18px; }
.overnight .lbl { font-family: var(--serif); font-weight: 700; margin-bottom: 4px; }
.overnight-note { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.overnight-price { color: var(--accent); font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 10px; }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-family: var(--serif); font-weight: 600; margin-bottom: 6px; }
.field textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-size: 16px; background: #fff; resize: vertical; color: var(--ink);
}

/* ---------- Dienas gaita ---------- */
.schedule h2 { font-family: var(--serif); font-size: 28px; text-align: center; margin: 0 0 4px; }
.schedule-note { text-align: center; color: var(--muted); margin: 0 0 20px; }
.schedule-list { list-style: none; margin: 0; padding: 0; }
.sch-item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sch-item:last-child { border-bottom: none; }
.sch-time { font-family: var(--serif); font-weight: 700; color: var(--accent); min-width: 56px; font-size: 18px; }
.sch-body { flex: 1; }
.sch-title { font-family: var(--serif); font-size: 20px; }
.sch-sub { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.sch-sub li { margin: 2px 0; }

/* ---------- Biļetes ---------- */
.tickets { text-align: center; }
.tickets h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; }
.ticket-price { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.ticket-note { color: var(--muted); max-width: 460px; margin: 0 auto 16px; }
.ticket-contact { margin: 4px 0; }
.ticket-contact .lbl { font-family: var(--serif); font-weight: 700; margin-right: 6px; }
.ticket-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.tickets .btn { margin-top: 18px; display: block; text-align: center; text-decoration: none; }

.more-info { text-align: center; border-style: dashed; }
.more-info h2 { font-family: var(--serif); color: var(--accent); font-size: 24px; margin: 0 0 8px; }
.more-info p { color: var(--muted); margin: 0; }

.foot { text-align: center; margin-top: 10px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .couple { font-size: 36px; }
  .cd-num { font-size: 26px; }
  .info-card .row { align-items: flex-start; }
}
