/* ==========================================================
   East Beleriand Recording Co.
   BRAND TOKENS: from the logo mark files
     forest #1d3422  ·  cream #e1d9b9
   ========================================================== */
:root {
  --c-forest:    #1d3422;  /* brand: logo-mark-forest */
  --c-cream:     #e1d9b9;  /* brand: logo-mark-cream  */

  --c-bg:        #f3efe2;  /* light tint of cream */
  --c-bg-alt:    #e9e2c9;  /* between tint and brand cream */
  --c-surface:   #faf8f0;
  --c-ink:       #1d3422;
  --c-ink-soft:  #4a5a4c;
  --c-accent:    #1d3422;
  --c-accent-2:  #8a7a45;  /* muted olive-gold, for small labels only */
  --c-line:      #d3c9a6;

  --f-logo: "EB Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--c-accent); }

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

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--f-logo);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-sm { font-size: 1.1rem; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--c-ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--c-ink); }
.site-nav .nav-cta {
  color: var(--c-surface); background: var(--c-accent);
  padding: 8px 16px; border-radius: var(--radius);
}
.site-nav .nav-cta:hover { color: var(--c-surface); background: var(--c-ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 80px 0 150px; overflow: hidden;
  background: var(--c-forest); color: var(--c-cream);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-mark { width: clamp(200px, 28vw, 320px); height: auto; margin-bottom: 20px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.78rem; font-weight: 600; color: var(--c-accent-2); margin: 0 0 20px;
}
.hero .eyebrow { color: color-mix(in srgb, var(--c-cream) 70%, transparent); margin: 0 0 28px; }
.logo-full {
  font-family: var(--f-logo);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0 0 18px;
}
.lede { font-size: 1.2rem; color: var(--c-ink-soft); max-width: 34em; margin: 0 0 36px; }
.hero .lede { color: color-mix(in srgb, var(--c-cream) 85%, transparent); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .btn-primary { background: var(--c-cream); color: var(--c-forest); }
.hero .btn-primary:hover { background: var(--c-surface); }
.hero .btn-ghost { border-color: var(--c-cream); color: var(--c-cream); }
.hero .btn-ghost:hover { background: var(--c-cream); color: var(--c-forest); }

.waveform {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background:
    repeating-linear-gradient(90deg, var(--c-line) 0 2px, transparent 2px 9px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 45 Q 50 10 100 45 T 200 45 T 300 40 Q 350 0 400 45 T 500 50 Q 560 85 620 45 T 740 45 Q 800 15 860 45 T 980 48 Q 1040 80 1100 45 T 1200 45 V 90 H 0 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 45 Q 50 10 100 45 T 200 45 T 300 40 Q 350 0 400 45 T 500 50 Q 560 85 620 45 T 740 45 Q 800 15 860 45 T 980 48 Q 1040 80 1100 45 T 1200 45 V 90 H 0 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.18;
}
.hero .waveform { background: repeating-linear-gradient(90deg, var(--c-cream) 0 2px, transparent 2px 9px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  font: 600 0.95rem var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--c-accent); color: var(--c-surface); }
.btn-primary:hover { background: var(--c-ink); }
.btn-ghost { border-color: var(--c-ink); color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-surface); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-title {
  font-family: var(--f-logo); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 40px;
}
.section-intro { color: var(--c-ink-soft); margin: -24px 0 40px; }
h3 { font-family: var(--f-logo); font-weight: 500; font-size: 1.45rem; margin: 0 0 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-accent); padding: 28px; border-radius: var(--radius);
}
.card p { margin: 0; color: var(--c-ink-soft); font-size: 0.97rem; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.work-item { margin: 0; display: flex; flex-direction: column; }
.work-art {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 1px 2px rgb(29 52 34 / .12), 0 12px 28px -12px rgb(29 52 34 / .35);
}
.work-item figcaption { padding-top: 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.work-item strong { font-family: var(--f-logo); font-weight: 500; font-size: 1.3rem; line-height: 1.25; }
.work-meta { color: var(--c-ink-soft); font-size: 0.92rem; }
.work-credit { color: var(--c-accent-2); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* Listening */
.listen-embed { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; margin-top: auto; }
.work-credit { margin-bottom: 14px; }
.player {
  display: flex; align-items: center; gap: 14px; height: 80px; margin-top: auto; padding: 0 16px;
  background: var(--c-forest); color: var(--c-cream); border-radius: 12px;
}
.player-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c-cream); color: var(--c-forest); display: grid; place-items: center;
}
.player-btn:hover { background: var(--c-surface); }
.player-btn:focus-visible, .player-seek:focus-visible { outline: 2px solid var(--c-cream); outline-offset: 2px; }
.player-btn svg { width: 22px; height: 22px; fill: currentColor; }
.player .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }
.player-body { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.player-title { font-size: 0.85rem; font-weight: 600; }
.player-time { font-size: 0.78rem; font-variant-numeric: tabular-nums; opacity: .8; }
.player-seek { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--c-cream); cursor: pointer; }

.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.about p { max-width: 36em; }
.gear { background: var(--c-surface); border: 1px solid var(--c-line); padding: 28px; border-radius: var(--radius); }
.gear h3 { margin-bottom: 16px; }
.gear dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; }
.gear dt { color: var(--c-accent-2); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.gear dd { margin: 0; color: var(--c-ink); font-size: 0.95rem; line-height: 1.5; }
.about-note { font-family: var(--f-logo); font-style: italic; font-size: 1.1rem; color: var(--c-ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-num { font-family: var(--f-logo); font-size: 1.1rem; color: var(--c-accent-2); letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--c-ink-soft); font-size: 0.97rem; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-direct { color: var(--c-ink-soft); }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; color: var(--c-ink);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.contact-form :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.contact-form button { justify-self: start; border: 0; }
.contact-form button:disabled { opacity: .6; cursor: progress; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: var(--c-forest); font-weight: 500; }
.form-status.err { color: #8a2c1d; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-forest); color: var(--c-cream); padding: 36px 0; font-size: 0.9rem; }
.site-footer .wordmark { color: var(--c-cream); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--c-ink); color: var(--c-ink);
    font: 500 0.9rem var(--f-body); padding: 7px 12px; border-radius: var(--radius); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 24px; background: var(--c-bg); border-bottom: 1px solid var(--c-line);
  }
  .site-nav.open { display: flex; }
  .wordmark { font-size: 1.1rem; }
  .hero { padding: 56px 0 120px; }
  .brand-mark { width: 36px; }
  .brand { gap: 8px; }
  .section { padding: 72px 0; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}
