/* amoeba.shop — palette 1
   layout: lilac ground, one dark cell-ink card per page, hand-drawn lines + blob dots as the only ornament */
:root {
  --lilac: #F1EDFF;      /* ground — lilac light */
  --ink: #0B101D;        /* mark + type — cell ink */
  --signal: #FF3B21;     /* accent — signal */
  --card: #FAF8FF;       /* raised surface on lilac */
  --muted: #5F6272;      /* secondary type on lilac */
  --muted-dark: #B3B0CC; /* secondary type on ink */

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3.9vw, 56px);
  --maxw: 1440px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.display {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-wrap: balance;
  margin: 0;
}
h1.display { font-size: clamp(60px, 8.2vw, 118px); line-height: 0.88; letter-spacing: -0.03em; }
h2.display { font-size: clamp(40px, 4.7vw, 68px); }
.lede { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; max-width: 34em; margin: 0; }
.italic { font-style: italic; }

/* ---------- hand-drawn shapes (SVG masks, colored by currentColor) ---------- */
.shape {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.line { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; height: 16px; color: var(--signal); }
.line--strand   { --src: url("svg/line-strand.svg"); }
.line--vein     { --src: url("svg/line-vein.svg"); }
.line--droplets { --src: url("svg/line-droplets.svg"); }
.line--comet    { --src: url("svg/line-comet.svg"); }
.line--thread   { --src: url("svg/line-thread.svg"); height: 4px; color: var(--ink); }
.underline-strand { width: min(260px, 60%); }

.mark-a  { --src: url("svg/mark-a.svg");  aspect-ratio: 862 / 764; }
.runner  { --src: url("svg/runner.svg");  aspect-ratio: 777 / 901; }
.hugs    { --src: url("svg/hugs.svg");    aspect-ratio: 927 / 822; }
.dot { aspect-ratio: 1; color: var(--signal); }
.dot--1 { --src: url("svg/dot-1.svg"); } .dot--2 { --src: url("svg/dot-2.svg"); }
.dot--3 { --src: url("svg/dot-3.svg"); } .dot--4 { --src: url("svg/dot-4.svg"); }
.dot--5 { --src: url("svg/dot-5.svg"); } .dot--6 { --src: url("svg/dot-6.svg"); }
.dot--7 { --src: url("svg/dot-7.svg"); } .dot--8 { --src: url("svg/dot-8.svg"); }
.dot--9 { --src: url("svg/dot-9.svg"); } .dot--10 { --src: url("svg/dot-10.svg"); }

.grow { display: flex; align-items: center; gap: 18px; }
.grow .dot:nth-child(1) { width: 16px; } .grow .dot:nth-child(2) { width: 22px; }
.grow .dot:nth-child(3) { width: 30px; } .grow .dot:nth-child(4) { width: 38px; }
.grow .dot:nth-child(5) { width: 48px; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ink); color: var(--lilac);
  font: 600 17px/1 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0); }
.textlink {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--signal); text-decoration: none;
}
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--lilac) 92%, transparent); backdrop-filter: blur(8px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.lockup .mark-a { width: 36px; }
.lockup__word { font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.nav__links { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-decoration: none;
}
.nav__links a::after {
  content: ""; width: 54px; height: 8px; background: var(--signal);
  -webkit-mask: url("svg/line-strand.svg") center / 100% 100% no-repeat; mask: url("svg/line-strand.svg") center / 100% 100% no-repeat;
  opacity: 0; transform: scaleX(.4); transition: opacity .2s ease, transform .25s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { opacity: 1; transform: none; }
.nav__menu { display: none; }
.nav__back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .underline-strand { width: min(420px, 90%); height: 17px; }
.hero__ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__figure { position: relative; aspect-ratio: 1070 / 800; width: 100%; }
.hero__figure > * { position: absolute; }
.hero__a     { left: 1.9%; top: 31%; width: 43.9%; color: var(--ink); }
.hero__short { left: 39.3%; top: 18.8%; width: 59.8%; filter: drop-shadow(0 18px 24px rgb(11 16 29 / 0.14)); }
.hero__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section__head { display: flex; gap: 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.headgroup { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.section__head .lede { max-width: 31em; }

/* shorts */
.colorways { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.colorway { background: var(--card); border-radius: 22px; padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.colorway__img { aspect-ratio: 206 / 190; display: grid; place-items: center; }
.colorway__img img { max-height: 100%; width: auto; object-fit: contain; }
.colorway__meta { display: flex; flex-direction: column; gap: 4px; }
.colorway__num { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); }
.colorway__num .dot { width: 12px; color: var(--swatch); }
.colorway__name { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.colorway__desc { font-style: italic; color: var(--muted); margin: 0; font-size: 15px; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; }
.spec { display: flex; align-items: center; gap: 12px; }
.spec .dot { width: 14px; flex: none; }
.spec dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }

/* beta — dark card */
.darkcard { background: var(--ink); color: var(--lilac); border-radius: 36px; padding: clamp(40px, 5vw, 72px) clamp(20px, 3.9vw, 56px); display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.darkcard .label { color: var(--muted-dark); }
.trifold { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; align-items: center; }
.panel-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.panel-mark .shape { color: var(--lilac); margin-bottom: 10px; }
.panel-mark p { margin: 0; font-size: 18px; }
.panel-mark .label { font-size: 10.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.step__dot { width: 44px; height: 44px; display: grid; place-items: center; }
.step:nth-child(1) .dot { width: 18px; } .step:nth-child(2) .dot { width: 30px; } .step:nth-child(3) .dot { width: 44px; }
.step h3 { margin: 4px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted-dark); font-size: 15.5px; }
.step .label { font-size: 10.5px; }

/* signup */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 88px; align-items: start; }
.signup__copy { display: flex; flex-direction: column; gap: 24px; }
.facts { margin: 0; display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-block: 12px 0; position: relative; padding-top: 16px; }
.fact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ink);
  -webkit-mask: url("svg/line-thread.svg") center / 100% 100% no-repeat; mask: url("svg/line-thread.svg") center / 100% 100% no-repeat; }
.fact dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); padding-top: 3px; }
.fact dd { margin: 0; }

.form { background: var(--card); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.field input {
  height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--ink);
  background: var(--lilac); color: var(--ink);
  font: 400 16px var(--serif); font-variation-settings: "SOFT" 100, "WONK" 0;
}
.field input::placeholder { color: var(--muted); font-style: italic; opacity: 1; }
.field input[aria-invalid="true"] { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0; width: 24px; height: 24px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--lilac); display: grid; place-items: center; cursor: pointer;
}
.consent input:checked { background: var(--ink); }
.consent input:checked::after { content: ""; width: 12px; height: 12px; background: var(--signal);
  -webkit-mask: url("svg/dot-3.svg") center / contain no-repeat; mask: url("svg/dot-3.svg") center / contain no-repeat; }
.consent span { font-weight: 600; line-height: 1.35; }
.disclosure { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.fine { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.form__error { color: var(--signal); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; margin: 0; min-height: 1em; }
.form__done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.form__done h3 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.form__done p { margin: 0; }

/* business */
.biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 32px; }
.biz__col { display: flex; flex-direction: column; gap: 12px; }
.biz__col .labelrow { display: flex; align-items: center; gap: 8px; }
.biz__col .dot { width: 12px; }
.biz__col p { margin: 0; font-size: 18px; }
.biz .line--vein { color: var(--ink); height: 6px; }

/* footer — cell texture */
.footer { position: relative; overflow: hidden; background: var(--ink); color: var(--ink); padding: clamp(96px, 12vw, 180px) var(--gutter) 32px; }
.footer__texture { position: absolute; inset: 0; background: url("svg/texture.svg") center / max(1500px, 104%) auto no-repeat; pointer-events: none; }
.footer__inner { position: relative; max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.signoff { background: var(--lilac); border-radius: 36px; padding: 48px 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.signoff .hugs { width: 150px; color: var(--ink); margin-bottom: 12px; }
.signoff p { margin: 0; font-size: 22px; }
.signoff .line--comet { width: 320px; height: 17px; margin-top: 8px; }
.legal { width: 100%; background: var(--lilac); border-radius: 20px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal .lockup .mark-a { width: 24px; } .legal .lockup__word { font-size: 20px; }
.legal ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.legal ul a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.legal ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- document pages ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 740px) 380px; gap: 140px; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); align-items: start; }
.doc__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.doc__head h1 { font-size: clamp(48px, 5.6vw, 80px); line-height: 0.92; }
.doc__head .line--strand { width: min(300px, 55%); }
.doc section { position: relative; padding-top: 24px; margin-top: 32px; }
.doc section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ink);
  -webkit-mask: url("svg/line-thread.svg") center / 100% 100% no-repeat; mask: url("svg/line-thread.svg") center / 100% 100% no-repeat; }
.doc h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.doc p { margin: 0; font-size: 17.5px; line-height: 1.58; max-width: 40em; }
.aside { position: sticky; top: 96px; background: var(--ink); color: var(--lilac); border-radius: 26px; padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.aside .mark-a { width: 84px; color: var(--lilac); }
.aside .label { color: var(--muted-dark); font-size: 10.5px; }
.aside .email { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.aside p { margin: 0; }
.aside .line--comet { width: 180px; height: 14px; }
.aside .muted { color: var(--muted-dark); font-size: 15px; }
.simplefoot { background: var(--ink); color: var(--lilac); }
.simplefoot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 24px 32px; }
.simplefoot .lockup { color: var(--lilac); } .simplefoot .lockup .mark-a { width: 24px; } .simplefoot .lockup__word { font-size: 20px; }
.simplefoot ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.simplefoot ul a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.simplefoot small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .colorways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signup { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; align-items: center; gap: 14px; }
  .nav__menu .pill { padding: 9px 14px; font-size: 15px; }
  .menu-btn { width: 44px; height: 44px; border: 0; background: none; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; color: var(--ink); }
  .menu-btn .line--thread { height: 4px; width: 24px; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--lilac); padding: 8px var(--gutter) 24px; }
  .nav.is-open .nav__links a { align-items: flex-start; padding-block: 10px; font-size: 15px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__figure { order: 2; }
  .hero__copy { display: contents; }
  .hero__copy > .label { order: 0; } .hero__copy > h1 { order: 0; } .hero__copy > .underline-strand { order: 1; }
  .hero__copy > .lede { order: 3; } .hero__copy > .hero__ctas { order: 4; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__ctas .textlink { align-self: flex-start; }
  .hero__foot .label { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .colorways { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .colorway { flex-direction: row; align-items: center; padding: 14px; gap: 16px; border-radius: 18px; }
  .colorway__img { width: 118px; flex: none; }
  .colorway__name { font-size: 26px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .darkcard { border-radius: 24px; }
  .trifold { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .panel-mark .mark-a { width: 130px !important; } .panel-mark .runner { width: 110px !important; }
  .form { padding: 24px 20px; border-radius: 22px; }
  .fact { grid-template-columns: 110px minmax(0, 1fr); }
  .biz { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .signoff { padding: 36px 40px; border-radius: 28px; }
  .signoff .hugs { width: 110px; } .signoff .line--comet { width: 220px; }
  .footer__texture { background-size: 900px auto; }
  .legal { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
}
