/* ==========================================================================
   Micah Taylor — landing page
   Requires base.css (tokens, reset, layout primitives).
   One sentence on the twelve-column grid, beside the stitched field.
   ========================================================================== */

body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-weight: 400;
  /* The field is a little wider than the page; never scroll sideways to it. */
  overflow-x: clip;
}

/* A single screen: the stitched field fills it behind the sentence. The grid
   spans the whole window, so the composition keeps its proportions on
   ultrawide displays instead of centring in the content cap. */
.page {
  max-width: none;
  height: 100vh;
  height: 100svh;
  /* Let the background extend past the content cap on wide or zoomed-out views. */
  overflow: visible;
}

.sashiko {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
}

.hero .grid {
  align-items: start;
}

/* In the open space left of the stitched bundle and above its fan. */
.hero__intro {
  grid-column: 2 / span 8;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 3.271cqw, 112px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  text-wrap: balance;
  /* Two lines at every size: "Micah is a designer / based in San Francisco." */
  max-width: 13em;
}

/* Centre the sentence about a third of the way down the screen. */
.hero {
  padding-top: 0;
}

.hero .grid {
  margin-top: calc(34vh - 32px);
  margin-top: calc(34svh - 32px);
  transform: translateY(-50%);
}

/* Responsive ------------------------------------------------------------- */
/* Phones set the sentence at the top, above the zigzagging stripes. */
@media (max-width: 640px) {
  .hero .grid {
    margin-top: var(--space-8);
    transform: none;
  }

  .hero__intro {
    grid-column: 1 / -1;
    font-size: clamp(30px, 8.2cqw, 40px);
    line-height: 1.125;
  }
}
