/*
 * Standalone legal pages on twomakes.one.
 * Tokens match the marketing site so these read without the Vite bundle.
 */

:root {
  --color-bg: #000000;
  --color-fg: #e7e9ea;
  --color-muted: #8b98a5;
  --color-subtle: #71767b;
  --color-line: rgb(231 233 234 / 0.14);
  --color-danger: #f4212e;
  --founder-gilt: #e8c56a;
  --founder-ink: #b8860b;
  --founder-text: #c9922a;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --measure: 40rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  background: var(--color-bg);
  color: var(--color-fg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 3.8rem);
}

h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

p {
  margin: 0;
  text-wrap: pretty;
}

strong {
  color: var(--color-fg);
  font-weight: 600;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.875rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid rgb(231 233 234 / 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.rings {
  width: 2.25rem;
  height: 1.5rem;
  color: var(--color-fg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-fg);
}

.join-page .nav {
  flex-wrap: nowrap;
}

.join-page .brand {
  min-width: 0;
}

.legal {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 4rem var(--gutter) 5rem;
}

.kicker {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.kicker a:hover {
  color: var(--color-fg);
}

.legal h1 {
  margin-top: 0.75rem;
}

.join-page .legal {
  position: relative;
  padding-top: 2.25rem;
}

.join-page .legal::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto auto;
  width: min(28rem, 70%);
  height: 18rem;
  background: radial-gradient(ellipse at 80% 0%, rgb(184 134 11 / 0.07), transparent 70%);
}

.join-hero {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.join-hero-visual {
  position: relative;
  isolation: isolate;
  margin: 0;
  width: fit-content;
  max-width: min(15.5rem, calc(100vw - 1.5rem));
  min-width: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.join-hero-visual picture {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/*
 * Phone-in-hand still. Width-driven so the 9:16 art stays a
 * supporting mockup, not a full-viewport poster. Keep contain so
 * "You're Invited." and the rings wordmark stay in frame.
 */
.join-hero-image {
  display: block;
  width: min(13.5rem, calc(100vw - 3.5rem));
  max-width: 100%;
  height: auto;
  max-height: 24rem;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 0.85rem;
}

/*
 * Soft weld into --color-bg. Do not copy .profile-photo-fade:
 * that mid-image bottom crush covers the rings and TWO MAKES ONE
 * mark on this invitation still. Mobile only needs a light top
 * dissolve; the logo sits in the bottom-right and must stay clear.
 */
.join-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--color-bg) 0%, transparent 10%);
}

.join-hero-copy {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.join-hero-copy .updated {
  margin-top: 0;
}

.join-hero-lede {
  color: var(--color-fg);
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.3rem);
  line-height: 1.35;
  max-width: 28ch;
}

.join-hero-copy #join-honest-wait,
.join-hero-copy #join-honest-live {
  color: var(--color-muted);
}

.join-hero-title {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--founder-text);
}

.join-hero-bar {
  display: block;
  width: 4.5rem;
  height: 0.2rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c56a 0%, #b8860b 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.join-gilt {
  color: var(--founder-text);
  font-style: italic;
  letter-spacing: 0.04em;
}

.join-offer {
  list-style: none;
  padding-left: 0;
}

.join-offer li {
  position: relative;
  padding-left: 1.35rem;
}

.join-offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c56a 0%, #b8860b 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.updated {
  margin-top: 1rem;
  color: var(--color-subtle);
  font-size: 0.9375rem;
}

.prose {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  color: var(--color-muted);
}

.prose ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

[hidden] {
  display: none !important;
}

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

.join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  max-width: 28rem;
}

.join-input {
  min-height: 3rem;
  width: 100%;
  min-width: 0;
  padding: 0 1rem;
  border: 1px solid rgb(231 233 234 / 0.09);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  color: var(--color-fg);
  font: inherit;
  outline: none;
}

.join-input::placeholder {
  color: var(--color-subtle);
}

.join-form button,
.join-store-btn,
.nav-join-focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid rgb(201 146 42 / 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #e8c56a 0%, #b8860b 100%);
  color: #000000;
  font: inherit;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.nav-join-focus {
  flex-shrink: 0;
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: 14px;
}

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

.join-fail {
  margin: 0;
  color: var(--color-danger);
  font-size: 0.875rem;
}

.join-done {
  margin: 0;
  color: var(--color-fg);
}

@media (max-width: 879px) {
  .join-page .legal {
    padding-top: 1.35rem;
  }

  .join-hero {
    margin-top: 0.5rem;
    gap: 1.15rem;
  }

  .join-hero-visual {
    padding: 0;
  }

  .join-hero-image {
    width: min(13.5rem, calc(100vw - 3.5rem));
    max-width: 100%;
    height: auto;
    max-height: 24rem;
  }

  .join-hero-copy {
    width: 100%;
    gap: 0.75rem;
  }

  .join-hero-title {
    order: 0;
  }

  .join-hero-bar {
    order: 1;
    margin-top: 0.15rem;
  }

  .join-hero-lede {
    order: 2;
  }

  .join-hero-copy #join-waitlist,
  .join-hero-copy #join-store {
    order: 3;
  }

  .join-hero-copy #join-honest-wait,
  .join-hero-copy #join-honest-live {
    order: 4;
  }

  .join-hero-copy .updated {
    order: 5;
  }
}

@media (max-width: 520px) {
  .join-form {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 880px) {
  .join-page .legal {
    max-width: min(66rem, calc(100% - 2rem));
    display: grid;
    grid-template-columns: minmax(0, 34rem) 21rem;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    justify-content: center;
    align-items: start;
    padding-left: clamp(2rem, 6vw, 4.5rem);
    padding-right: clamp(2rem, 6vw, 4.5rem);
  }

  .join-page .legal::before {
    width: 42%;
    inset: 0 auto auto 0;
  }

  .join-hero {
    display: contents;
  }

  .join-hero-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 100%;
    max-width: 21rem;
    min-width: 0;
    margin: 0;
    justify-self: end;
    align-self: start;
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 0;
    background: transparent;
  }

  .join-hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 38rem;
    border-radius: 0;
    box-shadow: none;
  }

  /*
   * Desktop welds LEFT into the copy gutter, plus a light TOP
   * dissolve. Leave the bottom of the still unfaded so the rings
   * and wordmark stay readable.
   */
  .join-hero-fade {
    background:
      linear-gradient(90deg, var(--color-bg) 0%, transparent 18%),
      linear-gradient(180deg, var(--color-bg) 0%, transparent 10%);
  }

  .join-page .kicker,
  .join-hero-copy {
    grid-column: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
  }

  .join-hero-copy {
    grid-row: 2;
    margin-top: 0.35rem;
    width: 100%;
  }

  .join-page .prose {
    grid-column: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
  }
}

.footer {
  border-top: 1px solid var(--color-line);
  padding: 3rem var(--gutter) 2.5rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--color-fg);
}

.footer-platform {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-fg);
}

.footer-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--color-subtle);
}
