:root {
  --paper: #f8f7f1;
  --ink: #11110f;
  --blue: #306de3;
  --coral: #f4694d;
  --aqua: #01bbdf;
  --mint: #5fcea5;
  --acid: #d1e738;
  --line: 2px solid var(--ink);
  --gutter: clamp(1rem, 3vw, 2.75rem);
  /* Seven shared sizes. Components choose a role, never a local size. */
  --text-caption: .75rem;
  --text-small: .875rem;
  --text-body: 1rem;
  --text-lead: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --text-title: clamp(1.5rem, 1.35rem + .6vw, 1.75rem);
  --text-page: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-display: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --leading-heading: 1.15;
  --leading-tight: 1.4;
  --leading-body: 1.6;
  --playful-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Avenir Next Rounded", "Trebuchet MS", sans-serif;
}

@font-face {
  font-family: "Raamo";
  src: url("raamo5-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 12% 8%, rgba(255,255,255,.86), transparent 26%), var(--paper);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: .85rem var(--gutter);
  border-bottom: var(--line);
  background: rgba(248, 247, 241, .94);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; width: clamp(114px, 13.5vw, 185px); }
.brand img { width: 100%; height: auto; }

.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  position: relative;
  padding: .52rem .72rem;
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: .72rem;
  right: .72rem;
  bottom: .18rem;
  height: 3px;
  border-radius: 50%;
  background: var(--coral);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left;
  transition: transform .2s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1) rotate(-1deg); }
.site-nav .nav-shop { background: transparent; color: inherit; }

.menu-button { display: none; border: 0; background: transparent; padding: .5rem; font-weight: 700; }

main { min-height: calc(100vh - 180px); }
.page-shell { padding: clamp(3.5rem, 8vw, 7.5rem) var(--gutter); }
.narrow { max-width: 900px; }

.eyebrow {
  margin: 0 0 1rem;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h1, h2, h3, .display {
  font-family: var(--playful-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: var(--leading-heading);
}
h1 { max-width: 22ch; font-size: var(--text-page); }
h2 { font-size: var(--text-title); }
h3 { font-size: var(--text-lead); }
.lead { max-width: 39rem; font-family: Georgia, 'Times New Roman', serif; font-size: var(--text-lead); line-height: var(--leading-tight); }
.body-large { max-width: 58rem; font-size: var(--text-lead); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .8rem 1.1rem;
  border: var(--line);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); background: var(--ink); color: white; }
.button.light { border-color: white; color: white; }
.button.light:hover { background: white; color: var(--ink); }
.button.dark { background: var(--ink); color: white; }
.button.dark:hover { background: var(--coral); color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  min-height: calc(100vh - 76px);
  border-bottom: var(--line);
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 6rem) var(--gutter) 2rem;
}
.hero-copy::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -3rem;
  width: min(35vw, 470px);
  height: min(30vw, 410px);
  background: url('raamo-mark.png') center / contain no-repeat;
  opacity: .045;
  transform: rotate(-10deg);
}
.hero-title {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  font-family: "Raamo", Arial, Helvetica, sans-serif;
  letter-spacing: -.025em;
  line-height: var(--leading-heading);
}
.hero-title .line { display: block; }
.hero-title .sideways { color: var(--coral); }
.hero-note { position: relative; z-index: 1; max-width: 28rem; font-family: Georgia, 'Times New Roman', serif; font-size: var(--text-lead); }
.hero-art { position: relative; overflow: hidden; background: var(--blue); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-art:hover img { transform: scale(1.025); }
.hero-new { grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr); background: var(--blue); color: white; }
.hero-new .hero-copy { background: var(--blue); }
.hero-new .hero-copy::after { display: none; }
.hero-new .hero-title { font-size: var(--text-display); }
.hero-new .hero-note { max-width: 32rem; font-family: Arial, Helvetica, sans-serif; }
.hero-symbol { display: grid; place-items: center; overflow: hidden; background: var(--coral); }
.hero-symbol img { width: min(62%, 520px); transform: rotate(-8deg); }
.release-stamp {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: .75rem 1rem;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.home-intro {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: var(--gutter);
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  border-bottom: var(--line);
}
.home-intro .lead { margin-left: auto; }

.catalogue-carousel-section { overflow: hidden; padding: clamp(4rem, 7vw, 7rem) 0; border-bottom: var(--line); }
.carousel-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0 2rem;
  padding: 0 var(--gutter) 2rem;
}
.carousel-heading .eyebrow { grid-column: 1 / -1; }
.carousel-heading h2 { margin: 0; }
.text-link {
  position: relative;
  display: inline-block;
  padding-bottom: .2rem;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform-origin: left; transition: transform .2s ease; }
.text-link:hover::after { transform: scaleX(.35); }
.release-carousel { display: flex; width: max-content; animation: carousel-scroll 34s linear infinite; }
.release-carousel:hover, .release-carousel:focus-within { animation-play-state: paused; }
.carousel-set { display: flex; flex: none; }
.carousel-art { display: block; flex: none; width: clamp(330px, 46vw, 760px); overflow: hidden; }
.carousel-art img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .55s ease; }
.carousel-art:hover img { transform: scale(1.018); }
@keyframes carousel-scroll { to { transform: translateX(-50%); } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.release-preview { padding: clamp(4rem, 8vw, 7rem) var(--gutter); }
.release-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.5rem); }
.release-card { min-width: 0; }
.release-card:nth-child(2) { margin-top: clamp(0rem, 7vw, 6rem); }
.release-card:nth-child(3) { margin-top: clamp(0rem, 3vw, 2.5rem); }
.art-link { position: relative; display: block; overflow: hidden; border: var(--line); }
.art-link img { aspect-ratio: 1; width: 100%; object-fit: cover; transition: transform .6s ease; }
.art-link:hover img { transform: scale(1.035); }
.play-chip {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
}
.release-meta { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding-top: .85rem; }
.release-meta h3 { margin-bottom: .2rem; }
.release-meta p { margin: 0; font-size: var(--text-small); }
.catalogue { font-size: var(--text-caption); font-weight: 700; letter-spacing: .12em; }

.page-heading { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: var(--line); }
.page-heading h1 { margin-bottom: 0; }
.page-heading .lead { margin: 0; }

.catalogue-list { border-bottom: var(--line); }
.catalogue-row {
  display: grid;
  grid-template-columns: minmax(180px, 28vw) 1fr;
  min-height: 70vh;
  border-bottom: var(--line);
}
.catalogue-row:last-child { border-bottom: 0; }
.catalogue-art { position: sticky; top: 76px; align-self: start; border-right: var(--line); }
.catalogue-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.catalogue-info { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 5vw, 5rem); }
.catalogue-info h2 { max-width: 24ch; margin-bottom: .6rem; }
.catalogue-info .artist { font-family: Georgia, 'Times New Roman', serif; font-size: var(--text-lead); }
.tracklist { margin: 3rem 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.tracklist li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid currentColor; }
.tracklist span { font-size: var(--text-caption); font-weight: 700; }
.release-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.soundcloud-player { display: block; width: 100%; height: 166px; border: 0; background: white; }

.about-opening { padding-bottom: clamp(4rem, 8vw, 8rem); }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: var(--gutter); padding: clamp(4rem, 8vw, 8rem) 0; border-top: var(--line); }
.about-copy { max-width: 50rem; }
.about-copy p { margin-bottom: 1.5rem; font-size: var(--text-lead); }
.origin-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--coral);
}
.origin-panel img { position: absolute; right: -4rem; bottom: -6rem; width: min(52vw, 550px); opacity: .8; transform: rotate(16deg); }
.origin-panel h2 { position: relative; z-index: 1; max-width: 10ch; }

.about-photo { position: relative; margin: 0; background: var(--blue); }
.about-photo img { width: 100%; max-height: 86vh; object-fit: cover; object-position: center 52%; }
.about-photo figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  padding: .45rem .65rem;
  background: var(--paper);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.shop-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); }
.shop-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); background: var(--coral); border-right: var(--line); }
.shop-copy h1 { margin-bottom: 1.5rem; }
.shop-product { display: flex; flex-direction: column; justify-content: space-between; padding: var(--gutter); }
.product-art { position: relative; overflow: hidden; border: var(--line); background: var(--aqua); }
.product-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-art::after { content: "T-SHIRT"; position: absolute; right: 1rem; top: 1rem; padding: .45rem .65rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--acid); font-size: var(--text-caption); font-weight: 700; transform: rotate(8deg); }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; }
.product-foot h2 { margin: 0; font-size: var(--text-title); }

.shop-heading { background: var(--mint); }
.shop-heading > div:last-child { max-width: 46rem; }
.shop-heading > div:last-child > p:last-child { max-width: 35rem; margin: 1.4rem 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { min-width: 0; padding: clamp(1rem, 2.5vw, 2.5rem); border-bottom: var(--line); }
.product-card:nth-child(odd) { border-right: var(--line); }
.product-image { display: block; overflow: hidden; background: white; }
.product-image img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .55s ease; }
.product-image:hover img { transform: scale(1.018); }
.product-thumbnails { display: flex; gap: .55rem; margin-top: .7rem; }
.product-thumbnail {
  width: clamp(58px, 7vw, 92px);
  padding: 0 0 .3rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: .55;
  transition: opacity .18s ease, border-color .18s ease;
}
.product-thumbnail:hover, .product-thumbnail[aria-pressed="true"] { border-bottom-color: var(--coral); opacity: 1; }
.product-thumbnail:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.product-thumbnail img { width: 100%; aspect-ratio: 1; object-fit: cover; background: white; }
.product-meta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; padding: 1.25rem 0 .25rem; }
.product-meta h2 { margin: 0 0 .25rem; font-size: var(--text-title); }
.product-meta p { margin: 0; font-size: var(--text-small); }
.noscript-note { margin: 0; padding: 2rem var(--gutter); }

.demo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.demo-guide { position: sticky; top: 115px; }
.demo-guide ol { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.demo-guide li { counter-increment: steps; display: grid; grid-template-columns: 2.5rem 1fr; padding: 1rem 0; border-top: 1px solid var(--ink); }
.demo-guide li::before { content: "0" counter(steps); font-size: var(--text-caption); font-weight: 700; }
.demo-form { padding: clamp(1.5rem, 4vw, 3rem); border: var(--line); background: white; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .42rem; font-size: var(--text-caption); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%;
  padding: .9rem .8rem;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: #f5f3ed;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--acid); outline-offset: 2px; }
.form-note { margin: 1.5rem 0; font-size: var(--text-small); }
.form-status { min-height: 1.5rem; margin: .8rem 0 0; font-size: var(--text-small); font-weight: 700; }

.contact-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) var(--gutter); background: var(--blue); color: white; }
.contact-strip h2 { margin-bottom: 0; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
  border-top: var(--line);
  font-size: var(--text-caption);
  white-space: nowrap;
}
.site-footer p { margin: 0; }
.footer-signature { display: flex; align-items: center; gap: .5rem; }
.footer-signature img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: .3em; }
.footer-links a:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.footer-link-icon { display: none; }
@media (max-width: 800px) {
  .footer-signature { gap: .375rem; font-size: var(--text-caption); }
  .footer-signature img { width: 20px; height: 20px; }
  .footer-links { gap: 0; }
  .footer-links a { width: 44px; }
  .footer-link-label { display: none; }
  .footer-link-icon { display: block; }
}

@media (max-width: 800px) {
  .site-header { min-height: 66px; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem var(--gutter) 1rem;
    border-bottom: var(--line);
    background: var(--paper);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem; border-bottom: 1px solid rgba(17,17,15,.25); }
  .site-nav a::after { left: .75rem; right: auto; width: 2.5rem; bottom: .45rem; }
  .hero, .shop-hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 64vh; }
  .hero-art { min-height: 68vh; }
  .hero-symbol { min-height: 48vh; }
  .home-intro, .page-heading, .about-grid, .demo-layout { grid-template-columns: 1fr; }
  .home-intro .lead { margin-left: 0; }
  .release-grid { grid-template-columns: 1fr; }
  .release-card:nth-child(n) { margin-top: 0; }
  .carousel-heading { grid-template-columns: 1fr; }
  .carousel-heading .text-link { margin-top: 1.2rem; justify-self: start; }
  .carousel-art { width: 82vw; }
  .catalogue-row { grid-template-columns: 1fr; min-height: auto; }
  .catalogue-art { position: static; border-right: 0; border-bottom: var(--line); }
  .shop-copy { min-height: 55vh; border-right: 0; border-bottom: var(--line); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(odd) { border-right: 0; }
  .product-meta { grid-template-columns: 1fr; align-items: start; }
  .demo-guide { position: static; }
  .contact-strip { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .release-carousel { animation: none; }
}
