/* £10 welcome pop-up. Written by hand, not generated: tools/build-hub.mjs only
   links it on the pages listed in hub/site.json under welcomePopup.
   Look matches the site: #14100c panel, Cinzel headline and label, #d9b988 gold. */

html.rs-welcome-lock { overflow: hidden; }

dialog.rs-welcome {
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  max-height: 92dvh;
  border: 0;
  border-top: 1px solid #3a2a1a;
  background: #14100c;
  color: #f4f1ec;
  font-family: "Archivo", system-ui, sans-serif;
  overflow: hidden;
}
dialog.rs-welcome[open] {
  display: flex;
  flex-direction: column;
}
dialog.rs-welcome::backdrop { background: rgba(5, 4, 3, 0.78); }

.rs-welcome__media {
  position: relative;
  flex: none;
  height: 150px;
  overflow: hidden;
  background: #0a0807;
}
.rs-welcome__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%; /* the whole wall sign, with the tops of the tubs */
  display: block;
}

.rs-welcome__body {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rs-welcome__body[hidden] { display: none; }

.rs-welcome__label {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #d9b988;
}
.rs-welcome__title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  color: #f4f1ec;
  text-wrap: balance;
}
.rs-welcome__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 300;
  color: #c4bfb6;
}
.rs-welcome__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #c4bfb6;
}

.rs-welcome__form { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rs-welcome__field { font-size: 16px; color: #f4f1ec; }
.rs-welcome__input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 18px; /* 16px or more stops iPhones zooming the page */
  background: #0a0807;
  color: #f4f1ec;
  border: 1px solid #b5895a;
  border-radius: 0;
}
.rs-welcome__input::placeholder { color: #8f8a82; }
.rs-welcome__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
  color: #c4bfb6;
}
.rs-welcome__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #d9b988;
}
.rs-welcome a { color: #d9b988; text-underline-offset: 3px; }
.rs-welcome a:hover { color: #f4f1ec; }

.rs-welcome__button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #d9b988;
  color: #0a0807;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.rs-welcome a.rs-welcome__button { color: #0a0807; }
.rs-welcome a.rs-welcome__button:hover,
.rs-welcome__button:hover { background: #f4f1ec; color: #0a0807; }
.rs-welcome__button[disabled] { opacity: 0.6; cursor: progress; }

.rs-welcome__error { margin: 0; font-size: 15px; line-height: 1.4; color: #f2b8a2; }
.rs-welcome__error:empty { display: none; }

.rs-welcome__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #3a2a1a;
  border-radius: 0;
  background: #14100c;
  color: #f4f1ec;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.rs-welcome__close:hover { border-color: #b5895a; color: #d9b988; }

.rs-welcome :focus-visible { outline: 2px solid #f4f1ec; outline-offset: 2px; }
/* The heading is focused by script when the pop-up opens (so a phone keyboard
   does not cover the offer); it is not a control, so it shows no ring. */
.rs-welcome .rs-welcome__title:focus-visible { outline: none; }

/* The honeypot: real people never see or reach it (api/subscribe.js). */
.rs-welcome__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Short phones: a thinner photo and tighter spacing so the button is on screen. */
@media (max-width: 719px) and (max-height: 640px) {
  .rs-welcome__media { height: 96px; }
  .rs-welcome__body { padding: 16px 20px 20px; gap: 10px; }
  .rs-welcome__title { font-size: 26px; }
  .rs-welcome__text { font-size: 16px; }
  .rs-welcome__form { gap: 10px; }
  .rs-welcome__input { height: 48px; }
}

@media (min-width: 720px) {
  dialog.rs-welcome {
    inset: 0;
    margin: auto;
    width: min(880px, calc(100vw - 48px));
    height: fit-content;
    max-height: calc(100dvh - 48px);
    border: 1px solid #3a2a1a;
  }
  dialog.rs-welcome[open] { flex-direction: row; }
  .rs-welcome__media { flex: 0 0 360px; height: auto; min-height: 480px; }
  .rs-welcome__media img { object-position: 56% 50%; } /* centres the wall sign and the right-hand tub */
  /* Centred with auto margins, not justify-content: when the content is taller
     than the box, centring would cut off the top where it cannot be scrolled to. */
  .rs-welcome__body { padding: 48px 48px 40px; gap: 18px; }
  .rs-welcome__body > :first-child { margin-top: auto; }
  .rs-welcome__body > :last-child { margin-bottom: auto; }
  .rs-welcome__label { font-size: 20px; }
  .rs-welcome__title { font-size: 42px; }
  .rs-welcome__text { font-size: 20px; line-height: 1.5; }
  .rs-welcome__field { font-size: 18px; }
  .rs-welcome__input { height: 56px; font-size: 20px; padding: 0 16px; }
  .rs-welcome__consent { font-size: 16px; }
  .rs-welcome__button { min-height: 58px; font-size: 20px; }
  .rs-welcome__note { font-size: 16px; }
}

/* Tablets in portrait: a narrower photo and headline so the headline keeps to two lines. */
@media (min-width: 720px) and (max-width: 900px) {
  .rs-welcome__media { flex-basis: 300px; }
  .rs-welcome__body { padding: 40px 36px; }
  .rs-welcome__title { font-size: 36px; }
}

/* Short screens wider than a phone (a phone on its side, a small browser window):
   less padding and smaller text so most of the form shows without scrolling. */
@media (min-width: 720px) and (max-height: 560px) {
  dialog.rs-welcome { max-height: calc(100dvh - 24px); }
  .rs-welcome__media { min-height: 0; flex-basis: 280px; }
  .rs-welcome__body { padding: 20px 28px; gap: 10px; }
  .rs-welcome__label { font-size: 16px; }
  .rs-welcome__title { font-size: 28px; }
  .rs-welcome__text { font-size: 16px; line-height: 1.4; }
  .rs-welcome__field { font-size: 16px; }
  .rs-welcome__form { gap: 8px; }
  .rs-welcome__input { height: 44px; font-size: 18px; }
  .rs-welcome__consent { font-size: 14px; }
  .rs-welcome__button { min-height: 48px; font-size: 18px; }
  .rs-welcome__note { font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  dialog.rs-welcome[open] { animation: rs-welcome-in 0.28s ease-out; }
  dialog.rs-welcome[open]::backdrop { animation: rs-welcome-fade 0.28s ease-out; }
}
@keyframes rs-welcome-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rs-welcome-fade { from { opacity: 0; } to { opacity: 1; } }
