@font-face {
  font-family: Kerub;
  src: url('/assets/fonts/Kerub-Beta02Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Calibre;
  src: url('/assets/fonts/calibre-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ebebd6;
  --ink: #2f2f2f;
  --muted: #626252;
  --rule: #c4c4b1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Calibre, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #fcc978; color: var(--ink); }

a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.page {
  max-width: 1400px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 72px);
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 31px 0 23px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  column-gap: clamp(48px, 6.3vw, 96px);
  align-items: center;
  flex: 1;
  padding: 54px 0 44px;
}

.invitation { grid-column: 2; grid-row: 1; }

h1 {
  margin: 0 0 29px;
  font-family: Kerub, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-size: clamp(65px, 6.8vw, 98px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h1 span { display: block; }

.introduction {
  max-width: 490px;
  font-size: 22px;
  line-height: 1.25;
}

.introduction p { margin: 0; }
.introduction .welcome { margin-bottom: 14px; }

.next-step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 27px;
}

.enter-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 56px;
  padding: 15px 21px 13px;
  background: var(--ink);
  color: var(--paper);
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 240ms ease;
}

.enter-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 500ms ease;
}

.enter-link:hover { background: #48483e; }
.enter-link:hover svg { transform: translateX(3px); }

.destination-name {
  color: var(--muted);
  font-size: 17px;
}

.redirect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-top: 13px;
  min-height: 44px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.2;
}

.redirect-message { margin: 0; }
#seconds { font-variant-numeric: tabular-nums; }

.pause-button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.salon {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

.photograph {
  position: relative;
  padding: 12px;
  border: 1px solid #b4b2a0;
  background: #e4e4cf;
  box-shadow: 0 2px 2px #2f2f2f06, 0 14px 30px -22px #2f2f2f66;
}

.photograph img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding-top: 17px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

figcaption span { padding: 0 4px; }

footer {
  display: flex;
  justify-content: center;
  padding: 0 0 30px;
}

footer a { display: block; padding: 7px 12px; }
footer img { display: block; width: 156px; height: auto; }

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

/* The photograph settles into its frame once, like an invitation being placed. */
@media (prefers-reduced-motion: no-preference) {
  html[data-ready] .photograph { animation: settle 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes settle {
    from { opacity: 0.7; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (min-width: 1600px) {
  main { padding-top: 72px; padding-bottom: 64px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  main { column-gap: 40px; }
  h1 { font-size: 66px; }
  .introduction { font-size: 21px; }
  .next-step { gap: 12px; }
  .destination-name { flex-basis: 100%; }
  .photograph { padding: 8px; }
}

@media (max-width: 760px) {
  .page { max-width: 590px; }
  .masthead { padding-top: 25px; padding-bottom: 19px; font-size: 11px; letter-spacing: 0.09em; gap: 12px; }
  main { display: flex; flex-direction: column; align-items: stretch; gap: 38px; padding: 34px 0 34px; }
  h1 { margin-bottom: 24px; font-size: clamp(56px, 13.8vw, 78px); }
  .introduction { font-size: 21px; max-width: 440px; }
  .introduction .welcome { margin-bottom: 12px; }
  .next-step { margin-top: 24px; gap: 14px 18px; }
  .enter-link { min-height: 54px; }
  .destination-name { font-size: 16px; }
  .redirect { margin-top: 9px; }
  .photograph { padding: 9px; }
  .photograph img { aspect-ratio: 1; object-fit: cover; object-position: center 31%; }
  figcaption { padding-top: 13px; }
  footer { padding-bottom: 25px; }
  footer img { width: 142px; }
}

@media (max-width: 380px) {
  .page { padding-inline: 20px; }
  .masthead { font-size: 10px; }
  h1 { font-size: clamp(50px, 14.1vw, 54px); }
  .introduction { font-size: 20px; }
  .enter-link { width: 100%; }
  .destination-name { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
