/* The holding homepage's own parts (server/lib/holding-home.js): the early
   access form, the contact and privacy sections borrowed from the Coming Soon
   page, and the "opens soon" bar. Colours and type come from the homepage's
   own tokens (public-house.css), with fallbacks. */
.holding-join, .holding-support {
  --hj-paper: var(--ph-paper, #f7f3ea); --hj-deep: var(--ph-paper-deep, #eee7d9);
  --hj-ink: var(--ph-ink, #30332a); --hj-olive: var(--ph-olive, #62664b);
  --hj-dark: var(--ph-deep, #3d4232); --hj-line: var(--ph-line, rgb(98 102 75 / .22));
  --hj-serif: var(--sv-serif, 'SV Serif', 'Crimson Text', Georgia, serif);
  --hj-sans: var(--sv-sans, Inter, system-ui, sans-serif);
  color: var(--hj-ink); font-family: var(--hj-sans);
}
.holding-join { background: var(--hj-deep); padding: clamp(6rem, 9vw, 7.5rem) 1.25rem clamp(3.5rem, 7vw, 6rem); scroll-margin-top: 0; }
.holding-join__inner { max-width: 40rem; margin: 0 auto; text-align: center; }
.holding-join h2 { font-family: var(--hj-serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 0 0 1rem; }
.holding-join__lead { font-size: 1.05rem; line-height: 1.6; color: var(--hj-olive); margin: 0 auto 2rem; max-width: 34rem; }
.holding-join__privacy { font-size: .9rem; color: var(--hj-olive); margin: 1.25rem 0 0; }
.holding-join a, .holding-support a { color: var(--hj-dark); text-decoration: underline; text-underline-offset: 3px; }

.holding-join form { display: grid; gap: 1rem; text-align: left; }
.holding-join .visually-hidden, .holding-support .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.holding-join fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.holding-join .join-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.holding-join .join-flap { display: none; }
.holding-join .join-option { position: relative; display: flex; }
.holding-join .join-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
/* Choices: quiet glass pills; the chosen one takes the olive glass fill (home/glass.css tokens). */
.holding-join .join-option span {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.1rem;
  border: 1px solid var(--hg-quiet-border, #fff); border-radius: 999px; background: var(--hg-quiet, rgb(255 255 255 / .46));
  box-shadow: var(--hg-quiet-shadow, none);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
  font-size: .95rem; text-align: center; cursor: pointer; transition: background 180ms ease, box-shadow 180ms ease;
}
.holding-join .join-option input:checked + span { background: var(--hg-fill, var(--hj-dark)); border-color: transparent; box-shadow: var(--hg-shadow, none); color: #fff; font-weight: 600; }
.holding-join .join-option input:focus-visible + span { outline: 2px solid var(--hj-dark); outline-offset: 2px; }
.holding-join .email-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.holding-join .field-box { position: relative; display: flex; flex-direction: column-reverse; }
.holding-join .field-icon, .holding-join .field-tick, .holding-join .send-arrow,
.holding-join .request-spinner, .holding-join .send-envelope { display: none; }
.holding-join .email-label { font-size: .85rem; color: var(--hj-olive); margin-bottom: .35rem; }
.holding-join input[type="email"] {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: .7rem .9rem;
  border: 1px solid var(--hj-line); border-radius: 999px; padding-inline: 1.2rem; background: #fff; color: var(--hj-ink); font: inherit;
}
.holding-join input[type="email"]::placeholder { color: #6f725f; }
.holding-join input[type="email"]:focus-visible { outline: 2px solid var(--hj-dark); outline-offset: 1px; }
/* Send buttons: the app's main glass button (olive pill, top light, sheen on hover). */
.holding-join .submit-button, .holding-support button[type="submit"] {
  position: relative; isolation: isolate; overflow: hidden;
  align-self: end; min-height: 48px; padding: 0 1.6rem; border: 0; border-radius: 999px;
  background: var(--hg-fill, var(--hj-dark)); color: #fff; box-shadow: var(--hg-shadow, none);
  font: 600 .95rem var(--hj-sans); letter-spacing: .02em; cursor: pointer; white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.holding-join .submit-button::before, .holding-support button[type="submit"]::before {
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 -45%; width: 38%;
  transform: skewX(-20deg); background: var(--hg-sheen, none); pointer-events: none; transition: left 600ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .holding-join .submit-button:hover, .holding-support button[type="submit"]:hover { transform: translateY(-1px); }
  .holding-join .submit-button:hover::before, .holding-support button[type="submit"]:hover::before { left: 120%; }
}
.holding-join .submit-button:active, .holding-support button[type="submit"]:active { transform: translateY(1px) scale(.985); box-shadow: var(--hg-shadow-press, none); }
.holding-join .submit-button:focus-visible, .holding-support button[type="submit"]:focus-visible { outline: 3px solid var(--hj-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .holding-join .submit-button, .holding-support button[type="submit"], .holding-join .submit-button::before, .holding-support button[type="submit"]::before { transition: none; transform: none; }
}
.holding-join .form-note, .holding-join .form-status, .holding-join [data-choice-error] { font-size: .9rem; color: var(--hj-olive); margin: 0; }
.holding-join [data-choice-error]:empty, .holding-join .form-status:empty { display: none; }

.holding-support { background: var(--hj-paper); padding: 2.5rem 1.25rem 3rem; }
.holding-support details { max-width: 52rem; margin: 0 auto; border-top: 1px solid var(--hj-line); scroll-margin-top: 5rem; }
.holding-support details:last-child { border-bottom: 1px solid var(--hj-line); }
.holding-support summary { cursor: pointer; padding: 1.25rem 0; font-family: var(--hj-serif); font-size: 1.5rem; min-height: 44px; }
.holding-support summary:focus-visible { outline: 2px solid var(--hj-dark); outline-offset: 2px; }
.holding-support__body { padding: 0 0 2.5rem; line-height: 1.65; }
.holding-support h1, .holding-support h2 { font-family: var(--hj-serif); font-weight: 400; line-height: 1.15; }
.holding-support h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: .5rem 0 1rem; }
.holding-support h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; }
.holding-support .eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hj-olive); margin: 0; }
.holding-support p, .holding-support li { color: var(--hj-ink); }
.holding-support ul { padding-left: 1.4rem; }
.holding-support form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.holding-support label { display: grid; gap: .35rem; font-size: .95rem; }
.holding-support input, .holding-support select, .holding-support textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: .7rem .9rem; font: inherit;
  border: 1px solid var(--hj-line); border-radius: 4px; background: #fff; color: var(--hj-ink);
}
.holding-support textarea { min-height: 9rem; }
.holding-support button[type="submit"] { justify-self: start; }
/* The contact form's trap field for robots stays out of sight, as on the Coming Soon page. */
.holding-support .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* "Opens soon": fixed to the foot of the window, with room left under the page. */
body { padding-bottom: 3.25rem; }
.opening-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: #3f4a2e; color: #f6f1e6;
  font: 500 15px/1.4 Inter, system-ui, sans-serif; text-align: center;
  box-shadow: 0 -6px 20px rgb(30 26 18 / .18);
}
.opening-bar p { margin: 0; }
.opening-bar__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #f6f1e6; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.opening-bar__link:hover { color: #fff; }
.opening-bar__link:focus-visible { outline: 2px solid #f6f1e6; outline-offset: 2px; border-radius: 2px; }

@media (max-width: 640px) {
  body { padding-bottom: 5.5rem; }
  .holding-join .join-toggle, .holding-join .email-row { grid-template-columns: 1fr; }
}

/* The photographs end where the "opens soon" bar begins, so the first screen shows them whole,
   and the cookie choices sit above the bar rather than over it. */
:root { --bar-h: 3.25rem; }
@media (max-width: 640px) { :root { --bar-h: 5.75rem; } }
.hero { min-height: calc(100svh - var(--bar-h)); }
body .svc { bottom: calc(var(--bar-h) + 12px); }
@media (max-width: 640px) {
  .hero-controls { left: auto; right: 20px; }
}
