/* base.css — reset, page column, shared type (kicker, rule, buttons, hints, arch). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--surround); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surround);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.is-gated, html.is-gated body { overflow: hidden; height: 100%; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
p, h1, h2, blockquote, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
em { font-style: italic; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 14px;
  background: var(--ink); color: var(--white); font-size: 13px; letter-spacing: 0.04em;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

:focus-visible { outline: 2px solid var(--lilac-800); outline-offset: 4px; }

/* ---- the column + the evening ground ------------------------------------------------- */
.page {
  position: relative;
  max-width: var(--column);
  margin: 0 auto;
  background: url("../assets/img/paper-grain.png") 0 0 / 180px 180px repeat, var(--paper);
  min-height: 100vh;
}
/* desktop: the column (and its full-bleed photographic stages) reads as one tall card */
@media (min-width: 600px) {
  .page { box-shadow: 0 0 0 1px rgba(90, 70, 135, 0.08), 0 18px 60px rgba(59, 48, 84, 0.08); }
}
.ground {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("../assets/img/paper-grain.png") 0 0 / 180px 180px repeat,
    linear-gradient(180deg, var(--evening-top) 0%, var(--evening-bottom) 100%);
  opacity: 0;
  pointer-events: none;
}
.invite { position: relative; z-index: 1; display: block; }
.invite:focus { outline: none; }
.invite > * { position: relative; }
/* the branch bleeds off the phone's edge; on a wide screen it may cross the column */
@media (max-width: 519px) {
  .invitation { overflow-x: clip; }
}


/* ---- type ------------------------------------------------------------------------------ */
.kicker {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
}
.kicker--soft { color: var(--ink-soft); }

.rule { display: block; width: 44px; height: 1px; background: var(--rule); margin: 0 auto; }
.rule--light { background: var(--rule-evening); }

/* ---- buttons: hairline, arch-topped ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; min-width: 168px; padding: 0 26px;
  border: 1px solid var(--lilac-600);
  border-radius: 1px;
  font-family: var(--font-text); font-weight: 400; font-size: 11px;
  letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none;
  color: var(--lilac-800);
  background: transparent;
  transition: transform var(--motion-fast) var(--ease-standard), opacity var(--motion-fast);
}
.btn:active { transform: scale(0.98); }
@media (hover: hover) { .btn:hover { opacity: 0.72; } }
.btn--light { border-color: rgba(50, 39, 76, 0.62); color: var(--on-evening); }

/* ---- hint pill -------------------------------------------------------------------------- */
.hint {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lilac-800);
}
.hint__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lilac-600); }
.hint--light { border-color: rgba(50, 39, 76, 0.26); background: rgba(255, 255, 255, 0.3); color: var(--on-evening); }
.hint--light .hint__dot { background: var(--lilac-800); }

/* ---- the arch ---------------------------------------------------------------------------- */
.arch { position: relative; width: var(--arch-w, 62%); margin: 0 auto; }
.arch__window {
  position: relative;
  aspect-ratio: 1 / var(--arch-ratio);
  border-radius: 2000px 2000px 0 0;
  overflow: hidden;
  background: var(--lilac-50);
  transform: translateZ(0); /* keeps the radius clip on iOS while the image moves */
}
.arch__pan { position: absolute; inset: -8% 0; }
.arch__img { width: 100%; height: 100%; object-fit: cover; }
/* the hairline outline, 6 px outside the window */
.arch__line {
  position: absolute; inset: -7px;
  border: 1px solid var(--rule);
  border-radius: 2000px 2000px 0 0;
  pointer-events: none;
}
