/* Psychedelic - design-system tokens (from the claude.ai/design project). */
:root {
  --color-bg: #f4e3c1;
  --color-text: #3b1f14;
  --color-orange: #e8541c;
  --color-yellow: #f2a81d;
  --color-pink: #c23268;
  --color-purple: #7a3b8f;

  --font-display: "Shrikhand", cursive;
  --font-body: "DM Sans", sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: clip;
}

a { color: var(--color-text); text-underline-offset: 3px; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--color-purple); outline-offset: 3px; }

/* - page - */
/* Full-width so the rings bleed off the real screen edge; the content stays in a
   centred 1440px column via the side padding. */
.page {
  --gutter: clamp(28px, 6vw, 80px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 560px);
  align-items: center;
  padding: var(--gutter);
  padding-inline: max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter)));
  overflow: hidden;
}

/* Rings and portrait share one centre, wherever the art column lands. */
.hero-art {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
}

.rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  --band: 44px; /* one colour ring; scaled down with the rings on stacked layouts */
  background: repeating-radial-gradient(circle,
    var(--color-orange) 0 var(--band),
    var(--color-yellow) var(--band) calc(var(--band) * 2),
    var(--color-pink) calc(var(--band) * 2) calc(var(--band) * 3),
    var(--color-purple) calc(var(--band) * 3) calc(var(--band) * 4),
    var(--color-bg) calc(var(--band) * 4) calc(var(--band) * 5));
  z-index: 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: min(40vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid var(--color-text);
  filter: sepia(.55) saturate(1.4) contrast(1.05);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 34ch;
}

.hero-role {
  font: 500 15px var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-pink);
}

.hero-title {
  font: 400 clamp(44px, 9vw, 112px)/0.92 var(--font-display);
  margin: 0;
  color: var(--color-orange);
  text-shadow: 5px 5px 0 var(--color-yellow), 10px 10px 0 var(--color-purple);
  text-wrap: balance;
}

.hero-lede {
  font: 400 21px/1.55 var(--font-body);
  margin: 0;
  max-width: 34ch;
}

.hero-links { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { padding: 14px 26px; border-radius: 999px; font: 500 16px var(--font-body); transition: none; }
.btn-solid { background: var(--color-text); color: var(--color-bg); }
.btn-solid:hover { background: var(--color-purple); }
.btn-outline { border: 2px solid var(--color-text); padding: 12px 24px; }
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }

/* - tablet - */
@media (max-width: 1023px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 0; justify-items: center; align-content: start; }
  /* Stacked: the whole set of rings sits above the copy, a scaled copy of the desktop art
     (same portrait-to-rings ratio, same number of bands), never cropped. */
  .hero-art {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 560px);
    aspect-ratio: 1 / 1;
    margin-top: 40px;
    container-type: inline-size;
  }
  .rings {
    inset: 0;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    --band: 4.4cqi; /* 44px of a 1000px disc */
  }
  .hero-portrait { width: 42cqi; }
  .hero-copy { grid-column: 1; grid-row: 2; text-align: center; align-items: center; }
}

/* - mobile - */
@media (max-width: 759px) {
  .page { padding: 0 24px 32px; gap: 32px; }
  .hero-art { margin-top: 24px; }
  /* A bigger portrait on small screens so the face stays readable inside the rings. */
  .hero-portrait { width: 52cqi; border-width: 6px; }
  .hero-copy { text-align: center; align-items: center; max-width: 100%; }
  .hero-links { justify-content: center; width: 100%; }
  .btn { flex: 1 1 auto; text-align: center; }
}
