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

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

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-sans-3-300-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400-latin.woff2") format("woff2");
}

:root {
  --bg: #1c1b1a;
  --ivory: #f4efe6;
  --muted: #b7b0a6;
  --gold: #7c5830;
  --gold-bright: #a87b3d;
  --line: rgba(198, 165, 106, 0.38);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", sans-serif;
  --frame: clamp(0.75rem, 2.4vw, 1.75rem);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.14;
  background-image: url("../assets/grain.png");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% -20%,
    rgba(168, 132, 85, 0.14),
    transparent 46%
  );
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

::selection {
  background: rgba(168, 123, 61, 0.35);
  color: var(--ivory);
}

.frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 3;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  opacity: 0.55;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: calc(var(--frame) + 1.75rem) clamp(1.35rem, 5vw, 2.5rem) 1.5rem;
}

.monogram {
  width: 72px;
  height: 72px;
  margin-bottom: 1.75rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold-bright);
  opacity: 0.7;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 8.4vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  white-space: nowrap;
}

.invitation {
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  color: var(--ivory);
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 40.5rem;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
}

.btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ivory);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  max-width: 100%;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #1a140c;
}

.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a140c;
}

.btn--solid:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.contact {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact a {
  color: var(--gold-bright);
  text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem calc(var(--frame) + 1.15rem);
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 430px) {
  .monogram {
    width: 64px;
    height: 64px;
    margin-bottom: 1.4rem;
  }

  .btn {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    padding: 0.9rem 1rem;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 1.6rem;
  }
}

@media (min-width: 1024px) {
  .monogram {
    width: 88px;
    height: 88px;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
