/* Bottle-green tablecloth, ivory type, a brass rule. One page at a time. */
:root {
  --cloth: #16352e;
  --cloth-deep: #0f2621;
  --ivory: #f2ead9;
  --ivory-dim: #c9c2b2;
  --brass: #c9a45c;
  --error: #f0a493;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
}

* { box-sizing: border-box; }

html { background: var(--cloth); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 30%, var(--cloth) 0%, var(--cloth-deep) 100%);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 1.25rem;
  line-height: 1.55;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 34rem;
  padding: 12vh 1.5rem 4rem;
}

.invite {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--ivory-dim);
  font-style: italic;
}

.date {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.date .day { display: block; font-size: 0.42em; font-style: italic; font-weight: 400; letter-spacing: 0; margin-bottom: 0.15em; }

.rule { width: 3.5rem; height: 1px; background: var(--brass); border: 0; margin: 2rem 0; }

.when { margin: 0 0 1.5rem; color: var(--ivory-dim); }

p { margin: 0 0 1rem; }

label { display: block; margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--ivory-dim); }

input[type="email"], input[type="text"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ivory-dim);
  border-radius: 0;
  padding: 0.4rem 0;
  margin-bottom: 1.5rem;
}
textarea { min-height: 3.5rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(242, 234, 217, 0.35); }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--brass); }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { padding: 0; margin-bottom: 0.5rem; font-size: 1.05rem; color: var(--ivory-dim); }
.check { display: flex; gap: 0.6rem; align-items: baseline; color: var(--ivory); font-size: 1.2rem; margin: 0 0 0.3rem; cursor: pointer; }
.check input { accent-color: var(--brass); width: 1.05rem; height: 1.05rem; flex: none; }

button, .button {
  display: inline-block;
  font: 600 1.15rem/1 var(--text);
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  margin: 0 0.6rem 0.6rem 0;
  border: 1px solid var(--brass);
  border-radius: 2rem;
  background: var(--brass);
  color: var(--cloth-deep);
  text-decoration: none;
  cursor: pointer;
}
button.quiet, .button.quiet { background: transparent; color: var(--ivory); border-color: var(--ivory-dim); }
button:disabled { opacity: 0.5; cursor: progress; }
button:focus-visible, .button:focus-visible, a:focus-visible, .check input:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

a { color: var(--ivory); text-decoration-color: var(--brass); text-underline-offset: 0.2em; }

.small { font-size: 1rem; color: var(--ivory-dim); }
.error { color: var(--error); }
.message { font-size: 1.35rem; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 0.6s ease-out both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(0.4rem); } to { opacity: 1; transform: none; } }
}
