/* Teddy Adams. The palette comes from his portrait and book covers:
   the umber studio backdrop, the saffron of the print, the indigo of the bell. */
:root {
  --umber: #3a2414;
  --umber-deep: #29180c;
  --saffron: #e8a91c;
  --indigo: #1f1b4d;
  --cream: #f7e8c9;

  --space-section: clamp(4.5rem, 10vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --spring: cubic-bezier(0.22, 1.28, 0.36, 1);
  --shadow-umber: 0 2px 4px rgb(41 24 12 / 0.18), 0 14px 28px rgb(41 24 12 / 0.22), 0 40px 80px rgb(41 24 12 / 0.28);
  --shadow-indigo: 0 2px 4px rgb(8 6 36 / 0.3), 0 14px 28px rgb(8 6 36 / 0.32), 0 40px 80px rgb(8 6 36 / 0.42);
}

html { scroll-behavior: smooth; }

body {
  background: var(--umber);
  color: var(--cream);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: "Rozha One", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.prose-block { max-width: 62ch; }
.prose-block p + p { margin-top: 1.25em; }

.wrap { padding-inline: var(--gutter); max-width: 96rem; margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }

/* Color fields */
.field-umber { background: var(--umber); color: var(--cream); }
.field-saffron { background: var(--saffron); color: var(--indigo); }
.field-indigo { background: var(--indigo); color: var(--cream); }
.field-indigo .display { color: var(--saffron); }
.field-cream { background: var(--cream); color: var(--indigo); }

/* Grain sits over every field so flat color reads like a printed sleeve */
.grain { isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-header--static { position: relative; }
.site-title {
  font-family: "Rozha One", Georgia, serif;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-link { position: relative; display: inline-block; padding: 0.5rem 0.125rem; font-weight: 600; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--spring);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link:active { opacity: 0.7; }

/* Links and focus */
a:focus-visible, button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.text-link:hover { text-decoration-thickness: 4px; }
.text-link:active { opacity: 0.7; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 2px;
  transition: transform 320ms var(--spring), opacity 160ms ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); opacity: 0.85; }

.field-saffron .btn--primary { background: var(--indigo); color: var(--cream); }
.field-saffron .btn--secondary { box-shadow: inset 0 0 0 2px var(--indigo); color: var(--indigo); }
.field-indigo .btn--primary { background: var(--saffron); color: var(--indigo); }
.field-indigo .btn--secondary { box-shadow: inset 0 0 0 2px var(--saffron); color: var(--saffron); }
.field-umber .btn--primary { background: var(--saffron); color: var(--indigo); }

/* Hero: the portrait dissolves into a ground that matches its studio backdrop */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 60% at 82% 28%, rgb(138 92 48 / 0.55), transparent 70%),
    radial-gradient(60% 50% at 8% 100%, rgb(31 27 77 / 0.5), transparent 70%),
    var(--umber);
}
.hero-portrait {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 100%;
  height: 76%;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.photo-tint { position: absolute; inset: 0; background: #b98a57; mix-blend-mode: multiply; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

.hero-name {
  color: var(--saffron);
  font-size: min(27.5vw, 30svh);
  line-height: 0.84;
}
.hero-name span { display: block; }
.hero-adams { margin-left: 0.14em; }

@media (min-width: 900px) {
  .hero-portrait {
    width: auto;
    height: 100%;
    aspect-ratio: 717 / 1230;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
    mask-image: linear-gradient(to right, transparent 0, #000 26%);
  }
  .hero-name { font-size: min(20vw, 38svh); }
}

/* The one moving moment: "Adams" extends into place like a trombone slide */
@media (prefers-reduced-motion: no-preference) {
  .hero-adams { animation: slide-out 1100ms var(--spring) 180ms both; }
  @keyframes slide-out {
    from { transform: translateX(-0.14em); }
    to { transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .album-card img, .nav-link::after { transition: none; }
}

/* Book covers */
.cover { display: block; width: 100%; height: auto; border-radius: 2px; }
.field-saffron .cover { box-shadow: var(--shadow-umber); }
.field-indigo .cover { box-shadow: var(--shadow-indigo); }

/* Album row */
.album-card { display: block; }
.album-frame { display: block; overflow: hidden; }
.album-card img { width: 100%; height: auto; display: block; transition: transform 500ms var(--spring); }
.album-card:hover img { transform: scale(1.04); }
.album-card:active img { transform: scale(1.01); }
.album-title {
  display: block;
  font-family: "Rozha One", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Page heads for Music and Bio */
.page-title { font-size: clamp(5rem, 22vw, 19rem); line-height: 0.86; }

/* Bio portrait */
.bio-portrait {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 2px;
  box-shadow: var(--shadow-umber);
}
.bio-portrait img { display: block; width: 100%; height: auto; }
.bio-portrait .photo-tint { background: #e8cfa8; }
.bio-portrait::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.6), transparent);
  opacity: 0.45;
}
.bio-lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.55; font-weight: 500; }

/* Spotify players */
.player { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }

.signup-frame { display: block; width: 100%; max-width: 100%; height: 400px; border: 0; margin-inline: auto; }
