/* Le Shame Reset — waitlist
   Quiet apothecary. Cream, black type, space. */

:root {
  --bg: #efebe4;
  --bg-deep: #e7e2d9;
  --ink: #1c1b19;
  --ink-soft: #5c5852;
  --line: #c9c2b6;
  --line-strong: #1c1b19;
  --focus: #1c1b19;
  --error: #7a2e24;
  --pad: clamp(1.35rem, 5vw, 3.25rem);
  --measure: 34rem;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Language visibility — both languages live in the DOM */
.lang-en,
.lang-fr {
  display: none;
}

html[data-lang="en"] .lang-en,
html[data-lang="fr"] .lang-fr {
  display: revert;
}

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

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 30;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.skip:focus {
  top: 0.75rem;
}

.frame {
  position: fixed;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 20;
  /* Opaque matte outside the border so scrolling text clips at the line,
     instead of sliding under it. */
  box-shadow: 0 0 0 100vmax var(--bg);
}

@media (min-width: 720px) {
  .frame {
    inset: 16px;
  }
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--pad) + 0.4rem) calc(var(--pad) + 0.25rem) 0;
  max-width: 72rem;
  margin: 0 auto;
}

.wordmark {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.2rem 0;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

html[data-lang="en"] .lang-btn[data-lang="en"],
html[data-lang="fr"] .lang-btn[data-lang="fr"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--ink);
}

.lang-rule {
  display: block;
  width: 1px;
  height: 0.7rem;
  background: var(--line);
}

/* Main column */
main {
  width: min(var(--measure), 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 12vw, 6.5rem) var(--pad) 4rem;
}

.hero {
  text-align: center;
}

.bottle {
  display: block;
  width: 36px;
  height: 72px;
  margin: 0 auto 1.75rem;
  color: var(--ink);
}

.kicker {
  margin: 0 0 1.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.55rem, 9.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.sub {
  margin: 0 auto 1.85rem;
  max-width: 22em;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.mantra {
  margin: 0 0 2.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.35;
}

.lede {
  margin: 0 0 2.75rem;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

/* Form */
.waitlist {
  margin: 0 0 2.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.waitlist fieldset {
  border: 0;
  margin: 0;
  padding: 1.6rem 0 1.1rem;
}

.waitlist legend {
  padding: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 100%;
  float: none;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 0.95rem 0.15rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.choice:first-of-type {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice-mark {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.choice input:checked + .choice-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--ink);
  border-radius: 50%;
}

.choice input:focus-visible + .choice-mark {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.choice-label {
  font-size: 1rem;
  font-weight: 400;
}

.choice:hover .choice-label {
  letter-spacing: 0.02em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.75rem 0 0;
}

.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input[type="email"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  caret-color: var(--ink);
}

.field input[type="email"]::placeholder {
  color: #a39c92;
  font-weight: 300;
}

.field input[type="email"]:focus {
  outline: none;
  border-bottom-width: 2px;
  padding-bottom: calc(0.7rem - 1px);
}

.form-error {
  margin: 1rem 0 0;
  min-height: 1.3em;
  font-size: 0.9rem;
  color: var(--error);
}

.form-error[hidden] {
  display: none;
}

.waitlist button[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 1.75rem 0 0;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

.waitlist button[type="submit"]:hover {
  background: #000;
  border-color: #000;
}

.waitlist button[type="submit"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.waitlist button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: wait;
}

.waitlist[hidden] {
  display: none;
}

/* Thank-you */
.thanks {
  margin: 0 0 2.25rem;
  padding: 1.75rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.thanks[hidden] {
  display: none;
}

.thanks:focus,
.thanks:focus-visible {
  outline: none;
}

.thanks p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
}

/* Hide both answers; language rules (.lang-en { display: revert })
   are more specific than a two-class hide, so match them here. */
html[data-lang="en"] .thanks .thanks-yes.lang-en,
html[data-lang="en"] .thanks .thanks-no.lang-en,
html[data-lang="fr"] .thanks .thanks-yes.lang-fr,
html[data-lang="fr"] .thanks .thanks-no.lang-fr {
  display: none;
}

html[data-lang="en"] .thanks[data-answer="yes"] .thanks-yes.lang-en,
html[data-lang="fr"] .thanks[data-answer="yes"] .thanks-yes.lang-fr,
html[data-lang="en"] .thanks[data-answer="no"] .thanks-no.lang-en,
html[data-lang="fr"] .thanks[data-answer="no"] .thanks-no.lang-fr {
  display: block;
}

.disclaimer {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.site-footer {
  width: min(var(--measure), 100%);
  margin: 0 auto;
  padding: 0 var(--pad) calc(var(--pad) + 1.25rem);
}

.site-footer p {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

:focus:not(:focus-visible) {
  outline: none;
}

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

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

@media print {
  .frame,
  .skip,
  .waitlist,
  .thanks {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
