:root {
  --bg: #f6f0ea;
  --panel: #fffafb;
  --rose: #a76757;
  --ink: #2d241f;
  --muted: #6a564f;
  --line: rgba(55, 42, 34, 0.14);
  --shadow: 0 20px 45px rgba(52, 34, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background: linear-gradient(180deg, #faf5f1 0%, #f3e9e1 100%);
  color: var(--ink);
}

/* Single column: photo on top, calendar links underneath */
.std {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
  display: grid;
  gap: 36px;
}

/* Photo */
.std-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}

.std-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shown only until the real photo is added */
.std-photo.is-missing {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
}

.std-photo.is-missing img {
  display: none;
}

.std-photo.is-missing::after {
  content: "Save-the-date photo goes here";
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Details */
.std-details {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cal-label {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Hover lift only on devices with a mouse, so it doesn't stick after a tap on phones */
@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(167, 103, 87, 0.3);
  }
}

.button:active {
  opacity: 0.85;
}

.note {
  margin: 28px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .std {
    padding: 16px 0 40px;
    gap: 28px;
  }

  .cal-buttons .button {
    flex: 1 1 100%;
  }
}
