/* ============================================
   aochengsu.com — design tokens
   Palette: stage-dark ink, spotlight amber, deep teal, warm parchment for reading sections
   Type: Space Grotesk (display) / Source Serif 4 (body) / JetBrains Mono (labels, data)
   ============================================ */

/* Coolvetica (header) and Halenoir DemiBold (body) — the actual licensed files. */
@font-face {
  font-family: 'Coolvetica';
  src: url('/assets/fonts/coolvetica.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Halenoir';
  src: url('/assets/fonts/halenoir-demibold.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #16140f;
  --ink-2: #1f1c15;
  --paper: #ece2c9;
  --paper-2: #e3d7b8;
  --text-light: #f3efe4;
  --text-light-dim: #cabf9f;
  --text-dark: #1c1912;
  --text-dark-dim: #5a5340;
  --amber: #e3a23c;
  --amber-dim: #a67527;
  --teal: #3e7068;
  --line-dark: #3a362a;
  --line-light: #cdbf98;

  --font-display: 'Coolvetica', 'Space Grotesk', sans-serif;
  --font-body: 'Halenoir', 'Source Serif 4', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.paper-mode { background: var(--paper); color: var(--text-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 20, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand span { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a { opacity: .78; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--amber); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-light); font-size: 24px; cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--ink-2);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { display: block; padding: 16px 28px; border-top: 1px solid var(--line-dark); }
}

/* ---------- hero ---------- */
.hero {
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-size: cover;
  background-position: center;
}
/* Once a real photo is set via --hero-image, this darkens it for legible text.
   Add style="--hero-image:url('/assets/img/hero.jpg')" on the <header class="hero"> tag. */
.hero[style*="--hero-image"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero[style*="--hero-image"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,20,15,.55), rgba(22,20,15,.85));
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 20px;
}
.hero p.lede {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-light-dim);
  max-width: 52ch;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .waveform { max-width: 420px; }

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--amber);
  display: inline-block;
  transition: transform .15s, background .15s, color .15s;
}
.btn-solid { background: var(--amber); color: var(--ink); }
.btn-solid:hover { transform: translateY(-2px); background: #f0af4d; }
.btn-outline { color: var(--text-light); border-color: var(--line-light); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* waveform signature */
.waveform { width: 100%; height: auto; }
.waveform path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s ease forwards;
}
.waveform path.teal { stroke: var(--teal); animation-delay: .25s; opacity: .8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .waveform path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- follower ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 22px 0;
}
.ticker .wrap {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-light-dim);
}
.ticker .stat { display: flex; align-items: baseline; gap: 8px; }
.ticker .stat b { font-size: 20px; color: var(--text-light); font-family: var(--font-display); }
.ticker .stat .plat { color: var(--amber); }

/* ---------- sections ---------- */
section { padding: 88px 0; text-align: center; }
.section-head { max-width: 62ch; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.paper-mode section { }

/* Full-bleed background-image section. Set style="--section-image:url('/assets/img/whatever.jpg')" */
.bg-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--text-light);
}
.bg-section[style*="--section-image"]::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--section-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.bg-section[style*="--section-image"]::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(22,20,15,.72);
  z-index: 0;
}
.bg-section > .wrap { position: relative; z-index: 1; }

/* ---------- interior page hero ---------- */
.page-hero {
  padding: 140px 0 72px;
  text-align: center;
}
.page-hero .section-head { margin-bottom: 0; }

/* ---------- homepage roster background ---------- */
.roster-section { position: relative; overflow: hidden; }
.roster-bg { position: absolute; inset: 0; display: flex; flex-direction: row; flex-wrap: nowrap; z-index: 0; }
.roster-bg img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; filter: grayscale(45%) brightness(.55); }
.roster-overlay { position: absolute; inset: 0; background: rgba(22, 20, 15, .58); z-index: 1; }
.roster-section > .wrap { position: relative; z-index: 2; }
.hire-cta {
  border-top: 1px solid var(--line-dark);
  text-align: center;
  padding: 96px 0;
}
.hire-cta h2 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 16px; }
.hire-cta p { color: var(--text-light-dim); max-width: 46ch; margin: 0 auto 32px; font-size: 17px; }

/* singers grid */
.singers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .singers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .singers-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

.singer-card {
  position: relative;
  display: block;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ink-2);
}
.singer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.singer-card:hover img { transform: scale(1.06); }
.singer-card .overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.singer-card .name { font-family: var(--font-display); font-weight: 400; font-size: 16px; }
.singer-card .role { font-family: var(--font-mono); font-size: 11px; color: var(--amber); text-transform: uppercase; letter-spacing: .06em; }
.singer-card .play {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; opacity: 0; transition: opacity .2s;
}
.singer-card:hover .play { opacity: 1; }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.post-card .cover { aspect-ratio: 16/10; background: var(--ink-2); margin-bottom: 16px; overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .meta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin-bottom: 8px; }
.post-card h3 { font-size: 20px; margin-bottom: 8px; }
.post-card p { color: var(--text-light-dim); font-size: 15px; }

/* article */
.article-body { max-width: 68ch; margin: 0 auto; }
.article-body h1 { font-size: clamp(30px, 5vw, 44px); }
.article-body img { margin: 32px 0; }
.article-body p { margin-bottom: 22px; }
.article-meta { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-dim); margin-bottom: 24px; }

/* links page */
.link-list { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; text-align: center; }
.link-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 18px 22px; border: 1px solid var(--line-dark);
  transition: border-color .15s, transform .15s;
}
.link-item:hover { border-color: var(--amber); transform: translateX(4px); }
.link-icon { color: var(--amber); margin-bottom: 4px; display: inline-flex; }
.link-item .l-title { font-family: var(--font-display); font-weight: 400; font-size: 16px; }
.link-item .l-sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-light-dim); }
.link-item .arrow { font-family: var(--font-mono); color: var(--amber); }

/* contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 0 auto; text-align: center; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light-dim); display: block; margin-bottom: 8px; text-align: center; }
input, textarea, select {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  color: var(--text-light);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
  text-align: center;
}
select { text-align-last: center; }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-light-dim); margin-top: 14px; }

/* footer */
footer { border-top: 1px solid var(--line-dark); padding: 40px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-light-dim); }

.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
