:root {
  --ink: #17211d;
  --paper: #fbfaf6;
  --mist: #dfe8df;
  --sage: #617565;
  --clay: #b86f4c;
  --clay-dark: #5f3026;
  --porcelain: #f3ece1;
  --shadow: rgba(8, 13, 11, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--paper);
  font-family:
    "Manrope",
    ui-sans-serif,
    system-ui,
    sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  grid-template-rows: 1fr;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  background-image: url("assets/pottery-wheel.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__shade {
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(184, 111, 76, 0.16) 0%, rgba(20, 29, 24, 0.28) 30%, rgba(11, 18, 15, 0.76) 74%),
    linear-gradient(180deg, rgba(9, 13, 11, 0.45) 0%, rgba(9, 13, 11, 0.28) 44%, rgba(9, 13, 11, 0.84) 100%);
}

.hero__content {
  align-self: center;
  justify-self: center;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  text-align: center;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 3.6rem + 5vw, 9.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro {
  max-width: 760px;
  margin: clamp(22px, 3vw, 32px) auto 0;
  color: rgba(251, 250, 246, 0.9);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.2rem);
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

.animation-stage {
  display: grid;
  justify-items: center;
  width: min(520px, 100%);
  margin: clamp(20px, 4vw, 34px) auto 0;
}

.pottery-gif {
  display: block;
  width: min(520px, 100%);
  height: auto;
  filter:
    drop-shadow(0 20px 34px rgba(0, 0, 0, 0.24))
    drop-shadow(0 0 18px rgba(251, 250, 246, 0.08));
}

.ticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: clamp(10px, 2vw, 18px) 0 0;
  padding: 0;
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
}

.ticker__label {
  margin-right: 12px;
  color: rgba(251, 250, 246, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker__text {
  display: inline-block;
  min-width: 16ch;
  text-align: left;
}

.ticker__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: var(--clay);
  vertical-align: -0.12em;
  animation: caret-blink 720ms steps(2, start) infinite;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }

  .hero__image {
    background-position: 58% center;
  }

  .hero__shade {
    background:
      radial-gradient(circle at center 37%, rgba(184, 111, 76, 0.18) 0%, rgba(22, 30, 26, 0.54) 42%, rgba(9, 13, 11, 0.9) 100%),
      linear-gradient(180deg, rgba(11, 18, 15, 0.46) 0%, rgba(12, 20, 16, 0.78) 54%, rgba(9, 13, 11, 0.96) 100%);
  }

  .hero__content {
    width: min(100% - 32px, 640px);
  }

  .hero__content {
    align-self: center;
    padding: 32px 0;
  }

  h1 {
    font-size: clamp(3.8rem, 2.85rem + 5vw, 5rem);
  }

  .animation-stage {
    margin-top: 22px;
  }

  .ticker {
    width: 100%;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ticker__text::after {
    animation: none;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}
