:root {
  --background: #fbfbfb;
  --ink: #2d1a14;
  --divider: #c0bab8;
  --black: #000000;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: 'Instrument Sans', Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--background);
}

main {
  flex: 1 1 auto;
  min-height: 0;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  flex: 0 0 136px;
  align-items: center;
  min-height: 136px;
  padding: 36px clamp(28px, 2.9vw, 50px);
  border-bottom: 1px solid var(--divider);
}

.wordmark {
  display: block;
  width: 230px;
  transform: translateY(5px);
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: start center;
  padding: 115px 28px 110px;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
  text-align: center;
}

.hero-content {
  width: min(100%, 1192px);
}

h1 {
  max-width: 1055px;
  margin: 0 auto;
  font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
  font-size: clamp(4rem, 5.79vw, 6.25rem);
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}

.hero-description {
  max-width: 1192px;
  margin: 39px auto 0;
  font-size: clamp(1.25rem, 1.74vw, 1.875rem);
  line-height: 1.2;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 433px) 284px;
  width: min(100%, 717px);
  min-height: 80px;
  margin: 53px auto 0;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 80px;
  background: var(--background);
}

.waitlist-form:focus-within {
  outline: 3px solid rgb(45 26 20 / 18%);
  outline-offset: 4px;
}

.waitlist-form input[type='email'] {
  min-width: 0;
  padding: 0 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.5625rem;
}

.waitlist-form input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.waitlist-form button {
  min-width: 284px;
  padding: 18px 28px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 1.875rem;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.waitlist-form button:hover {
  background: var(--black);
}

.waitlist-form button:active {
  transform: scale(0.985);
}

.waitlist-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.waitlist-note,
.form-status {
  max-width: 1192px;
  margin: 50px auto 0;
  font-size: 1.5625rem;
  line-height: 1.2;
}

.form-status:empty {
  display: none;
}

.form-status[data-state='error'] {
  color: #9c2f20;
}

.site-footer {
  display: flex;
  flex: 0 0 192px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 0;
  padding: 52px clamp(28px, 2.9vw, 50px) 51px;
}

.footer-connect > p {
  margin: 0;
  font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.legal-links {
  display: flex;
  flex: 0 0 auto;
  gap: 24px;
  padding-bottom: 2px;
  font-size: 1rem;
}

.legal-links a,
.legal-nav a,
.legal-footer a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-links a:hover,
.legal-nav a:hover,
.legal-footer a:hover {
  text-decoration-thickness: 2px;
}

.legal-links a:focus-visible,
.legal-nav a:focus-visible,
.legal-footer a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: fit-content;
  min-height: 33px;
  margin-top: 15px;
}

.icon-link {
  color: var(--ink);
  text-decoration: none;
}

.email-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.copy-email {
  width: 6.6em;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1.5625rem;
  line-height: 1.2;
  text-align: left;
}

.icon-link {
  display: block;
  line-height: 0;
}

.email-icon-link img {
  display: block;
  width: 38px;
  height: 31px;
}

.copy-email:focus-visible,
.icon-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 5px;
}

.social-pair {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 75px;
  height: 33px;
}

.social-pair > img {
  display: block;
  width: 75px;
  height: 33px;
}

.social-target {
  position: absolute;
  top: -5px;
  height: 43px;
  border-radius: 5px;
}

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

.instagram-target {
  left: -5px;
  width: 40px;
}

.tiktok-target {
  right: -5px;
  width: 35px;
}

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

@media (min-width: 721px) and (max-height: 1000px) {
  .site-header {
    flex-basis: clamp(88px, 11vh, 110px);
    min-height: 0;
    padding-block: 18px;
  }

  .wordmark {
    width: clamp(165px, 14vw, 205px);
    transform: none;
  }

  .hero {
    place-items: center;
    padding: clamp(22px, 3.5svh, 38px) 28px;
  }

  h1 {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
  }

  .hero-description {
    max-width: 980px;
    margin-top: 20px;
    font-size: clamp(1rem, 1.55vw, 1.35rem);
  }

  .waitlist-form {
    grid-template-columns: minmax(0, 380px) 240px;
    width: min(100%, 620px);
    min-height: 62px;
    margin-top: 26px;
  }

  .waitlist-form input[type='email'] {
    padding-inline: 34px;
    font-size: 1.15rem;
  }

  .waitlist-form button {
    min-width: 240px;
    padding: 14px 24px;
    font-size: 1.3rem;
  }

  .waitlist-note,
  .form-status {
    margin-top: 20px;
    font-size: 1rem;
  }

  .site-footer {
    flex-basis: clamp(122px, 15vh, 145px);
    padding: 18px clamp(28px, 2.9vw, 50px);
  }

  .footer-connect > p {
    font-size: 1.5rem;
  }

  .social-links {
    margin-top: 10px;
  }

  .copy-email {
    font-size: 1.1rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-basis: 82px;
    min-height: 0;
    padding: 14px 22px;
  }

  .wordmark {
    width: 150px;
    transform: none;
  }

  .hero {
    min-height: 0;
    place-items: center;
    padding: 18px 22px;
  }

  h1 {
    font-size: clamp(2.35rem, 11.3vw, 2.75rem);
    line-height: 1;
  }

  .hero-description {
    margin-top: 18px;
    font-size: 0.97rem;
    line-height: 1.18;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 20px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 8px;
  }

  .waitlist-form:focus-within {
    outline: 0;
  }

  .waitlist-form input[type='email'],
  .waitlist-form button {
    width: 100%;
    min-height: 52px;
    border-radius: 26px;
    font-size: 1rem;
  }

  .waitlist-form input[type='email'] {
    padding: 0 24px;
    border: 1px solid var(--divider);
    background: var(--white);
  }

  .waitlist-form button {
    min-width: 0;
    padding: 12px 24px;
  }

  .waitlist-note {
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .site-footer {
    flex-direction: column;
    flex-basis: 128px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    min-height: 0;
    padding: 12px 22px;
  }

  .footer-connect > p {
    font-size: 1.45rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    margin-top: 10px;
  }

  .copy-email {
    font-size: 1.15rem;
  }

  .legal-links {
    gap: 18px;
    padding: 0;
    font-size: 0.82rem;
  }
}

@media (max-width: 720px) and (max-height: 650px) {
  .site-header {
    flex-basis: 64px;
    padding-block: 10px;
  }

  .wordmark {
    width: 125px;
  }

  .hero {
    padding-block: 10px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-description {
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.15;
  }

  .waitlist-form {
    margin-top: 12px;
    gap: 6px;
  }

  .waitlist-form input[type='email'],
  .waitlist-form button {
    min-height: 42px;
    font-size: 0.88rem;
  }

  .waitlist-note {
    margin-top: 9px;
    font-size: 0.76rem;
  }

  .site-footer {
    flex-basis: 104px;
    padding-block: 10px;
  }

  .footer-connect > p {
    font-size: 1.2rem;
  }

  .social-links {
    margin-top: 6px;
    transform: scale(0.84);
    transform-origin: left top;
  }

  .legal-links {
    margin-top: -5px;
    font-size: 0.72rem;
  }
}

html:has(body.legal-page) {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body.legal-page {
  display: block;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 28px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--divider);
}

.legal-header .wordmark {
  width: 170px;
  transform: none;
}

.legal-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.legal-shell {
  width: min(100% - 44px, 880px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-shell h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  text-align: left;
}

.legal-meta {
  margin: 18px 0 0;
  color: rgb(45 26 20 / 72%);
  font-size: 0.98rem;
}

.legal-intro {
  margin: 42px 0 0;
  font-size: 1.16rem;
  line-height: 1.65;
}

.legal-section {
  margin-top: 44px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-family: 'Space Grotesk', Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  font-size: 1.02rem;
  line-height: 1.68;
}

.legal-section p {
  margin: 12px 0 0;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-footer {
  padding: 30px 22px;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .legal-header {
    min-height: 82px;
    padding: 18px 22px;
  }

  .legal-header .wordmark {
    width: 132px;
  }

  .legal-nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  .legal-shell {
    padding: 48px 0 68px;
  }

  .legal-shell h1 {
    font-size: 2.7rem;
  }

  .legal-intro {
    margin-top: 30px;
    font-size: 1.03rem;
  }

  .legal-section {
    margin-top: 36px;
  }

  .legal-section h2 {
    font-size: 1.3rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
