:root {
  --cream: #fbf3e4;
  --earth: #f5e9d6;
  --dusk: #ecdbc0;
  --ash: #c9ae8c;
  --ink: #2e2140;
  --ink-soft: #3d2f52;
  --linen: #655462;
  --coral: #e1926f;
  --amber-ink: #a84b24;
  --sage: #3a676b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, sans-serif;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.serif {
  font-family: var(--serif);
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.08;
}

p {
  margin: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--linen);
}

.stack {
  display: grid;
  gap: 24px;
  align-content: start;
}

.todo {
  font-style: italic;
  color: var(--amber-ink);
}

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid transparent;
  transition: transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--amber-ink);
  outline-offset: 3px;
}

.button-primary {
  background: var(--coral);
}

.button-outline {
  border-color: var(--ink);
}

.button-light {
  background: var(--cream);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.logo {
  display: block;
  line-height: 0;
}

/* The logo image has some white space around it, so the height includes that. */
.logo img {
  width: auto;
  height: 48px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.button) {
  font-weight: 500;
  color: var(--linen);
  text-decoration: none;
}

.nav-links a:not(.button):hover {
  color: var(--ink);
}

/* Sections */
main {
  position: relative;
}

section {
  padding-block: clamp(64px, 8vw, 120px);
}

.hero {
  padding-top: clamp(40px, 6vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: center;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.product-card {
  background: var(--earth);
  border: 1px solid var(--dusk);
  border-radius: 28px;
  padding: 44px;
  display: grid;
  gap: 22px;
}

.product-card .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(56px, 5vw, 72px);
  line-height: 0.9;
}

.product-card .line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
  color: var(--linen);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}

.steps .num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral);
  font-weight: 700;
  font-size: 15px;
}

.steps strong {
  display: block;
  font-weight: 600;
}

.steps span {
  color: var(--linen);
  font-size: 16px;
  line-height: 1.45;
}

.text-link {
  font-weight: 700;
  color: var(--amber-ink);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.commitment {
  background: var(--earth);
}

.commitment .stack {
  max-width: 900px;
}

.cards {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--cream);
  border-radius: 20px;
  padding: 36px 32px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  color: var(--linen);
}

.principles-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 96px;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.principles li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--ash);
}

.principles li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.principles h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.principles p {
  color: var(--linen);
}

.who {
  background: var(--dusk);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 96px;
  align-items: center;
}

.founder {
  background: var(--cream);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  gap: 14px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ash);
}

.founder .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
}

.founder .role {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--amber-ink);
}

.founder p:not(.name):not(.role) {
  color: var(--linen);
}

.quote {
  margin: 8px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--amber-ink);
  display: grid;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.4;
}

.quote footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--amber-ink);
}

.band {
  background: var(--sage);
  color: var(--cream);
  padding-block: 64px;
}

.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band h2 {
  font-size: clamp(32px, 3vw, 44px);
}

.band p {
  color: var(--dusk);
  margin-top: 8px;
}

.talk {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid var(--coral);
}

.band .talk p {
  margin-top: 4px;
}

.band .talk .talk-label {
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dusk);
}

.band .talk .talk-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  color: var(--cream);
}

/* Footer */
body > footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 72px 48px;
}

body > footer .wrap {
  display: grid;
  gap: 36px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-top p {
  color: var(--dusk);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 36px;
}

.footer-links a {
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.help {
  background: var(--ink-soft);
  border-radius: 16px;
  padding: 20px 24px;
}

.help a {
  white-space: nowrap;
}

.legal {
  border-top: 1px solid rgb(201 174 140 / 0.35);
  padding-top: 36px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--dusk);
}

/* Thread: the hand-drawn line from thred's own site (thrd: src/components/landing/LandingThread.tsx) */
.thread {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.thread path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  animation: thread-breathe 10s ease-in-out infinite;
  transition: stroke-dashoffset 0.7s ease-out;
}

[data-thread="start"],
[data-thread="end"] {
  z-index: 2;
}

[data-thread="start"]::before,
[data-thread="end"]::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: var(--coral);
  z-index: -1;
  animation: cta-breathe 10s ease-in-out infinite;
}

.bead {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgb(225 146 111 / 0.35);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--amber-ink);
  transition: border-color 0.5s;
}

.bead::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--coral);
  z-index: -1;
  visibility: hidden;
  animation: bead-breathe 10s ease-in-out var(--bead-delay, 0s) infinite;
}

.card:nth-child(2) .bead {
  --bead-delay: 0.8s;
}

.card:nth-child(3) .bead {
  --bead-delay: 1.6s;
}

.bead[data-lit="true"] {
  border-color: var(--coral);
}

.bead[data-lit="true"]::before {
  visibility: visible;
}

@keyframes thread-breathe {
  0%,
  100% {
    stroke-width: 1.6px;
    opacity: 0.45;
  }
  40% {
    stroke-width: 3px;
    opacity: 0.85;
  }
}

@keyframes bead-breathe {
  0%,
  100% {
    opacity: 0.05;
    transform: scale(1);
  }
  40% {
    opacity: 0.22;
    transform: scale(1.4);
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  40% {
    opacity: 0.45;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .thread path,
  [data-thread="start"]::before,
  [data-thread="end"]::before {
    animation: none;
    transition: none;
  }
  .bead::before {
    animation: none;
    opacity: 0.12;
    transform: scale(1.2);
  }
}

/* Layout breakpoints */
@media (max-width: 1000px) {
  .hero-grid,
  .principles-grid,
  .who-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links a:not(.button) {
    display: none;
  }
  .product-card,
  .founder {
    padding: 28px;
  }
  .ctas .button {
    width: 100%;
  }
  .footer-links {
    gap: 24px;
  }
}

/* Privacy page */
.doc {
  max-width: 720px;
  padding-block: 48px 96px;
}

.doc h1 {
  font-size: clamp(40px, 5vw, 56px);
  margin-bottom: 12px;
}

.doc h2 {
  font-size: 30px;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: var(--linen);
}

.doc p + p {
  margin-top: 12px;
}
