:root {
  --paper: #f4ece5;
  --table: #e7e2de;
  --ink: #9b5340;
  --ink-deep: #7c3f2f;
  --ink-soft: #b9897a;
  --rule: #e0cfc4;
  --serif: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --script: "Allura", "Snell Roundhand", "Brush Script MT", cursive;
}

[v-cloak] { display: none; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--table);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
}

a { color: var(--ink-deep); text-underline-offset: .18em; }

:focus-visible { outline: 2px solid var(--ink-deep); outline-offset: 3px; }

/* ---------- shared ---------- */

.names {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.names .amp { font-style: italic; text-transform: none; letter-spacing: 0; }

.florals { color: var(--ink); display: block; }

button, .solid, .ghost {
  font: inherit;
  font-size: 1.05rem;
  border-radius: 999px;
  padding: .55em 1.4em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.3;
  transition: background-color .15s, color .15s;
}
.solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.solid:hover { background: var(--ink-deep); }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-soft); }
.ghost:hover { background: rgba(155, 83, 64, .08); }
button:disabled, .disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

input, textarea {
  font: inherit;
  color: var(--ink-deep);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: .35em .1em;
  width: 100%;
  border-radius: 0;
}
input::placeholder, textarea::placeholder { color: var(--ink-soft); font-style: italic; }
input:focus-visible, textarea:focus-visible { outline: none; border-bottom-width: 2px; }

/* ---------- locked cover ---------- */

.cover {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4vh 1rem;
}

.sheet {
  position: relative;
  width: min(100%, 560px);
  min-height: min(780px, 92vh);
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(80, 50, 40, .08), 0 18px 40px -20px rgba(80, 50, 40, .35);
  padding: 3.2rem 2.6rem 2.6rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tagline { position: relative; z-index: 1; }
.tagline-caps {
  display: block;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.05;
}
.tagline-script {
  display: block;
  font-family: var(--script);
  font-size: clamp(3.6rem, 14vw, 5.2rem);
  line-height: .9;
  margin: -.12em 0 0 .1em;
}

.cover .names {
  text-align: right;
  margin-top: auto;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  position: relative;
  z-index: 1;
}

.unlock {
  position: relative;
  z-index: 1;
  margin: 1.6rem 0 0 auto;
  width: min(100%, 290px);
  display: grid;
  gap: .7rem;
  text-align: right;
}
.unlock label { font-style: italic; font-size: 1.05rem; }
.unlock-row { display: flex; gap: .5rem; align-items: end; }
.unlock-row .ghost { padding: .3em .9em; font-size: .95rem; flex: none; }
.msg { min-height: 1.5em; margin: 0; font-style: italic; color: var(--ink-deep); font-size: 1rem; }

.cover .florals {
  position: absolute;
  left: -14px;
  bottom: -6px;
  width: 42%;
  max-width: 230px;
  pointer-events: none;
}

@media (max-width: 480px) {
  .sheet { padding: 2.4rem 1.6rem 2rem; border-radius: 22px; }
  .cover .florals {
    position: relative; left: auto; bottom: auto;
    order: 1; width: 62%; max-width: 240px;
    margin: auto 0 -.5rem -1.6rem;
  }
  .cover .names { order: 2; margin-top: 0; }
  .unlock { order: 3; width: 100%; }
}

/* ---------- details ---------- */

.details {
  width: min(100%, 760px);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  padding-bottom: 3rem;
}
.loading { text-align: center; padding: 30vh 0; font-style: italic; }

.hero {
  position: relative;
  padding: 4.5rem 2rem 3rem;
  text-align: right;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  min-height: 420px;
}
.hero-script {
  font-family: var(--script);
  font-size: clamp(3.4rem, 12vw, 5rem);
  line-height: 1;
  margin: 0 0 .4rem;
}
.hero-date {
  margin: 1rem 0 0;
  font-size: 1.35rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.countdown { margin: .3rem 0 0; font-style: italic; color: var(--ink-soft); }
.hero .florals {
  position: absolute;
  left: -10px;
  bottom: -8px;
  width: 30%;
  max-width: 210px;
  opacity: .95;
}
.hero > :not(.florals) { position: relative; z-index: 1; }

.block { padding: 2.8rem 2rem 0; }
.block h2 {
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 1.4rem;
  line-height: 1.2;
}
.block h3 { margin: 0; font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.block p { margin: .2rem 0 0; }
.lede { font-style: italic; margin-top: -.6rem !important; margin-bottom: 1.4rem !important; }

/* the day: a real sequence, so a timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.2rem;
  padding: 0 0 1.5rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 8.5rem;
  top: .55rem;
  bottom: -.2rem;
  border-left: 1px solid var(--rule);
  margin-left: 1.24rem;
}
.timeline li:last-child::before { display: none; }
.timeline li > div { padding-left: 1.2rem; position: relative; }
.timeline li > div::before {
  content: "";
  position: absolute;
  left: -.18rem;
  top: .5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.tl-time { font-style: italic; text-align: right; padding-top: .05rem; }

.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.venue { border-top: 1px solid var(--ink-soft); padding-top: 1rem; }
.venue-role { font-style: italic; margin: 0 0 .2rem !important; color: var(--ink-soft); }
.venue address { font-style: normal; margin: .5rem 0 .8rem; }

.form { display: grid; gap: .5rem; max-width: 520px; }
.form > label, legend { font-weight: 600; margin-top: .8rem; }
fieldset { border: 0; padding: 0; margin: .8rem 0 0; display: grid; gap: .3rem; }
legend { padding: 0; margin: 0 0 .3rem; }
.choice { display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.choice input { width: auto; accent-color: var(--ink); width: 1.05rem; height: 1.05rem; }
.inline-field { display: flex; align-items: baseline; gap: 1rem; }
.inline-field label { font-weight: 600; }
.inline-field input { width: 4.5rem; text-align: center; }
textarea { resize: vertical; }
.send { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hint { font-style: italic; font-size: 1rem; color: var(--ink-soft); }
.contacts { margin-top: 2rem !important; font-size: 1.1rem; max-width: 60ch; }
.contacts a { white-space: nowrap; }

.foot {
  margin-top: 3.5rem;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-script { font-family: var(--script); font-size: 2.2rem; margin: 0; line-height: 1; }

@media (max-width: 600px) {
  .hero { padding: 3.2rem 1.4rem 0; min-height: 0; }
  .hero .florals {
    position: static; width: 58%; max-width: 230px;
    margin: -1rem 0 -.3rem -1.4rem;
  }
  .block { padding: 2.4rem 1.4rem 0; }
  .venues { grid-template-columns: 1fr; gap: 1.4rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 1.2rem; }
  .timeline li::before { left: 0; margin-left: .2rem; }
  .timeline li > div { padding-left: 0; }
  .timeline li > div::before { display: none; }
  .tl-time { text-align: left; position: relative; }
  .tl-time::before {
    content: ""; position: absolute; left: -1.2rem; top: .55rem;
    width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
