/* One idea: ten clay beads on one thread. Raw clay, fired clay, a dark kiln at the end. */

:root {
  --oat: #f4ecdf;
  --oat-light: #fbf4e8;
  --clay: #a4471f;
  --umber: #2a1b13;
  --umber-soft: #6b5243;
  --kiln-text: #e6d5bf;
  --kiln-link: #f0b48f;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section: clamp(6rem, 14vw, 12rem);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html { background: var(--oat); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--umber);
  background: var(--oat);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  font-weight: 340;
  line-height: 1.55;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  overflow-x: hidden;
}

/* A little paper tooth over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
svg { display: block; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

/* The small bead that replaces every full stop */
.stop {
  display: inline-block;
  width: 0.2em;
  height: 0.19em;
  margin-left: 0.05em;
  vertical-align: baseline;
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  background: radial-gradient(circle at 36% 30%, #dd8354, #b4532a 52%, #84381a);
}

/* Top bar */
.bar {
  padding: 0.7rem var(--gutter);
  background: var(--umber);
  color: var(--oat-light);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Hero */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }

.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: end;
}

.name {
  font-size: clamp(5.5rem, 25vw, 17rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero__line {
  max-width: 19ch;
  margin-bottom: 1.75rem;
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 320;
  line-height: 1.2;
  text-wrap: balance;
}

/* A button shaped by hand, not by a border radius token */
.button {
  display: inline-block;
  padding: 0.95em 1.6em 1em;
  background: var(--clay);
  color: var(--oat-light);
  text-decoration: none;
  border-radius: 46px 54px 48px 56px / 54px 46px 56px 48px;
  transition: background-color 0.4s ease, transform 0.4s ease;
}

.button:hover { background: #8a3a18; transform: translateY(-2px); }

.strand { width: 100%; height: auto; overflow: hidden; }
.strand--hang { margin-top: clamp(1rem, 3vw, 2.5rem); }

/* Beads: raw until fired */
.fired {
  opacity: 0;
  transition: opacity 1.4s ease calc(var(--i, 0) * var(--step, 240ms));
}

.is-fired .fired { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .strand[data-animate]:not(.on) .is-fired .fired { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fired, .button, .bead { transition: none; }
}

.bead {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bead:hover { transform: translateY(-3px) rotate(5deg); }
}

/* Steps */
.steps { padding-block: var(--section); }

.heading {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.steps__list {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.step__text {
  display: grid;
  gap: 0.4rem;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.step__word {
  color: var(--clay);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
}

/* About */
.about { padding-block: var(--section); }

.about__grid {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.about__art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 3rem;
}

.about__thread {
  position: absolute;
  top: calc(-1 * var(--section));
  bottom: 0;
  left: calc(50% - 6px);
  width: 12px;
  height: calc(100% + var(--section));
}

.about__knot {
  position: absolute;
  top: calc(-1 * var(--section) - 6px);
  left: calc(50% - 7px);
  width: 14px;
  height: 13px;
  background: var(--umber);
  border-radius: 55% 45% 50% 50% / 48% 56% 44% 52%;
}

.about__bead {
  position: relative;
  width: min(100%, 22rem);
  height: auto;
}

.about__text {
  display: grid;
  gap: 1.25em;
  max-width: 30rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.about__sign {
  font-size: 1.4em;
  font-style: italic;
  font-weight: 320;
}

/* Ending: the kiln */
.kiln {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--umber);
  color: var(--oat-light);
}

.kiln .strand--hang { margin-top: 0; }

.kiln__body { padding-block: clamp(3rem, 8vw, 7rem) var(--section); }

.kiln__line {
  max-width: 13ch;
  font-size: clamp(2.75rem, 1.5rem + 5.5vw, 6.5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.kiln__talk {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.375rem, 1rem + 1.8vw, 2.5rem);
  font-weight: 320;
  line-height: 1.25;
}

.kiln__talk a {
  color: var(--kiln-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.kiln__talk a:hover { text-decoration-thickness: 2px; }

.kiln__foot {
  color: var(--kiln-text);
  font-size: 0.875rem;
}

/* Wider screens */
@media (min-width: 760px) {
  .step { display: grid; gap: 0.5rem; }
  .step__text {
    grid-template-columns: minmax(9rem, 2fr) 7fr;
    align-items: baseline;
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; align-items: center; }
  .about__art { align-self: stretch; }
  .about__thread { bottom: calc(-1 * var(--section)); height: calc(100% + 2 * var(--section)); }
}

@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: auto minmax(0, 1fr); gap: clamp(3rem, 7vw, 7rem); }
  .hero__next { padding-bottom: 1.25rem; }
  .name { font-size: clamp(11rem, 18.5vw, 17rem); }
}
