@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #232321;
  --ink-2: #66655f;
  --line: #e8e6e1;
  --blue: #2a6fd8;
  --red: #e83c1f;
  --yellow: #eab23c;
  --pink: #ec9fcb;
  --green: #1f5a31;

  --narrow: 40rem;
  --gutter: clamp(26px, 6vw, 60px);
  --space: clamp(112px, 18vh, 200px);
  --ease: cubic-bezier(.3, .7, .2, 1);
  color-scheme: light;
}

* { 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(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 "Instrument Sans", system-ui, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bar, main, .foot { position: relative; z-index: 1; }

h1, h2, p { margin: 0; }
h1, h2 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---- bar ---- */
.bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 28px var(--gutter);
}
.mark {
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
  padding: 11px 8px;
  margin: -11px -8px;
}

/* ---- shared ---- */
section { padding: 0 var(--gutter); }
section > h2, .beat h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
section > p, .beat p {
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 500 1.0625rem/1 "Instrument Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
/* the poster's soft coloured edge, borrowed for one moment */
.cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1.5px rgba(42, 111, 216, .9), inset 0 0 18px rgba(42, 111, 216, .55), 0 10px 28px -14px rgba(42, 111, 216, .7);
}
.cta:active { transform: translateY(0); }

/* ---- hero ---- */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(2.875rem, 6.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 9.5em;
}
.hero .lede {
  margin-top: 26px;
  max-width: 26em;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  line-height: 1.45;
}
.hero .cta { margin-top: 40px; }
@media (min-width: 520px) { .hero .lede span { display: block; } }

/* ---- why ---- */
.why {
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: var(--space);
  text-align: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.why p { margin-top: 24px; max-width: 30em; }

/* ---- folio stage ---- */
.folio-stage {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 420px);
  justify-content: center;
  gap: clamp(48px, 8vw, 128px);
  padding-bottom: var(--space);
}
.folio-sticky { position: sticky; top: max(24px, calc(50vh - 370px)); align-self: start; }
.folio-story { padding-bottom: 12vh; }
.folio-story { display: grid; align-content: start; }
.beat { min-height: 92vh; display: grid; align-content: center; padding: 8vh 0; }
.beat:first-child { min-height: 80vh; }
.beat p { margin-top: 20px; }

/* ---- the example folio ---- */
.folio {
  --p: var(--yellow);
  --tint: #fdf7e9;
  margin: 0;
  width: 100%;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -48px rgba(35, 35, 33, .32);
  padding: 14px 14px 18px;
  overflow: hidden;
}
.folio[data-theme="blue"] { --p: var(--blue); --tint: #e8effb; }
.folio[data-theme="red"] { --p: var(--red); --tint: #fde9e6; }
.folio[data-theme="pink"] { --p: var(--pink); --tint: #fdf2f8; }
.folio[data-theme="green"] { --p: var(--green); --tint: #e6ede8; }

.folio-url {
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-align: center;
  padding: 4px 0 12px;
  letter-spacing: 0.005em;
}
.folio-url span:last-child { color: var(--ink); }
.folio-cover {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 1.8;
  border-radius: 24px;
  background: #fff;
}
.folio-head { padding: 0 10px; margin-top: -34px; position: relative; }
.folio-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, inset 0 0 0 1.5px var(--p), inset 0 0 14px color-mix(in srgb, var(--p) 55%, transparent);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: box-shadow .6s var(--ease);
}
.folio-name {
  margin-top: 14px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.folio-bio { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }

.folio-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tile {
  border-radius: 22px;
  background: var(--tint);
  padding: 14px 16px 16px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background-color .6s var(--ease);
}
.tile-feature { grid-column: 1 / -1; min-height: 0; padding: 18px 18px 18px; }
.tile-kicker { font-size: 0.75rem; color: var(--ink-2); margin-bottom: auto; }
.tile-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; line-height: 1.2; }
.tile-feature .tile-title { font-size: 1.1875rem; }
.tile-meta { font-size: 0.8125rem; color: var(--ink-2); margin-top: 3px; }
.tile-action {
  margin-top: 14px;
  align-self: flex-start;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.tile-progress { display: block; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--p) 22%, white); margin-top: 12px; overflow: hidden; }
.tile-progress i { display: block; height: 100%; width: 58%; border-radius: inherit; background: var(--p); transition: background-color .6s var(--ease); }
.tile-photo { padding: 0; position: relative; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tile-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-photo .tile-meta { position: relative; margin: auto 0 0; padding: 0 14px 12px; color: var(--ink); }
.row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---- make it yours ---- */
.make { margin-top: 36px; display: grid; gap: 10px; max-width: 26rem; }
.field-label { font-size: 0.875rem; color: var(--ink-2); padding: 0; }
.make input[type="text"] {
  height: 54px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: box-shadow .4s var(--ease);
}
.make input[type="text"]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.swatches { border: 0; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { margin-bottom: 10px; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatches span {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 0;
  background: linear-gradient(180deg, var(--c) 18%, color-mix(in srgb, var(--c) 22%, white) 96%);
  box-shadow: 0 0 0 0 #fff, 0 0 0 0 var(--c);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
  cursor: pointer;
}
.swatches input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--c); }
.swatches input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 7px; }
.swatches label:hover span { transform: scale(1.06); }

/* ---- start ---- */
.start {
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: var(--space);
  text-align: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.start h2 { font-size: clamp(2.75rem, 6vw, 5rem); letter-spacing: -0.04em; line-height: 1; }
.start > p { margin-top: 22px; max-width: 26em; }
.claim {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -36px rgba(35, 35, 33, .4);
  background: #fff;
  width: min(100%, 31rem);
}
.claim-field { flex: 1; display: flex; align-items: center; min-width: 0; padding-left: 20px; cursor: text; }
.claim-prefix { color: var(--ink-2); white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); padding: 0 6px 0 1px; height: 56px; }
.claim input:focus { outline: none; }
.claim:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 24px 48px -36px rgba(35, 35, 33, .4); }
.claim .cta { flex: none; }
.claim-note { min-height: 1.5em; margin-top: 18px; font-size: 0.9375rem; color: var(--ink-2); }

.foot { padding: 0 var(--gutter) 40px; text-align: center; font-size: 0.8125rem; color: var(--ink-2); }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .folio-stage { grid-template-columns: minmax(0, 400px); gap: 0; }
  .folio-sticky { position: relative; top: 0; order: 2; }
  .folio-story { display: contents; }
  .beat, .beat:first-child { min-height: 0; padding: 0 0 48px; text-align: center; justify-items: center; }
  .beat:first-child { order: 1; }
  .beat#make { order: 3; padding-top: 72px; }
  .make { justify-items: stretch; width: 100%; text-align: left; }
  .swatches { justify-content: space-between; }
}
@media (max-width: 719px) {
  :root { --gutter: 34px; }
  .bar { padding-top: 22px; }
  .hero { padding-top: 96px; min-height: 84svh; }
  .folio-stage { --gutter: 20px; }
  .folio { border-radius: 30px; }
  .claim { flex-direction: column; border-radius: 30px; padding: 6px; }
  .claim-field { padding: 0 16px; }
  .claim .cta { width: 100%; }
}
@media (max-width: 380px) {
  .swatches span { width: 40px; height: 40px; }
}
