@font-face {
  font-family: "Road Rage";
  src: url("../fonts/road-rage-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --color-bg: #0d0d0d;
  --color-surface: #171717;
  --color-ink: #f5f5f5;
  --color-muted: #a3a3a3;
  --color-line: #444;

  --font-display: "Road Rage", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --text-body: 1rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --text-title: clamp(4rem, 2.5rem + 6vw, 8rem);
  --text-hero: clamp(5rem, 3rem + 11vw, 13.5rem);

  --space-section: clamp(7rem, 5rem + 8vw, 12rem);
  --space-gap: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  --border: 2px solid var(--color-ink);
  --header-h: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg) url("../img/background-grunge.webp") center / cover fixed no-repeat;
  color: var(--color-ink);
  font: 400 var(--text-body) / 2 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }

h1, h2, h3, .button, .site-nav__list a {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

summary {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

main, .site-footer {
  width: calc(100% - 4rem);
  margin-inline: auto;
}

main { padding-top: 5.5rem; }

.hero, .about { width: 100%; margin-inline: auto; }

.section { padding-top: var(--space-section); }
.section:first-child { padding-top: 0; }

.section__title {
  font-size: var(--text-title);
  line-height: 1;
  text-align: center;
  margin-bottom: var(--space-gap);
}

.button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: var(--border);
  font-size: var(--text-lg);
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.button:hover, .button:focus-visible { background: var(--color-ink); color: var(--color-bg); }

.frame { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.frame__barcode { width: 137px; height: 44px; }
.frame__box { width: 100%; flex: 1; padding: 1rem; border: var(--border); }
.frame__box picture { display: block; height: 100%; }
.frame__box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.75); }

.skip-link {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 200;
  padding: 0.5rem 1rem; background: var(--color-ink); color: var(--color-bg);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 2rem 1.5rem; pointer-events: none;
}
.site-nav { display: flex; justify-content: flex-end; pointer-events: auto; }

.site-nav__list { display: none; gap: 2rem; }
.site-nav__list a {
  font-size: var(--text-lg);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.site-nav__list a:hover { color: var(--color-muted); }

.site-nav__toggle {
  position: relative; z-index: 120; width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border: var(--border); border-radius: 50%;
  background: var(--color-bg); color: inherit; cursor: pointer;
}
.site-nav__bars, .site-nav__bars::before, .site-nav__bars::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}
.site-nav__bars { position: relative; }
.site-nav__bars::before, .site-nav__bars::after { content: ""; position: absolute; left: 0; }
.site-nav__bars::before { top: -6px; }
.site-nav__bars::after { top: 6px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__bars { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav__list.is-open {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; background: var(--color-bg);
}
.site-nav__list.is-open a { font-size: 2.5rem; }

main { display: block; }

.hero { min-height: 100vh; display: flex; flex-direction: column; gap: 5rem; }
.hero__lead { width: 100%; font: 400 2.5rem / 2.5rem var(--font-display); }
.hero__grid { display: grid; gap: 2rem; flex: 1; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__title { font-size: var(--text-hero); line-height: 0.9; letter-spacing: -0.02em; }
.hero__figure { min-height: 22rem; }

.music { display: flex; flex-direction: column; align-items: center; }
.music .button { margin-top: var(--space-gap); }
.album { margin-inline: auto; }
.album__link { display: block; text-decoration: none; }
.album__art {
  --size: clamp(12.5rem, 40vw, 21.875rem);
  position: relative; width: var(--size); height: var(--size); margin-bottom: 1rem;
}
.album__art > picture, .album__art img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.album__badge {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 4;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 1rem; background: var(--color-ink); color: var(--color-bg);
  border: 2px solid var(--color-bg);
  font: 400 2rem / 2rem var(--font-display);
}
.album__badge img { width: 30px; height: 17px; }
.album__vinyl {
  position: absolute; top: 0; right: -3rem; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--color-ink) 0 7%, #222 7% 9%, transparent 9%),
    repeating-radial-gradient(circle, #1a1a1a 0 2px, #2a2a2a 2px 4px);
  box-shadow: 0 0 0 2px #333;
  transition: right 0.5s ease;
  animation: spin 6s linear infinite;
}
.album__link:hover .album__vinyl, .album__link:focus-visible .album__vinyl { right: -6rem; }
.album__link:hover .album__title { text-decoration: underline; }
.album__title { font-size: var(--text-xl); line-height: 1; }
.album__artist { font-weight: 600; text-transform: uppercase; color: var(--color-muted); }

@keyframes spin { to { transform: rotate(360deg); } }

.about__grid { display: grid; gap: 2.5rem; }
.about__text { display: flex; flex-direction: column; gap: 1.5rem; }
.about__lead { font-size: var(--text-xl); line-height: 1.25; }
.about__text p { max-width: 62ch; }
.about__figure { min-height: 22rem; }

.talk { max-width: 50rem; margin-inline: auto; }
.faq { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; border: 3px solid var(--color-ink); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: var(--text-xl); line-height: 0.70; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M1.5 1L0 2.5l4 4l4-4L6.5 1L4 3.5L1.5 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--color-muted); }
.faq__answer { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
.talk__footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1rem; }

.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  padding: var(--space-section) 0 2rem; text-align: center;
}
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.social a {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem;
  border-radius: 50%; background: var(--color-ink); color: var(--color-bg);
  transition: filter 0.2s;
}
.social a:hover, .social a:focus-visible { filter: brightness(0.7); }
.social svg { width: 2.2rem; height: 2.2rem; fill: currentColor; }

.player {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.25rem; border: 1px solid var(--color-line); border-radius: 3rem;
  background: var(--color-surface); box-shadow: 0 5px 25px rgb(0 0 0 / 0.35);
  font-size: 0.8rem; line-height: 1.4;
}
.player[hidden] { display: none; }
.player__btn {
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  color: var(--color-ink); background: transparent;
}
.player__btn--play { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-ink); color: var(--color-bg); }
.player__btn--next { width: 1.75rem; height: 2rem; }
.player__btn:hover { opacity: 0.7; }
.player__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.player__icon--play {
  border-style: solid; border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent currentColor; margin-left: 3px;
}
.player__icon--pause { width: 12px; height: 16px; border: solid currentColor; border-width: 0 4px; }
.player__icon--next {
  position: relative; width: 16px; height: 12px;
  border-style: solid; border-width: 6px 0 6px 9px;
  border-color: transparent transparent transparent currentColor;
}
.player__icon--next::after {
  content: ""; position: absolute; top: -6px; right: -7px; width: 3px; height: 12px; background: currentColor;
}
.player__info { min-width: 8.5rem; }
.player__info strong, .player__info small { display: block; }
.player__info small { color: var(--color-muted); }

@media (min-width: 48em) {
  main { padding-top: 7rem; }
  .hero__lead { max-width: 50%; }
  .site-nav__toggle { display: none; }
  .site-nav__list { display: flex; }
  .hero__grid { grid-template-columns: 2fr 1fr; align-items: stretch; }
  .hero__figure { min-height: 31rem; }
}

@media (min-width: 64em) {
  .hero { gap: 8rem; }
  .hero__lead { max-width: 33.3333%; }
  .about__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .about__figure { min-height: 31rem; }
}

@media (min-width: 80em) {
  .hero, .about { max-width: 80%; }
}

@media (max-width: 47.99em) {
  .player { right: 1.25rem; }
  .album__vinyl { right: -2rem; }
}

:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }

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