:root {
  color-scheme: dark;
  --charcoal: #293132;
  --deep-teal: #0f3e35;
  --copper: #a46c53;
  --light-copper: #f2e8e3;
  --soft-copper: #d6bcb3;
  --muted: #c0c9c9;
  font-family: Geneva, Verdana, sans-serif;
  color: var(--light-copper);
  background: var(--deep-teal);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  position: relative;
  isolation: isolate;
  background: var(--deep-teal);
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/background-texture.png") center / cover no-repeat;
  /* Deepen the paper grain while keeping its white highlights unchanged. */
  filter: brightness(0.5) contrast(1.5) brightness(2);
  mix-blend-mode: multiply;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 52px);
  background-image: url("assets/upper-left-dark-green.png"), url("assets/lower-right-dark-green.png");
  background-position: left top, right bottom;
  background-size: clamp(120px, 24vw, 300px) auto;
  background-repeat: no-repeat;
}

.splash {
  width: min(100%, 760px);
  margin: auto;
  padding: 48px 0 56px;
  text-align: center;
}

.logo {
  display: block;
  width: min(100%, 580px);
  height: auto;
  margin: 0 auto 12px;
}

.artist {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--soft-copper);
}

.artist strong { font-weight: 400; white-space: nowrap; }

.divider {
  display: block;
  width: min(70%, 280px);
  height: auto;
  margin: 36px auto;
}

h1 {
  margin: 0 0 16px;
  font-family: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  text-wrap: balance;
}

.invitation {
  max-width: 32rem;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}

.instagram {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--soft-copper);
  border-radius: 999px;
  color: var(--charcoal);
  background: var(--soft-copper);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.instagram svg { flex-shrink: 0; }
.instagram:hover { background: var(--light-copper); border-color: var(--light-copper); }
.instagram:focus-visible { outline: 2px solid var(--light-copper); outline-offset: 6px; }
.instagram:active { background: var(--light-copper); }

.handle { margin: 16px 0 0; color: var(--soft-copper); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
footer { padding: 0 0 4px; text-align: center; font-size: .75rem; line-height: 1.6; color: var(--muted); }

@media (max-width: 480px) {
  .page { padding: 32px 28px; }
  .splash { padding: 44px 0; }
  .logo { margin-bottom: 24px; }
  .artist { max-width: 19rem; margin-inline: auto; }
  .divider { margin: 30px auto; }
}

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