/* DelArte Records: site stylesheet. Dark, typographic, restrained. */

/* Self-hosted fonts (latin subsets) */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

/* Palette and scale */
:root {
  --bg: #140a0d;
  --surface: #1f1216;
  --hairline: #3a2a2e;
  --ink: #efe7da;
  --muted: #b5a79b;
  --gold: #b08d4a;
  --disc: #0b0809;
  --oxblood: #4a1520;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --measure: 62ch;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Pin the footer to the viewport bottom on short pages (404, legal) */
main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus-visible {
  left: 0;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.35rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold);
}

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

@media (min-width: 880px) {
  .hero .wrap {
    grid-template-columns: 57fr 43fr;
  }
}

.hero-copy::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.2rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  font-optical-sizing: auto;
}

.hero .lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.hero-actions .quiet {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration-color: var(--gold);
}

.hero-actions .quiet:hover {
  color: var(--gold);
}

/* The disc: a record rendered tone on tone, product photography in code */
.disc {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--disc);
  box-shadow:
    0 0 0 1px rgba(239, 231, 218, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.55);
  /* Contain the rotor's rotated bounding box at the source */
  overflow: clip;
}

.disc-rotor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      closest-side circle at 50% 50%,
      transparent 0 96.4%,
      rgba(239, 231, 218, 0.07) 96.8% 98.4%,
      rgba(239, 231, 218, 0.02) 100%
    ),
    radial-gradient(
      closest-side circle at 50% 50%,
      transparent 0 44.5%,
      rgba(239, 231, 218, 0.05) 44.8% 45.2%,
      transparent 45.5% 61.5%,
      rgba(239, 231, 218, 0.05) 61.8% 62.2%,
      transparent 62.5% 77.5%,
      rgba(239, 231, 218, 0.05) 77.8% 78.2%,
      transparent 78.5%
    ),
    radial-gradient(
      closest-side circle at 50% 50%,
      var(--disc) 0 33%,
      transparent 33% 94%,
      var(--disc) 94%
    ),
    repeating-radial-gradient(
      closest-side circle at 50% 50%,
      var(--disc) 0 3px,
      rgba(239, 231, 218, 0.028) 3px 3.6px
    ),
    var(--disc);
  animation: disc-turn 60s linear infinite;
}

@keyframes disc-turn {
  to {
    transform: rotate(1turn);
  }
}

/* Static sheen: the light stays put while the record turns */
.disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    conic-gradient(
      from 318deg at 50% 50%,
      transparent 0deg,
      rgba(239, 231, 218, 0.05) 16deg,
      rgba(239, 231, 218, 0.02) 34deg,
      transparent 52deg,
      transparent 172deg,
      rgba(239, 231, 218, 0.035) 196deg,
      transparent 224deg
    ),
    radial-gradient(
      120% 120% at 30% 18%,
      rgba(239, 231, 218, 0.04),
      transparent 55%
    );
}

.disc-label {
  position: absolute;
  inset: 35%;
  margin: 0;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side circle at 50% 50%,
    var(--oxblood) 0 78%,
    #3e1119 100%
  );
  box-shadow:
    0 0 0 1px rgba(11, 8, 9, 0.9),
    0 0 0 2px rgba(239, 231, 218, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* percentages resolve against the disc width: 6% of disc = 1/5 of label */
  padding: 6% 2.5%;
  text-align: center;
}

.disc-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6.5%;
  height: 6.5%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--disc);
  box-shadow: 0 0 0 1px rgba(239, 231, 218, 0.05);
}

.disc-label span {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.44rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--gold);
  white-space: nowrap;
}

/* Sections */
.section {
  border-top: 1px solid var(--hairline);
}

.section .wrap {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--gold);
  vertical-align: 0.22em;
  margin-right: 0.7rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.008em;
  margin: 0 0 1.1rem;
  max-width: 24ch;
  font-optical-sizing: auto;
}

.section p {
  max-width: var(--measure);
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.section p strong {
  color: var(--ink);
  font-weight: 500;
}

.section p:last-child {
  margin-bottom: 0;
}

@media (min-width: 880px) {
  .section .wrap {
    display: grid;
    grid-template-columns: 16rem 1fr;
    gap: 2rem;
    align-items: start;
  }

  .section .section-head {
    grid-column: 1;
  }

  .section .section-body {
    grid-column: 2;
    padding-top: 0.4rem;
  }
}

/* Contact */
.contact-email {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-email a {
  color: var(--ink);
}

.demo-policy {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

.site-footer .wrap {
  padding-block: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.legal-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.legal-nav a {
  color: var(--muted);
  text-decoration-color: var(--gold);
}

.legal-nav a:hover {
  color: var(--gold);
}

/* Legal and utility pages: lighter, text-first */
.page-legal main .wrap {
  max-width: 760px;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  font-optical-sizing: auto;
}

.page-legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2.2rem 0 0.7rem;
}

.page-legal p,
.page-legal li {
  color: var(--muted);
  max-width: var(--measure);
}

.page-legal .updated {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.page-legal .back-home {
  display: inline-block;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* Reduced motion: fully static, no animation anywhere */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
