@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); }

/* Inter for what the guest types and taps: names must be unmistakable */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

:root {
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --paper: #EFE5D2;
  --paper-2: #F6EFE2;
  --ink: #2A1A10;
  --ink-soft: #5A4128;
  --gold: #7E5E28;
  --gold-line: #B08A4A;
  --error: #9C2F23;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  background-image: radial-gradient(ellipse at 50% 30%, transparent 55%, rgba(120, 90, 50, .14));
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
}

/* Gold frame from the book cover as a 9-slice border: corners keep their proportion at any width */
.card {
  width: 100%;
  min-width: 0;
  max-width: 520px;
  border: solid transparent;
  border-width: 62px 44px;
  border-image: url('/img/moldura.png') 421 300 fill / 62px 44px stretch;
  padding: 14px 0 6px;
  text-align: center;
}
@media (min-width: 560px) {
  body { padding: 32px 16px; }
  .card { border-width: 130px 95px; border-image-width: 130px 95px; }
}

.arch {
  width: min(250px, 100%);
  aspect-ratio: 480 / 528;
  margin: 0 auto 18px;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--gold);
}
.arch img { width: 100%; height: 100%; object-fit: cover; display: block; }

.title { width: min(320px, 100%); height: auto; display: block; margin: 0 auto; }
.lead { margin: 6px 0 0; font-style: italic; color: var(--ink-soft); }

.details { margin: 18px 0 6px; }
.details p { margin: 0; }
.date { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.where { margin-top: 4px !important; font-size: 21px; font-weight: 600; }
.address { font-style: italic; font-size: 16px; color: var(--ink-soft); }
.map { display: inline-block; margin-top: 6px; font-size: 15px; color: var(--gold); font-weight: 600; letter-spacing: .04em; }

form, .thanks { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(126, 94, 40, .35); text-align: left; }
h1 { font-size: 24px; font-weight: 700; margin: 0 0 14px; text-align: center; color: var(--ink); }

.field { margin: 0 0 16px; border: 0; padding: 0; position: relative; }
label, legend { display: block; font-weight: 600; font-size: 17px; margin-bottom: 6px; padding: 0; }
input[type=text], input[type=tel] {
  width: 100%;
  min-width: 0;
  font-family: var(--ui);
  font-size: 17px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--gold-line);
  border-radius: 6px;
  outline: none;
}
input[type=text]:focus, input[type=tel]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(126, 94, 40, .18); }

.suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: #FFFDF8;
  border: 1px solid rgba(126, 94, 40, .35);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(60, 40, 20, .14);
}
.suggestions::before {
  content: 'Toque no seu nome';
  display: block;
  padding: 6px 10px 4px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.suggestions button {
  width: 100%;
  text-align: left;
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 500;
  padding: 11px 10px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}
.suggestions button:hover, .suggestions button:focus-visible { background: rgba(126, 94, 40, .14); outline: none; }

.chosen {
  font-family: var(--ui);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(126, 94, 40, .12);
}
.link {
  font: inherit;
  font-size: 16px;
  color: var(--gold);
  background: none;
  border: 0;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.special-toggle { margin-top: 6px; text-align: left; }
.chosen .link { font-family: var(--ui); font-size: 15px; }

.choice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.choice legend { grid-column: 1 / -1; }
.opt { margin: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 13px 12px;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 500;
  border: 1.5px solid var(--gold-line);
  border-radius: 6px;
  background: var(--paper-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ico { width: 18px; height: 18px; flex: none; }
.opt input[value=yes] + span .ico { color: #3F7A2E; }
.opt input[value=no] + span .ico { color: var(--error); }
.opt input:checked + span .ico { color: currentColor; }
.opt input:checked + span { background: var(--gold); border-color: var(--gold); color: #FBF6EC; }
.opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(126, 94, 40, .3); }

.error { color: var(--error); font-weight: 600; margin: 0 0 12px; text-align: center; }

.submit {
  width: 100%;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px;
  color: #FBF6EC;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.submit:disabled { opacity: .6; cursor: wait; }

.thanks { text-align: center; }
.thanks p { margin: 0 0 10px; font-size: 20px; }

footer { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
footer span { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
footer img { width: 110px; height: auto; }

[hidden] { display: none !important; }
