/* House of Rahel waitlist
   Palette: Bone #FAF6F0, Ink #1A1A1A, Signature Red #B3122E (thin line only) */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-italic-400.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bone: #FAF6F0;
  --ink: #1A1A1A;
  --red: #B3122E;
  --stone: #E6E0D6;
  --silver: #D6D6D3;
  --taupe: #8A8178;
  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
}

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

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bone);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(34rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 2.5rem;
}

.page--inner { justify-content: flex-start; padding-top: 2.25rem; }

/* Wordmark */
.mark {
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.mark:hover { color: var(--ink); }

.mark-of {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 5.5vw, 2.15rem);
  line-height: 1;
  margin: 0;
}

.mark-name {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.55rem, 11vw, 4.15rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  line-height: 1.05;
  margin: 0.15rem 0 0;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 7.6rem;
  height: 1.4px;
  background: var(--red);
  border: 0;
  margin: 1.05rem auto 0;
}

.hero {
  text-align: center;
  margin-top: 2.1rem;
}

.headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.lede {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Form */
.form {
  margin: 2rem auto 0;
  max-width: 24.5rem;
  text-align: left;
}

.field { margin: 0 0 1.1rem; }

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.45rem;
}

.input {
  width: 100%;
  appearance: none;
  background: var(--bone);
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--silver);
  border-radius: 0;
  padding: 0.7rem 0.1rem 0.65rem;
  font-family: var(--font-body);
  font-size: 16px; /* prevent iOS zoom */
  line-height: 1.4;
}

.input::placeholder { color: #b0a89f; }

.input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.choice {
  appearance: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--silver);
  padding: 0.7rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}

.choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

.choice:focus-visible { outline-offset: 2px; }

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot { margin: 1rem 0 0; min-height: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  padding: 0.95rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn:hover { background: #000; }

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

a.btn {
  text-decoration: none;
  color: var(--bone);
}

a.btn:hover {
  color: var(--bone);
}

.fine {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--taupe);
}

.alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--red);
  color: var(--ink);
  font-size: 0.9rem;
}

.alert[hidden] { display: none; }

/* Inner pages */
.inner {
  text-align: center;
  margin-top: 2.4rem;
}

.inner h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.inner p {
  margin: 0 auto 1rem;
  max-width: 28rem;
}

.inner p:last-child { margin-bottom: 0; }

.privacy {
  text-align: left;
  margin-top: 2.4rem;
  padding-bottom: 2rem;
}

.privacy h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  text-align: center;
  margin: 0 0 1.6rem;
}

.privacy h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 1.6rem 0 0.5rem;
}

.privacy p { margin: 0 0 0.85rem; }

.privacy a { color: var(--ink); }

/* Footer */
.footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  text-align: center;
}

.footer-rule {
  display: block;
  width: 100%;
  height: 1.2px;
  background: var(--red);
  border: 0;
  margin: 0 0 1.15rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.footer-nav a {
  color: var(--taupe);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--ink); }

.footer-nav .ig-handle {
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 720px) {
  .page { padding-top: 4.5rem; padding-bottom: 3rem; }
  .hero { margin-top: 2.4rem; }
  .form { margin-top: 2.25rem; }
}
