@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/BricolageGrotesque.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --porcelain: #f1f1ef;
  --paper: #fafaf8;
  --ink: #161719;
  --body: #4f5358;
  --muted: #666a6f;
  --line: rgba(22, 23, 25, 0.17);
  --line-soft: rgba(22, 23, 25, 0.09);
  --moss: #536b5d;
  --moss-soft: #dce3dc;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body: var(--font-display);
  --page-gutter: clamp(22px, 4vw, 64px);
  --page-width: 1440px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--moss) var(--porcelain);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--porcelain);
}

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

a {
  color: inherit;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 6px;
}

svg {
  display: block;
}

.site-header,
main,
footer {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 23px;
  font-variation-settings: "opsz" 48, "wdth" 90;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
}

.site-header nav a,
footer a,
footer p {
  color: var(--body);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.4;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  min-height: calc(100svh - 88px);
  padding: clamp(64px, 8vw, 128px) var(--page-gutter);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1,
.belief h2,
.mechanisms > h2,
.privacy h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 86, "wdth" 82;
  text-wrap: balance;
}

.hero h1 {
  max-width: 8.5ch;
  margin: 0;
  font-size: clamp(4rem, 7.1vw, 6rem);
  font-variation-settings: "opsz" 80, "wdth" 90;
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.marked-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.marked-word > svg {
  position: absolute;
  right: -0.04em;
  bottom: -0.23em;
  width: 97%;
  overflow: visible;
}

.marked-word path,
.belief-thread path,
.privacy-mark path {
  fill: none;
  stroke: var(--moss);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.marked-word path {
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.1s cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.hero-intro {
  max-width: 34rem;
  margin: clamp(32px, 4vw, 48px) 0 0;
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}

.waitlist {
  max-width: 34rem;
  margin-top: clamp(20px, 2vw, 28px);
}

.waitlist-kicker,
.waitlist-note,
.waitlist-status {
  margin: 0;
}

.waitlist-kicker {
  color: var(--moss);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.waitlist-form label {
  display: block;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.4;
}

.waitlist-controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.waitlist-controls input[type="email"],
.waitlist-controls button {
  min-height: 56px;
  font: inherit;
}

.waitlist-controls input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}

.waitlist-controls input[type="email"]::placeholder {
  color: var(--muted);
}

.waitlist-controls input[type="email"]:focus-visible {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgb(83 107 93 / 0.18);
}

.waitlist-controls input[type="email"]:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.waitlist-controls button {
  flex: 0 0 auto;
  padding: 0 22px;
  color: var(--porcelain);
  font-weight: 700;
  cursor: pointer;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.waitlist-controls button:hover:not(:disabled) {
  background: var(--moss);
  border-color: var(--moss);
}

.waitlist-controls button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.waitlist-controls button:disabled {
  cursor: wait;
  background: var(--moss);
  border-color: var(--moss);
}

.waitlist-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.waitlist-note,
.waitlist-status {
  font-size: 13px;
  line-height: 1.5;
}

.waitlist-note {
  margin-top: 10px;
  color: var(--muted);
}

.waitlist-status {
  min-height: 1.5em;
  margin-top: 6px;
  color: var(--body);
}

.waitlist-status[data-state="success"] {
  color: var(--moss);
}

.waitlist-status[data-state="error"] {
  color: #8b403a;
}

.memory-field {
  position: relative;
  width: min(100%, 660px);
  min-height: 650px;
  margin: 0 0 0 auto;
}

.collection-board {
  position: absolute;
  inset: 30px 2px 52px 12px;
  overflow: visible;
  background: url("./assets/hero-postmark-waves.svg") center / 100% 100% no-repeat;
}

.collection-board::before,
.collection-board::after {
  display: none;
}

.collection-board span {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.memory-thread {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  overflow: visible;
}

.memory-thread path {
  fill: none;
  stroke: var(--moss);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.45s cubic-bezier(0.16, 1, 0.3, 1) 420ms forwards;
}

.memory-thread circle {
  fill: var(--porcelain);
  stroke: var(--moss);
  stroke-width: 2;
}

.memory-object {
  position: absolute;
}

.memory-object {
  z-index: 2;
  transform-origin: center;
  transition-property: transform;
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.memory-object img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 0.5px rgb(0 0 0 / 0.1))
    drop-shadow(0 14px 18px rgb(22 23 25 / 0.1));
}

.object-poster {
  top: 72px;
  left: 150px;
  width: 190px;
  transform: rotate(-1deg);
}

.object-stamp {
  top: 58px;
  left: 34px;
  z-index: 4;
  width: 164px;
  transform: rotate(-8deg);
}

.object-ticket {
  top: 348px;
  left: 32px;
  z-index: 5;
  width: 360px;
  transform: rotate(-1deg);
}

.object-postcard {
  top: 82px;
  left: 250px;
  z-index: 3;
  width: 390px;
  transform: rotate(1deg);
}

.object-postcard > span {
  display: block;
}

.object-postcard img {
  width: 100%;
  height: auto;
}

.object-magnet {
  top: 338px;
  right: 34px;
  z-index: 6;
  width: 96px;
  transform: rotate(6deg);
}

.memory-field figcaption {
  color: var(--body);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.botanical-sketch {
  position: absolute;
  top: 288px;
  left: 190px;
  z-index: 1;
  width: 180px;
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 5 3 6;
  opacity: 0.34;
  pointer-events: none;
  transform: rotate(-8deg);
}

.memory-field figcaption {
  position: absolute;
  bottom: 6px;
  left: 24px;
  max-width: 300px;
  text-align: left;
  text-transform: none;
  text-wrap: pretty;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .memory-field:hover .object-stamp {
    transform: translate(-12px, -9px) rotate(-12deg);
  }

  .memory-field:hover .object-poster {
    transform: translate(-6px, -12px) rotate(-3deg);
  }

  .memory-field:hover .object-postcard {
    transform: translate(15px, -7px) rotate(3deg);
  }

  .memory-field:hover .object-ticket {
    transform: translate(-5px, 12px) rotate(0deg);
  }

  .memory-field:hover .object-magnet {
    transform: translate(12px, 7px) rotate(9deg);
  }
}

.belief {
  position: relative;
  min-height: 620px;
  padding: clamp(140px, 17vw, 260px) var(--page-gutter) 120px;
  border-top: 1px solid var(--line-soft);
}

.belief h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.2vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.belief > p {
  max-width: 30rem;
  margin: 44px 0 0 auto;
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

.belief-thread {
  position: absolute;
  right: var(--page-gutter);
  bottom: 42px;
  left: var(--page-gutter);
  width: calc(100% - (2 * var(--page-gutter)));
}

.belief-thread path {
  stroke-width: 1.7;
}

.mechanisms {
  padding: clamp(110px, 12vw, 180px) var(--page-gutter);
  background: var(--ink);
  color: var(--porcelain);
}

.mechanisms > h2 {
  max-width: 12ch;
  margin: 0 0 clamp(90px, 11vw, 160px);
  font-size: clamp(3rem, 5.6vw, 5.6rem);
  font-weight: 510;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.mechanism-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr) minmax(220px, 0.8fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: start;
  padding: 38px 0 48px;
  border-top: 1px solid rgba(241, 241, 239, 0.22);
}

.mechanism-row:last-child {
  border-bottom: 1px solid rgba(241, 241, 239, 0.22);
}

.mechanism-row h3,
.mechanism-row p {
  margin: 0;
}

.mechanism-row h3 {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.2vw, 34px);
  font-variation-settings: "opsz" 40, "wdth" 88;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mechanism-row > p:not(.mechanism-example) {
  color: #c3c3bf;
  font-size: 16px;
  line-height: 1.65;
}

.mechanism-example {
  color: var(--moss-soft);
  font-size: 14px;
  font-weight: 590;
  line-height: 1.55;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 80px;
  align-items: center;
  min-height: 620px;
  padding: clamp(120px, 14vw, 210px) var(--page-gutter);
}

.privacy > div {
  max-width: 760px;
}

.privacy h2 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.privacy p {
  max-width: 44rem;
  margin: 40px 0 0;
  color: var(--body);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6;
}

.privacy-mark {
  width: 100%;
}

.privacy-mark path:first-child {
  stroke-width: 1.7;
}

.privacy-mark path:last-child {
  stroke-width: 2.5;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  min-height: 132px;
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--line-soft);
}

footer p {
  margin: 0;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 92px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .memory-field {
    width: min(100%, 680px);
    margin: 70px auto 0;
  }

  .mechanism-row {
    grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.15fr);
  }

  .mechanism-example {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 76px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 17vw, 5rem);
  }

  .hero-intro {
    margin-top: 42px;
  }

  .memory-field {
    min-height: 410px;
    margin-top: 34px;
  }

  .collection-board {
    inset: 8px 0 42px 8px;
  }

  .collection-board span {
    top: 9px;
    right: 10px;
    max-width: 110px;
    text-align: right;
  }

  .memory-thread {
    top: -2px;
    left: -10px;
    width: calc(100% + 20px);
  }

  .object-stamp {
    top: 18px;
    left: 12px;
    width: min(28%, 145px);
  }

  .object-poster {
    top: 28px;
    left: 20%;
    width: min(30%, 170px);
  }

  .object-postcard {
    top: 62px;
    left: 28%;
    width: min(64%, 360px);
  }

  .object-ticket {
    top: 190px;
    left: 2%;
    width: min(56%, 270px);
  }

  .object-magnet {
    top: 205px;
    right: 20px;
    width: min(18%, 92px);
  }

  .botanical-sketch {
    top: 176px;
    left: 20%;
    width: 140px;
  }

  .memory-field figcaption {
    right: 14px;
    bottom: 0;
    left: 14px;
    max-width: 300px;
  }

  .belief {
    min-height: 560px;
    padding-top: 130px;
  }

  .belief h2,
  .mechanisms > h2,
  .privacy h2 {
    font-size: clamp(3.05rem, 13.8vw, 4.8rem);
  }

  .belief > p {
    margin-left: 0;
  }

  .mechanisms {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .mechanisms > h2 {
    margin-bottom: 88px;
  }

  .mechanism-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 34px 0 42px;
  }

  .mechanism-example {
    grid-column: auto;
  }

  .privacy {
    grid-template-columns: 1fr;
    gap: 72px;
    min-height: 720px;
  }

  .privacy-mark {
    width: min(76%, 280px);
    margin-left: auto;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 190px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

@media (max-width: 600px) {
  .waitlist-controls {
    flex-direction: column;
  }

  .waitlist-controls button {
    width: 100%;
  }
}

@media (min-width: 981px) and (max-height: 700px), (min-width: 1400px) and (max-height: 760px) {
  .hero {
    align-items: start;
    padding-top: 32px;
    padding-bottom: 32px;
  }

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

  .hero-intro {
    margin-top: 20px;
  }

  .waitlist {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marked-word path,
  .memory-thread path {
    stroke-dashoffset: 0;
  }
}
