/* ---------- fonts ---------- */
@font-face {
  font-family: "Söhne";
  src: url("fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("fonts/soehne-halbfett.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --black:    #0A0A0A;
  --charred:  #1A1614;
  --silver:   #C9CCD1;
  --emerald:  #2D8F6A;

  --silver-dim:  rgba(201, 204, 209, 0.55);
  --silver-rule: rgba(201, 204, 209, 0.12);

  --sans: "Söhne", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --col-width: 480px;
  --pad-x: clamp(24px, 6vw, 56px);
  --pad-y: clamp(56px, 10vh, 120px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }

/* ---------- base ---------- */
html { background: var(--black); }
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--silver);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-feature-settings: "onum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);

  opacity: 0;
  animation: fade-in 1.2s ease 0.1s forwards;
}

/* grain overlay — non-negotiable per brandkit, 8% opacity */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- main column ---------- */
main {
  width: 100%;
  max-width: var(--col-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 auto;
  justify-content: center;
}

/* ---------- wordmark (silver with leading-j emerald, rhymes with profile mark) ---------- */
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(72px, 14vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--silver);
  margin: 0;
}

.wordmark > span {
  display: block;
}

.wordmark-accent {
  display: inline;
  color: var(--emerald);
}

/* ---------- caption ---------- */
.caption {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* ---------- sections ---------- */
.section {
  width: 100%;
  margin-top: clamp(56px, 10vh, 100px);
}

.section-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin: 0 0 20px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--silver-rule);
}

.section-out {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition: color 220ms ease;
}
.section-out:hover,
.section-out:focus-visible { color: var(--silver); }

/* ---------- spotify embed ---------- */
.embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--charred);
}
.embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  filter: grayscale(0.3) brightness(0.95);
  transition: filter 350ms ease;
}
.embed:hover iframe,
.embed:focus-within iframe {
  filter: grayscale(0.2) brightness(1);
}

/* ---------- links ---------- */
.links {
  width: 100%;
  border-top: 1px solid var(--silver-rule);
}

.link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--silver-rule);
  color: var(--silver);
  transition: color 220ms ease;
}

.link-icon {
  width: 20px;
  height: 20px;
  color: var(--silver-dim);
  transition: color 220ms ease;
  flex-shrink: 0;
}

.link-name {
  font-weight: 600;
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.link-handle {
  font-weight: 400;
  font-size: 13px;
  color: var(--silver-dim);
  letter-spacing: -0.005em;
  transition: color 220ms ease;
}

.link-arrow {
  display: inline-block;
  font-weight: 400;
  font-size: 18px;
  color: var(--silver-dim);
  transform: translate(0, 0);
  transition: transform 220ms ease, color 220ms ease;
}

.link:hover .link-handle,
.link:focus-visible .link-handle,
.link:hover .link-icon,
.link:focus-visible .link-icon { color: var(--silver); }

.link:hover .link-arrow,
.link:focus-visible .link-arrow {
  transform: translate(3px, -3px);
  color: var(--silver);
}

.link:focus-visible {
  outline: 1px solid var(--silver-rule);
  outline-offset: 6px;
}

/* ---------- footer ---------- */
footer {
  width: 100%;
  max-width: var(--col-width);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding-top: 64px;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  .link {
    grid-template-columns: auto 1fr auto;
    row-gap: 4px;
  }
  .link-icon   { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .link-name   { grid-column: 2; grid-row: 1; }
  .link-handle { grid-column: 2; grid-row: 2; }
  .link-arrow  { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; }
  .link, .link-handle, .link-arrow { transition: none; }
}
