/* Desktop layout of the Cat & Dan wedding website.
   Every element sits where it sat in the Canva design (1366 pixels wide).
   --x, --y, --w and --h on each element are Canva's numbers; --u turns one
   Canva pixel into the matching share of the screen width, so the page
   scales with the window. The phone layout is in phone.css. */

@font-face { font-family: 'Rocking Horse'; src: url(../assets/fonts/rocking-horse.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Homemade Apple'; src: url(../assets/fonts/homemade-apple.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Dekko'; src: url(../assets/fonts/dekko.woff) format('woff'); font-display: swap; }

:root {
  --blue: #50688e;
  --cream: #fdf6ec;
  --rust: #994427;
  --terracotta: #c06141;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--blue); font-family: 'Dekko', cursive; }
a { color: inherit; }
img { display: block; }

/* Page links along the top */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; gap: 40px;
  padding: 14px 16px;
  background: var(--cream);
  font-size: 22px;
}
.nav a { text-decoration: none; color: var(--blue); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* One section of a page */
.sec {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1366 / var(--sh);
  overflow: hidden;
  --u: calc(100cqw / 1366);
}

/* Any element placed by Canva coordinates */
.el {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  transform: rotate(var(--r, 0deg));
}

/* A group only wraps its members; they keep their own positions. */
/* A cluster is a set of elements that stays together on phones (phone.css). */
.grp, .cluster { position: absolute; inset: 0; pointer-events: none; }
.grp > *, .cluster > * { pointer-events: auto; }

/* Pictures and drawings: the frame crops the image the way Canva did. */
.pic { overflow: hidden; }
.pic img { position: absolute; max-width: none; transform-origin: center; }
.bgpic { z-index: 0; }

/* Text */
.txt { white-space: pre-wrap; overflow-wrap: break-word; }
.txt span, .t-btn span { font-size: calc(var(--fs) * var(--u)); }
.txt a span { text-decoration: underline; }
.sp { display: none; }

/* Rectangles, rounded boxes and buttons */
.box {
  border-radius: calc(var(--rad, 0) * var(--u));
  border: calc(var(--bw, 0) * var(--u)) solid transparent;
  display: flex; align-items: center; justify-content: center;
}
.box[style*="border-color"] { border-style: solid; }
.btn a { text-decoration: none; }
.btn { transition: transform 0.15s ease; }
.btn:hover { transform: rotate(var(--r, 0deg)) scale(1.03); }
.t-btn { white-space: pre-wrap; }

/* Drawn shapes (photo frames, colour swatches) and arrows */
.shape, .curve { overflow: visible; }
.line { left: 0; top: 0; width: 100%; height: 100%; transform: none; pointer-events: none; }

/* Elements used only by the phone layout (phone.css) */
.phone-only { display: none; }

/* Our Adventures photo gallery: a strip of photos that scrolls sideways
   inside the blue box, with arrow buttons for computers. */
.gallery { padding: calc(24 * var(--u)); z-index: 2; }
.gallery-track {
  display: flex; gap: calc(16 * var(--u)); height: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: calc(12 * var(--u));
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  flex: none; height: 100%; width: auto;
  border-radius: calc(12 * var(--u));
  scroll-snap-align: center; object-fit: cover;
}
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: max(34px, calc(48 * var(--u))); aspect-ratio: 1;
  border: 0; border-radius: 50%;
  background: var(--cream); color: var(--blue);
  font: 400 max(26px, calc(36 * var(--u)))/1 'Dekko', cursive;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.gallery-btn.prev { left: calc(10 * var(--u)); }
.gallery-btn.next { right: calc(10 * var(--u)); }
.gallery-btn:disabled { opacity: 0; pointer-events: none; }

/* Maps */
.map { border: 0; }

/* Accommodation: the page is shorter than most windows, so on computers the
   content sits in the middle of the window instead of leaving the space below. */
@media (min-width: 701px) {
  body.page-accommodation { min-height: 100vh; display: flex; flex-direction: column; }
  .page-accommodation main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* FAQ gift buttons: on computers each button keeps its own position. */
.gift-btns { display: contents; }

/* Honeymoon fund details box */
.fund-dialog {
  margin: auto; width: calc(100% - 32px); max-width: 440px;
  padding: 28px 24px 24px; border: 3px solid var(--blue); border-radius: 20px;
  background: var(--cream); color: var(--blue); font-family: 'Dekko', cursive; font-size: 20px;
}
.fund-dialog::backdrop { background: rgba(80, 104, 142, 0.55); }
.fund-dialog h2 { font-family: 'Rocking Horse', cursive; font-weight: normal; font-size: 40px; text-align: center; margin-bottom: 16px; }
.fund-details > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(80, 104, 142, 0.4); }
.fund-details > div:last-child { border-bottom: 0; }
.fund-details dt { opacity: 0.8; }
.fund-details dd { text-align: right; display: flex; align-items: center; gap: 10px; }
.fund-copy, .fund-close { font: inherit; color: var(--cream); background: var(--blue); border: 0; cursor: pointer; }
.fund-copy { font-size: 15px; padding: 2px 10px; border-radius: 10px; }
.fund-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; font-size: 24px; line-height: 1; }

/* Small note under the RSVP line on the Venue photo (added 3 December 2026).
   The shadow keeps the small cream letters readable over the horizon. */
#rsvp-note { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
