/* Shared styles for per-note SEO pages (matches main page aesthetic) */
:root {
  /* Tomato Hero light — matches main fretboard chrome */
  --bg-1: #faf6f1;
  --bg-2: #f3eee5;
  --surface: #ffffff;
  --surface-2: #faf6ed;
  --border: #e8dfcc;
  --border-soft: #f0e9da;
  --accent: #e85f4d;
  --accent-2: #d44a39;
  --accent-glow: rgba(232, 95, 77, 0.30);
  --gold: #f1c75a;          /* bright gold — glows / fretboard-panel border */
  --gold-ink: #9a6f12;      /* deep antique gold — readable gold text on light */
  --gold-deep: #a07820;
  --text: #1f1a14;
  --text-2: #5c5547;
  --text-dim: #8a8275;
  /* dark wood panel that frames the fretboard SVG (kept dark, like the guitar) */
  --card-bg-1: #2a1810;
  --card-bg-2: #1c0e08;
  --card-border: rgba(241, 199, 90, 0.14);
  --card-border-hover: rgba(241, 199, 90, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 235, 220, 0.55) 0%, transparent 70%),
    var(--bg-1);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  padding: 32px 20px 80px;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 880px;
  margin: 0 auto;
}

.back {
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 32px;
  letter-spacing: 1px;
  transition: color 0.15s;
}
.back:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  text-align: center;
  padding: 8px 0 40px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 8px;
  color: var(--gold-ink);
  opacity: 0.9;
  margin-bottom: 16px;
}
.hero-title {
  font-family: Georgia, "Noto Serif TC", "Noto Serif CJK", serif;
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 2px;
  line-height: 1.25;
  text-shadow: none;
}
.hero-title strong {
  color: var(--gold-ink);
  font-weight: 700;
}
.hero-subhead {
  font-size: 16px;
  color: var(--text-2);
  letter-spacing: 0.5px;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.hero-subhead strong {
  color: var(--gold-ink);
}

/* ============ Fretboard visual card ============ */
/* Dark wood panel framing the fretboard SVG — kept dark like the guitar,
   floating on the cream page with a softened warm shadow. */
.fretboard-wrap {
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      rgba(255, 220, 170, 0.02) 2px,
      transparent 4px),
    linear-gradient(180deg, #1c100a 0%, #120a06 100%);
  border: 1px solid rgba(241, 199, 90, 0.22);
  border-radius: 14px;
  padding: 18px;
  margin: 32px 0;
  box-shadow:
    0 14px 30px rgba(60, 40, 20, 0.22),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}
.fretboard-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ============ Primary CTA (mode-card style) ============ */
.cta-wrap {
  text-align: center;
  margin: 0 0 48px;
}
.cta {
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--accent);
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cta:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
  box-shadow: 0 10px 24px rgba(232, 95, 77, 0.40);
}
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ Content card (positions / about / tips / other notes) ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.06);
}

.card h2 {
  font-family: Georgia, "Noto Serif TC", "Noto Serif CJK", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-ink);
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  scroll-margin-top: 16px;
}

.card p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.75;
}
.card p:last-child { margin-bottom: 0; }
.card p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(232, 95, 77, 0.4);
  transition: border-color 0.15s;
}
.card p a:hover { border-color: var(--accent); }

/* Positions grid (2 columns on wider screens) */
.positions {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  padding: 0;
}
.positions li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  letter-spacing: 0.3px;
}
.positions strong {
  color: var(--gold-ink);
  font-weight: 600;
}

/* Note grid (Other notes — matches main page aesthetic) */
.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.note-pill {
  display: block;
  padding: 14px 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 16px;
  letter-spacing: 1px;
  transition: all 0.15s ease-out;
}
.note-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(60, 40, 20, 0.10);
}
.note-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ Site footer (matches main page) ============ */
.site-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--accent); }
.site-footer .sub {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* Skip-to-content for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============ Mobile ============ */
@media (max-width: 600px) {
  body { padding: 22px 14px 60px; }
  .hero { padding: 0 0 24px; }
  .hero-eyebrow { letter-spacing: 5px; font-size: 11px; }
  .hero-title { letter-spacing: 1px; }
  .card { padding: 22px 18px; margin-bottom: 16px; }
  .card h2 { font-size: 19px; }
  .fretboard-wrap { padding: 12px; margin: 24px 0; }
  .cta { padding: 14px 28px; font-size: 15px; }
  .positions { grid-template-columns: 1fr; }
  .site-footer-row { gap: 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
