/* === Font === */
@font-face {
  font-family: 'Overused Grotesk';
  src: url('fonts/OverusedGrotesk-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* === Variables === */
:root {
  --bg: #eeeeee;
  --text: #222222;
  --accent: #f0c040;
  --font: 'Overused Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222222;
    --text: #eeeeee;
  }
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  height: 100%;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* === MOBILE LAYOUT === */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === Intro text === */
.text-content {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-content .line {
  display: block;
  margin-bottom: 0.4em;
}

.text-content .line:last-child {
  margin-bottom: 0;
}

/* === Vinyl === */
.vinyl {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.spinning-png {
  display: flex;
  justify-content: center;
  width: 100%;
}

.spinning-png img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

/* === Spin === */
.rotating {
  transform-origin: 50% 50%;
  animation: spin 1.8s linear infinite;
}

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

/* === Contact === */
.contact {
  text-align: center;
}

.contact-block {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* === TABLET / DESKTOP === */
@media (min-width: 600px) {
  body {
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
  }

  main {
    max-width: 560px;
    gap: 40px;
    flex: unset;
  }

  .vinyl {
    flex: unset;
    padding: 0;
  }

  .spinning-png img {
    max-width: 460px;
  }

  .text-content {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.15;
  }

  .contact-block {
    font-size: clamp(0.85rem, 2vw, 1rem);
    line-height: 1.4;
  }
}