/* ---------------------------------------------------------------
   M & L
   Coming soon: Figma node 588:73 "MacBook Pro 16' - 1"
   Site pages:  Figma node 1425:6 (a screenshot, so values are
                measured off the image at 1 image px = 1 CSS px)
   --------------------------------------------------------------- */

:root {
  --paper: #f9f8f6;              /* white */
  --wine: #640018;               /* red: all text */
  --rule: rgb(100 0 24 / 0.3);   /* dividers */
  --rule-nav: rgb(100 0 24 / 0.15); /* the softer line under the nav */
  --muted: rgb(100 0 24 / 0.75); /* secondary copy, e.g. FAQ answers */

  --monogram-width: 254.825px;   /* design width of the monogram */
  --stack-gap: 80px;             /* design gap between monogram and tagline */
}

@font-face {
  font-family: "En Clair";
  src: url("assets/fonts/en-clair.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--wine);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 9vh, var(--stack-gap));
  padding: 40px 24px;
}

/* --- Monogram -------------------------------------------------- */
/* Outlined in Figma, so no En Clair licence and no font fallback. */

.monogram {
  display: block;
  width: min(var(--monogram-width), 62vw);
  height: auto;
  aspect-ratio: 254.825 / 256.918;
  flex-shrink: 0;
}

/* --- Tagline --------------------------------------------------- */

.tagline {
  margin: 0;
  font-size: clamp(16px, 3.6vw, 22px);
  line-height: 1.91;        /* 42 / 22 */
  letter-spacing: 0.14em;   /* 3.08px at 22px */
  text-transform: uppercase;
  text-align: center;
  text-indent: 0.14em;      /* offsets the trailing letter-space, keeps it optically centred */
}

/* ===============================================================
   Site pages
   =============================================================== */

/* --- Header + nav ---------------------------------------------- */

.site-header {
  padding-inline: 64px;
}

.site-nav {
  border-bottom: 0.5px solid var(--rule-nav);   /* hairline on high-density screens */
}

.site-nav__list {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 20px 0 24px;
  list-style: none;
}

.site-nav__link {
  display: block;
  color: inherit;
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* OSA stands out by weight alone. */
.site-nav__link--rsvp {
  font-weight: 700;
}

/* --- Body copy ------------------------------------------------- */
/* One running-text style across the site: small caps-height uppercase
   with open tracking. Components set only layout around it. */

.detail__text,
.feature__text,
.feature__place,
.flower-card__text,
.faq__answer,
.rsvp__lead,
.rsvp__deadline,
.about__text,
.soon__text,
.contact__text,
.contact__links,
.venue__lead,
.venue__place {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Script page title ----------------------------------------- */

.script-title {
  margin: 0;
  font-family: "En Clair", "Snell Roundhand", cursive;
  font-size: 57px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-wrap: balance;   /* no lone last word when a title wraps */
}

/* Section-sized script title, e.g. "Questions, answered". */
.script-title--lg {
  margin-bottom: 60px;
  font-size: 59px;
}

/* --- Details page ---------------------------------------------- */

.details {
  display: grid;
  grid-template-columns: minmax(0, 752px);
  justify-content: center;
  column-gap: 88px;
  row-gap: 80px;
  padding: 143px 24px 0;
}

.details .script-title {
  grid-column: 1 / -1;
  margin-bottom: 12px;             /* + 80px row gap = 92px */
  font-size: 59px;
}

.detail__heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.185em;
  text-transform: uppercase;
}

.detail__text {
  margin: 0;
  text-align: justify;
}

/* --- Information: the venue ------------------------------------ */

/* Short centred hairline between Detaljer and the venue. */
.divider {
  width: min(240px, 100% - 48px);
  height: 0;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

.venue {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 380px);
  justify-content: center;
  align-items: center;
  column-gap: 96px;
  padding: 176px 24px;
}

.venue__media {
  position: relative;
  aspect-ratio: 3 / 2;
}

.venue__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue .eyebrow {
  margin-bottom: 48px;
}

.venue__name {
  margin-bottom: 32px;
  font-size: 51px;
  text-align: left;
}

.venue__lead {
  margin: 0;
}

.venue__place {
  margin: 24px 0 0;
  font-weight: 600;
}

.venue__link {
  display: inline-block;
  margin-top: 24px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Rasbokils kyrka and Årby slott in running text open Google Maps. */
.place-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}

.place-link:hover,
.place-link:focus-visible {
  text-decoration-thickness: 1px;
}

.venue__link:hover,
.venue__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* --- Feature band (hotel) ------------------------------------- */
/* Full-bleed red band: illustration left, copy right.            */

.feature {
  padding-block: 174px 166px;
  background: var(--wine);
  color: var(--paper);
}

.feature__inner {
  display: grid;
  grid-template-columns: 466px 1fr;   /* the hotel drawing, 1.5 × the 311px design */
  column-gap: 96px;
  align-items: center;
  max-width: calc(1016px + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.feature__art {
  display: block;
  width: min(220px, 100%);
  height: auto;
  justify-self: center;
}

.feature__title {
  margin-bottom: 48px;
  font-size: 45px;
  text-align: left;
}

.feature__text {
  margin: 0;
}

.feature__text strong {
  font-weight: 600;
}

.feature__text--note {
  margin-top: 14px;
}

.feature__booking {
  margin-top: 28px;
}

.feature__place {
  margin: 48px 0 0;
}

.feature__place-name,
.feature__place-address {
  display: block;
}

.feature__place-name {
  font-weight: 600;
}

/* --- Photo band (gifts) --------------------------------------- */
/* Full-bleed photo with the flower card centred on top.          */

.photo-band {
  position: relative;
  display: grid;
  place-items: center;
  padding: 104px 24px 132px;
  overflow: hidden;
}

.photo-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flower-card {
  position: relative;
  display: grid;
  width: min(774px, 100%);
}

.flower-card > * {
  grid-area: 1 / 1;
}

.flower-card__shape {
  display: block;
  width: 100%;
  height: auto;
}

.flower-card__content {
  align-self: center;
  justify-self: center;
  max-width: 408px;
  padding-top: 54px;   /* centred box: shifts the copy 27px below the flower's middle */
  text-align: center;
}

.flower-card__title {
  margin-bottom: 48px;
  font-size: 49px;
}

.flower-card__content .eyebrow {
  margin-bottom: 36px;
}

.flower-card__text {
  max-width: min(360px, 95%);
  margin: 0 0 24px;
  margin-inline: auto;
}

.flower-card__content .contact__links {
  margin-top: 0;
}

/* --- Button ----------------------------------------------------- */

.button {
  display: inline-block;
  padding: 9px 24px;
  background: var(--wine);
  color: var(--paper);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  background: color-mix(in srgb, var(--wine) 85%, #000);
}

.button--white {
  background: #fff;
  color: var(--wine);
}

.button--white:hover,
.button--white:focus-visible {
  background: var(--paper);
}

.button--white:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* --- FAQ -------------------------------------------------------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


.faq__list {
  width: 100%;
  max-width: 752px;
  margin-inline: auto;
  border-top: 1px solid var(--rule);
  text-align: left;
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26.5px 2px 26.5px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.185em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

/* Plus that collapses to a minus when the item is open. */
.faq__question::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.25px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.25px 14px no-repeat;
}

.faq__item[open] .faq__question::after {
  background-size: 14px 1.25px, 0 0;
}

.faq__question:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.faq__answer {
  margin-top: -6px;
  padding: 0 0 28px;
}

.faq__answer p {
  margin: 0;
}

.faq__answer a {
  color: inherit;
  text-underline-offset: 2px;
}

/* --- Home: countdown, photo, names, date ------------------------ */
/* Figma 1429:2. Column of 879px, 80px gaps, centred in the screen. */

/* Nav + countdown/photo/date fill the first screen. */
.home-hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 64px 24px 96px;
  overflow-x: clip;   /* the tilted names may reach past narrow screens */
  text-align: center;
}

.home__countdown,
.home__date {
  margin: 0;
  font-size: 16px;
  line-height: 42px;
  text-transform: uppercase;
}

.home__countdown {
  min-height: 42px;   /* holds the line before the script fills it in */
  letter-spacing: 0.2em;     /* 3.2px */
  text-indent: 0.2em;        /* re-centres past the trailing letter-space */
  font-variant-numeric: tabular-nums;
}

.home__date {
  letter-spacing: 0.14em;    /* 2.24px */
  text-indent: 0.14em;
}

.home__photo {
  position: relative;
  width: min(299px, 100%);
  aspect-ratio: 299 / 419;
}

/* Photos roll one by one in the frame: hard cuts, no transition.
   The previous photo (.is-prev) stays visible under the active one, so the
   background never flashes through while a new photo is being painted. */
.photo-roll {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.photo-roll__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

.photo-roll__img.is-active,
.photo-roll__img.is-prev {
  visibility: visible;
}

.photo-roll__img.is-active {
  z-index: 1;
}

/* Tilted script names laid across the top of the photo. */
.home__names {
  position: absolute;
  top: 14.03%;               /* 58.8px of 419 */
  left: 50%;
  display: flex;
  gap: 0.4324em;             /* 24.43px at 56.49px */
  margin: 0;
  font-family: "En Clair", "Snell Roundhand", cursive;
  font-size: clamp(34px, 9.6vw, 56.49px);
  font-weight: 400;
  line-height: 1.554;        /* 87.8 / 56.49 */
  white-space: nowrap;
  z-index: 4;               /* above the photo pile */
  /* sits 7.9px left of centre in Figma (0.14em) */
  transform: translate(calc(-50% - 0.14em), -50%) rotate(-5.38deg);
}

.home__names-pair {
  display: flex;
  gap: 0.2162em;             /* 12.21px at 56.49px */
}

/* --- Home: about band ------------------------------------------ */
/* Red band under the first screen: swans, a short note, signature. */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 144px 24px 160px;
  background: var(--wine);
  color: var(--paper);
  text-align: center;
}

.about__art {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 56px;
}

.about__text {
  max-width: 540px;
  margin: 0;
}

.about__signature {
  margin: 36px 0 0;
  font-family: "En Clair", "Snell Roundhand", cursive;
  font-size: 30px;
  line-height: 1.3;
}

/* --- Information: toastmadame contact ------------------------- */

.contact {
  padding: 0 24px 160px;   /* follows the FAQ, which already has 160px below */
  margin-top: -32px;
  text-align: center;
}

.contact .script-title--lg {
  margin-bottom: 32px;
}

.contact__text,
.contact__links {
  max-width: 480px;
  margin: 0 auto;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 24px;
  font-weight: 600;
}

.contact__links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
}

.contact__links a:hover,
.contact__links a:focus-visible {
  text-decoration-thickness: 1px;
}

/* --- Home: at a glance ----------------------------------------- */
/* Four key facts in a 2×2 grid, split by a hairline cross.        */

.glance {
  padding: 144px 24px 160px;
  text-align: center;
}

.glance__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.glance__item {
  padding: 40px 24px;
}

.glance__item:nth-child(odd) {
  border-right: 0.5px solid var(--rule);
}

.glance__item:nth-child(-n + 2) {
  border-bottom: 0.5px solid var(--rule);
}

.glance__label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.glance__value {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- The day: coming soon --------------------------------------- */
/* Placeholder until the schedule is set; fills the screen.          */

.soon-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 120px;
  text-align: center;
}

.soon__art {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin-bottom: 96px;
}

.soon__text {
  max-width: 480px;
  margin: 0;
}

/* Thank-you page after OSA: script title instead of artwork. */
.soon .script-title {
  margin-bottom: 40px;
}

.soon__text + .soon__text {
  margin-top: 24px;
}

/* --- Footer ------------------------------------------------------ */

.site-footer {
  padding-inline: 64px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 28px 0 32px;
  border-top: 0.5px solid var(--rule-nav);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__identity {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__lang {
  grid-column: 3;
  justify-self: end;
  padding-block: 8px;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.site-footer__lang:hover,
.site-footer__lang:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* No divider straight under the red band. */
.about + .site-footer .site-footer__inner {
  border-top: 0;
}

.site-footer__names {
  margin: 0;
  white-space: nowrap;
}

.site-footer__dot {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

.site-footer__since {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* --- The day: schedule ------------------------------------------ */

.schedule {
  padding: 128px 24px 160px;
  text-align: center;
}

.schedule__list {
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  text-align: left;
}

.schedule__item {
  display: grid;
  grid-template-columns: 189px 1fr;
  align-items: center;
  padding: 25.7px 0 23.3px;
  border-bottom: 1px solid var(--rule);
}

.schedule__time {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.12em;
}

.schedule__name {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.schedule__place,
.schedule__note {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 26px;
}

.schedule__place {
  margin-top: 3.6px;
}

.schedule__note {
  margin-top: 6.7px;
}

/* --- RSVP ------------------------------------------------------- */
/* Two columns: intro left (deadline pinned to the bottom), form right. */

/* The form is asked a step at a time, so the page can be shorter than
   the screen: fill it, so the footer stays at the bottom. */
.rsvp-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.rsvp {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 487px;
  align-content: start;
  column-gap: 96px;
  width: 100%;
  max-width: calc(1245px + 48px);
  margin-inline: auto;
  padding: 144px 24px 144px;
}

.rsvp__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-block: 34px;   /* sits inside the form's top and bottom, as in the mock */
}

.rsvp .eyebrow {
  margin-bottom: 16px;
}

.rsvp__title {
  max-width: 440px;   /* two lines: "Vill du fira / med oss?" */
  margin-bottom: 40px;
  font-size: 59px;
  line-height: 1.2;
  text-align: left;
}

.rsvp__lead {
  max-width: 400px;
  margin: 0;
}

.rsvp__deadline {
  margin: 0;
}

.rsvp__deadline-date {
  display: block;
  margin-top: 10px;
  font-weight: 700;
}

/* --- Form fields ----------------------------------------------- */
/* Same voice as the rest of the site: small tracked capitals for the
   labels (as in "I korthet") and hairline underlines instead of boxes. */

.field + .field {
  margin-top: 32px;
}

.field__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field__control {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--wine);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.04em;
}

.field__control::placeholder {
  color: rgb(100 0 24 / 0.4);
  opacity: 1;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field__control:focus {
  border-color: var(--wine);
  outline: none;
}

/* Keyboard focus: the underline doubles. */
.field__control:focus-visible {
  box-shadow: 0 1px 0 var(--wine);
}

/* Native select, restyled: thin CSS chevron on the right. */
.field__select {
  position: relative;
}

.field__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 7px;
  height: 7px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__control--select {
  padding-right: 28px;
  appearance: none;
  cursor: pointer;
}

/* "Välj…" reads like the other placeholders until something is chosen. */
.field__control--select:has(option[value=""]:checked) {
  color: rgb(100 0 24 / 0.4);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field__control--select option {
  color: var(--wine);
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
}

/* The message gets a hairline frame: an underline alone reads as one line. */
.field__control--area {
  min-height: 112px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  resize: vertical;
}

/* --- RSVP steps ------------------------------------------------ */
/* One step at a time: start, one page per person, summary. rsvp.js
   shows the current step and hides the rest.                         */

.rsvp__form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Legends don't take margins reliably; floating them does. */
.rsvp__form legend {
  float: left;
  width: 100%;
  padding: 0;
}

.rsvp__form legend + *,
.rsvp__q,
.rsvp__person-details {
  clear: both;   /* also when the question right under the legend is hidden */
}

/* "Steg 2 av 5", like the small labels in "I korthet". */
.rsvp__progress {
  margin: 0 0 20px;   /* room for the script capitals below */
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Each page is named in the script face, like the site's section titles. */
.rsvp__step-title {
  margin: 0 0 40px;
  font-family: "En Clair", "Snell Roundhand", cursive;
  font-size: clamp(34px, 9vw, 45px);   /* "Sammanfattning" fits a phone */
  font-weight: 400;
  line-height: 1.1;
}

.rsvp__step-title:focus {
  outline: none;
}

.rsvp__form .rsvp__person-details {
  margin-top: 32px;
}

.rsvp__contact + .field {
  margin-top: 32px;
}

/* Answer buttons: radios with a hairline frame, filled in the site's red
   when chosen, lettered like the buttons. */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.choice__option {
  position: relative;
  flex: 1 1 auto;
}

.choice__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__option span {
  display: block;
  padding: 11px 16px;
  border: 1px solid var(--rule);
  font-size: 13px;
  line-height: 24px;
  letter-spacing: 0.2em;
  text-align: center;
  text-indent: 0.2em;   /* re-centres past the trailing letter-space */
  text-transform: uppercase;
  white-space: nowrap;
}

.choice__option:hover span {
  border-color: var(--wine);
}

.choice__option input:checked + span {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--paper);
}

.choice__option input:focus-visible + span {
  outline: 1px solid var(--wine);
  outline-offset: 2px;
}

/* The little guests under the Nästa button on the first step: one per person,
   side by side, shrinking to fit when there are many. Close together so
   the first two can touch glasses. */
.rsvp__people {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;   /* under the Nästa button */
  gap: 2px;
  margin-top: 40px;
}

.rsvp__people:empty,
.rsvp__people[hidden] {
  display: none;
}

/* Two columns: the form fills the row and the guests stand at its foot, on
   the same line as "Svara senast [datum]" (the intro's 34px inset). */
@media (min-width: 961px) {
  form.rsvp__form {
    display: flex;
    flex-direction: column;
    padding-bottom: 34px;
  }

  .rsvp__people {
    margin-top: auto;
    padding-top: 40px;
  }
}

.rsvp__people-figure {
  flex: 0 1 44px;
  min-width: 0;
  height: auto;
  animation: rsvp-guest-in 0.4s ease-out both;
}

@keyframes rsvp-guest-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp__people-figure {
    animation: none;
  }
}

/* Summary: a ruled list like Frågor och svar, one row per person. */
.rsvp__summary {
  margin: 0 0 48px;
  border-top: 1px solid var(--rule);
}

.rsvp__summary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.rsvp__summary-name {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp__summary-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Text links, like "Hitta hit" on Information. */
.rsvp__edit,
.rsvp__back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--wine);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp__edit:hover,
.rsvp__edit:focus-visible,
.rsvp__back:hover,
.rsvp__back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.rsvp__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
}

.rsvp__nav .button {
  margin-left: auto;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* .button sets display, which would otherwise beat [hidden]. */
.rsvp__nav [hidden] {
  display: none;
}

.rsvp__q + .rsvp__q {
  margin-top: 32px;
}

/* Förnamn and Efternamn side by side; stacked on a phone. */
@media (min-width: 641px) {
  .rsvp__name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .rsvp__name .field + .field {
    margin-top: 0;
  }
}

/* "Samma färd för alla": a small square box under the bus choice. */
.rsvp__together {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.rsvp__together[hidden] {
  display: none;
}

/* Bus page (buss.html): loading, saved and error messages, as body copy. */
.buss__status {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buss__status a {
  color: inherit;
  text-underline-offset: 3px;
}

.buss__status .rsvp__back {
  display: block;
  margin-top: 24px;
}

#buss-form .field + .field,
#buss-form .rsvp__together {
  margin-top: 32px;
}

.rsvp__together input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--wine);
  background: transparent;
  cursor: pointer;
}

/* Ticked: a smaller filled square inside, in the site's red. */
.rsvp__together input::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--wine);
  transform: scale(0);
}

.rsvp__together input:checked::before {
  transform: scale(1);
}

.rsvp__together input:focus-visible {
  outline: 1px solid var(--wine);
  outline-offset: 2px;
}

/* --- RSVP on a phone: one question per screen ------------------- */
/* rsvp.js sets .is-paged below 640px and marks the question on screen
   .is-current; .is-asking on .rsvp hides the intro after screen one. */

.rsvp__form.is-paged .rsvp__q:not(.is-current) {
  display: none;
}

.rsvp__form.is-paged .rsvp__q,
.rsvp__form.is-paged .rsvp__person-details {
  margin-top: 0;
}

.rsvp.is-asking .rsvp__intro {
  display: none;
}

/* Alone on the screen, the question reads as a heading. */
.rsvp__form.is-paged .field__label {
  margin-bottom: 12px;
  color: var(--wine);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.185em;
}

.rsvp__form.is-paged .rsvp__summary {
  margin-bottom: 0;
}

/* Next is just the arrow. */
.rsvp__form.is-paged .rsvp__next-text {
  display: none;
}

.rsvp__form.is-paged #rsvp-next {
  padding-inline: 28px;
  font-size: 20px;
}

/* --- Tablet: stack the feature band ---------------------------- */

@media (max-width: 960px) {
  /* Venue stacks: photo, then text. */
  .venue {
    grid-template-columns: minmax(0, 560px);
    row-gap: 40px;
    padding-block: 96px;
  }

  /* Narrow columns open rivers when justified. */
  .detail__text {
    text-align: left;
  }

  .feature {
    padding-block: 96px;
  }

  .feature__inner {
    grid-template-columns: 1fr;
    row-gap: 56px;
    max-width: calc(562px + 48px);
  }

  .rsvp {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
    max-width: calc(560px + 48px);
    padding-top: 112px;
  }

  .rsvp__intro {
    padding-block: 0;
  }

  .rsvp__title,
  .rsvp__lead {
    max-width: none;
  }
}

/* --- Small screens --------------------------------------------- */

@media (max-width: 640px) {
  .detail__text,
  .feature__text,
  .feature__place,
  .flower-card__text,
  .rsvp__lead,
  .rsvp__deadline,
  .about__text,
  .soon__text,
  .contact__text,
  .contact__links,
  .venue__lead,
  .venue__place,
  .buss__status {
    font-size: 13px;
    line-height: 22px;
  }

  .glance__value,
  .home__countdown,
  .home__date,
  .rsvp__summary-name {
    font-size: 15px;
  }

  .tagline {
    font-size: clamp(15px, 3.4vw, 21px);
  }

  .script-title {
    font-size: 51px;
  }

  .venue__name {
    font-size: 46px;
  }

  .rsvp__step-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  .site-header {
    padding-inline: 16px;
  }

  .site-nav__list {
    flex-wrap: wrap;
    gap: 16px calc(clamp(16px, 5vw, 32px) + 6px);
    padding: 16px 0 18px;
  }

  .site-nav__link {
    letter-spacing: 0.1em;
  }

  .details {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    padding-top: 64px;
  }

  .details .script-title {
    margin-bottom: 8px;
    font-size: 40px;
  }

  .feature {
    padding-block: 72px;
  }

  .feature__inner {
    row-gap: 72px;
  }

  .feature__art {
    width: min(120px, 100%);
    justify-self: start;
  }

  .feature__title {
    margin-bottom: 32px;
    font-size: 40px;
  }

  .feature__place {
    margin-top: 36px;
  }

  /* The flower is wider than the screen here and crops at the
     sides, so its middle stays big enough for the copy. */
  .photo-band {
    padding: 64px 0 80px;
  }

  .flower-card {
    width: 680px;
    justify-self: start;
    margin-inline: calc((100% - 680px) / 2);   /* centre while overflowing */
  }

  .flower-card__content {
    max-width: min(300px, calc(100vw - 64px));
    padding-top: 40px;
  }

  .flower-card__title {
    margin-bottom: 28px;
    font-size: 40px;
  }

  .flower-card__text {
    margin-bottom: 16px;
  }

  .flower-card__content .contact__links {
    flex-direction: column;
    gap: 8px;
  }

  .flower-card__content .contact__links span {
    display: none;
  }

  .schedule {
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .rsvp {
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .rsvp__title {
    max-width: 320px;
    margin-bottom: 28px;
    font-size: 40px;
  }

  .about {
    padding-block: 88px 96px;
  }

  .about__art {
    width: 100px;
    margin-bottom: 40px;
  }

  .about__signature {
    font-size: 18px;
  }

  .glance {
    padding-block: 88px 96px;
  }

  .contact {
    padding-bottom: 96px;
  }

  .soon {
    padding-block: 64px 80px;
  }

  .soon__art {
    width: 180px;
    margin-bottom: 64px;
  }

  .glance__grid {
    grid-template-columns: 1fr;
  }

  .glance__item {
    padding-block: 28px;
  }

  .glance__item:nth-child(odd) {
    border-right: 0;
  }

  .glance__item:not(:last-child) {
    border-bottom: 0.5px solid var(--rule);
  }

  .site-footer {
    padding-inline: 16px;
  }

  .site-footer__inner {
    font-size: clamp(10px, 2.5vw, 12px);
  }

  .home {
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .home__countdown,
  .home__date {
    line-height: 32px;
  }

  .home__countdown {
    min-height: 32px;
  }

  .schedule__item {
    grid-template-columns: 64px 1fr;
    align-items: start;
    padding: 22px 0 20px;
  }

  .schedule__time {
    padding-top: 2px;   /* sits on the event name's line */
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .schedule__name {
    font-size: 18px;
    line-height: 26px;
  }

  .schedule__place,
  .schedule__note {
    font-size: 14px;
    line-height: 23px;
  }

  .script-title--lg {
    margin-bottom: 36px;
    font-size: 40px;
    line-height: 1.15;
  }

  .faq__question {
    padding-block: 20px;
    font-size: 13px;
    line-height: 22px;
  }

  .faq__answer {
    margin-top: -4px;
    padding-bottom: 24px;
    font-size: 12px;
    line-height: 22px;
  }
}
