@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,400;1,400&display=swap");

:root {
  --paper: #f6f3ee;
  --ink: #2b2420;
  --gold: #e0a82e;
  --rust: #a4472a;
  --wood: #b08a5c;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem max(0.75rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  text-align: center;
  /* Wooden table, like in the invitation photos */
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(90deg, rgba(90, 60, 30, 0.10) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, rgba(255, 235, 200, 0.08) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #bf9b6b, #a07a4d);
  background-attachment: fixed;
}

.card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 7rem 1.4rem 6.5rem;
  background: linear-gradient(160deg, #fbf9f5, var(--paper) 55%, #eeeae3);
  box-shadow: 0 10px 28px rgba(40, 25, 10, 0.35);
  overflow: hidden;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: clamp(110px, 34vw, 190px);
  aspect-ratio: 1;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.card::before {
  top: 0.8rem;
  right: 0.8rem;
  background-image: url("images/leaves.png");
  background-position: top right;
}

.card::after {
  bottom: 0.8rem;
  left: 0.8rem;
  background-image: url("images/pinecones.png");
  background-position: bottom left;
}

.card > * { position: relative; z-index: 1; }

/* Thin gold frame, as on the invitation */
.card > .frame {
  position: absolute;
  z-index: 0;
  inset: 0.6rem;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin: 0.2em 0;
  line-height: 1.2;
}

h1 { font-size: clamp(2.3rem, 11vw, 3.6rem); }
h1 span { display: block; }
h1 .amp { font-size: 0.8em; margin: 0.1em 0; }
h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
h3 { font-size: 1.7rem; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--rust);
}

.divider {
  width: 90px;
  height: 1.5px;
  margin: 1.2rem auto;
  background: var(--gold);
}

p { margin: 0.8rem 0; }

.map {
  display: block;
  width: 100%;
  height: min(60vw, 340px);
  min-height: 240px;
  border: 1.5px solid var(--gold);
  margin: 1.4rem 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 1.4rem 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--gold);
  padding: 4px;
  background: #fff;
}

.locations {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
  display: grid;
  gap: 0.8rem;
}

.button, .nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 1.4rem;
  border: 1.5px solid var(--gold);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}

.button:hover, .button:active, .nav a:hover, .nav a:active {
  background: var(--gold);
  color: #fff;
}

.uploads { margin: 2rem 0 0; }

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.photos:empty { display: none; }

.photos figure { margin: 0; }

.photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  padding: 3px;
  background: #fff;
}

.delete {
  margin-top: 0.3rem;
  padding: 0.4rem;
  min-height: 40px;
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  color: var(--rust);
  background: none;
  border: 1px solid var(--rust);
}

.delete:disabled { opacity: 0.5; }

.pick { cursor: pointer; }
.pick[aria-disabled] { opacity: 0.45; pointer-events: none; }

.status { min-height: 1.6em; font-style: italic; color: var(--rust); }

.nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.soon {
  font-size: 1.1rem;
  color: var(--rust);
  font-style: italic;
}

@media (min-width: 560px) {
  body { font-size: 1.3rem; padding-top: 2rem; }
  .card { padding: 6.5rem 3rem; }
  .card > .frame { inset: 0.9rem; }
  .locations { max-width: 320px; margin-inline: auto; }
  .nav { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; }
}
