/* Shared look for the guest pages (home and invitation). Matches the RSVP site:
   off-white on black, Playfair Display headings, Montserrat text.
   Change a color or font here and those pages update. */

:root {
  --color-background: #111111;
  --color-text: #fdfbf7;
  --color-muted: #b9b4ab;
  --color-line: rgba(253, 251, 247, 0.35);
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

main {
  width: 100%;
  max-width: 34rem;
}

.monogram {
  display: block;
  width: min(78vw, 22rem);
  height: auto;
  margin: 0 auto 1.5rem;
}

h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 500;
}

h2 {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted);
}

p {
  margin: 0 0 1.75rem;
}

a {
  color: var(--color-text);
}

.rule {
  width: 4rem;
  height: 1px;
  margin: 2rem auto;
  border: 0;
  background: var(--color-line);
}

.page-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-links li {
  margin: 0.75rem 0;
}

.button,
.page-links a {
  display: inline-block;
  min-width: 14rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
}

.button:hover,
.button:focus-visible,
.page-links a:hover,
.page-links a:focus-visible {
  background: var(--color-text);
  color: var(--color-background);
}

.lang {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.lang button {
  padding: 0.25rem 0.35rem;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.back {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
