/* jadewang.me — styles
   Palette and type match the Rare Earth artwork and the MOO card. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --navy: #0c2a50;      /* matches the header artwork's sky */
  --navy-2: #163a68;    /* raised panels on navy */
  --cream: #f5e6c9;
  --blue: #8fb7e3;      /* labels on navy */
  --orange: #f47a28;    /* primary action */
  --muted: #4b5d76;     /* secondary text on cream (5:1) */
  --rule: rgba(12, 42, 80, 0.3);

  --pad: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 8vw, 120px);
  --max: 1200px;

  --sans: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: "DM Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol { margin: 0; }

a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 12px 16px; background: var(--cream); color: var(--navy);
  font-family: var(--mono); font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- type helpers ---------- */
.display { font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; line-height: 0.92; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.kicker {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase;
}
.label {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase;
  color: var(--blue);
}

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 4px 32px;
  max-width: 1328px; margin: 0 auto; padding: 20px var(--pad);
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-stretch: 125%; font-weight: 800;
  font-size: 18px; letter-spacing: 0.04em; line-height: 1;
}
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; line-height: 1; text-transform: uppercase;
}
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav .ext { color: var(--blue); }
.site-nav .divider { width: 1px; height: 16px; background: var(--blue); opacity: 0.6; }

/* ---------- hero ---------- */
.hero-text {
  max-width: 1328px; margin: 0 auto;
  padding: 40px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.hero-kicker {
  align-self: flex-start; color: var(--blue); text-decoration: none;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase;
}
.hero-title { font-size: clamp(52px, 9vw, 136px); line-height: 0.9; }
.hero-art img {
  width: 100%; height: auto; min-height: 260px;
  object-fit: cover; object-position: 35% 50%;
}

/* ---------- album ---------- */
.album {
  background: var(--cream); color: var(--navy);
  padding: var(--section-y) var(--pad);
}
.album .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px;
}
.album-cover { flex: 1 1 320px; max-width: 560px; }
.album-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.album-text {
  flex: 1 1 360px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.album-title { font-size: clamp(56px, 7vw, 96px); }
.album-title span { display: block; }
.album-sub { font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; line-height: 1.4; text-transform: uppercase; }
.album-intro { max-width: 520px; }

.tracklist {
  list-style: none; padding: 0; margin-top: 4px;
  width: 100%; max-width: 560px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; line-height: 1.3;
}
.track {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  min-height: 52px; border-top: 1px solid var(--rule);
}
.track:first-child { border-top: 1.5px solid var(--navy); }
.track:last-child { border-bottom: 1px solid var(--rule); }
.track-title { font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0; word-break: keep-all; }
.track-links { display: flex; gap: 16px; }
.track-links a, .track > a {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500;
  text-transform: uppercase;
}
.track-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-transform: uppercase; }
.track--soon .track-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.track--wip { color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.button {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px;
  border-radius: 2px; text-decoration: none;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.button--primary { background: var(--orange); color: var(--navy); }
.button--primary:hover { background: #ff8c3f; color: var(--navy); }
.button--outline { border: 1.5px solid currentColor; }
.button--outline:hover { background: var(--navy); color: var(--cream); }

/* ---------- listen & watch ---------- */
.media { padding: var(--section-y) var(--pad); }
.media .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px 48px; }
.media-col { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.media-col--spotify { flex: 1 1 380px; }
.media-col--youtube { flex: 1.2 1 480px; }
.media-head { display: flex; flex-direction: column; gap: 8px; }
.media-head h2 { font-size: 40px; line-height: 1; }
.more-link {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}

.spotify-embed {
  display: block; width: 100%; height: 352px; border: 0; border-radius: 12px;
  background: var(--navy-2);
}

.yt {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--navy-2);
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster {
  position: absolute; inset: 0; display: block; padding: 0; border: 0; cursor: pointer;
  background: none; color: inherit; font: inherit; text-decoration: none; width: 100%;
}
.yt-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.yt-poster:hover .yt-play { transform: scale(1.06); }
.yt-label {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: var(--navy);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; line-height: 1.4;
  text-transform: uppercase; color: var(--blue);
}

/* ---------- made for the songs ---------- */
.made {
  background: var(--cream); color: var(--navy);
  padding: var(--section-y) var(--pad);
}
.made .wrap { display: flex; flex-direction: column; gap: 48px; }
.made-title { font-size: clamp(40px, 5vw, 64px); }
.made-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 48px;
}
.made-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-decoration: none; }
.made-card:hover { color: inherit; } /* orange text fails contrast on cream */
.made-card picture { align-self: stretch; }
.made-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.made-card h3 { font-size: clamp(28px, 3vw, 36px); text-transform: uppercase; word-break: keep-all; }
.made-card p:not(.kicker) { max-width: 560px; }
.made-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.made-card:hover .made-link { text-decoration-thickness: 2px; }

/* ---------- about ---------- */
.about {
  position: relative; overflow: hidden; background: var(--cream); color: var(--navy);
  padding: var(--section-y) 20px;
}
.about-bg { position: absolute; inset: 0; }
.about-bg img { width: 100%; height: 100%; object-fit: cover; }
.about-card {
  position: relative; max-width: 640px; margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 40px); background: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.about-card img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.about-card h2 { font-size: 48px; line-height: 1; }
.about-card h2 ~ p { font-size: 19px; line-height: 1.6; text-wrap: balance; }
@media (max-width: 640px) { .about-card h2 ~ p { text-wrap: pretty; } } /* balance only applies to short paragraphs */
.about-card a:hover { color: inherit; text-decoration-thickness: 2px; } /* orange text fails contrast on cream */

/* ---------- band + footer ---------- */
.band img { width: 100%; height: 160px; object-fit: cover; object-position: 50% 96%; }

.site-footer { padding: 80px var(--pad) 48px; }
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px 64px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .display { font-size: 32px; line-height: 1; letter-spacing: 0.02em; }
.footer-brand .mono { font-size: 14px; letter-spacing: 0.08em; color: var(--blue); }
.footer-links {
  display: grid; grid-template-columns: 96px auto; align-items: center; column-gap: 16px;
  margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1;
}
.footer-links dt { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.footer-links dd { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.footer-legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(143, 183, 227, 0.35);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; line-height: 1.4; color: var(--blue);
  text-transform: uppercase;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-nav { gap: 0 12px; font-size: 12px; letter-spacing: 0.08em; }
  .site-nav .divider { display: none; }
  .hero-text { padding-top: 24px; }
  .track { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; font-size: 13px; }
  .track-title { font-size: 16px; }
  .track-links { gap: 12px; }
  .about-card img { width: 160px; height: 160px; }
  .about-card h2 { font-size: 40px; }
  .yt-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}
