/*
  Novo Passage site styles.
  RULE: no hex codes in this file, or any file in /site. Every color comes
  from design-system/tokens.css. See that file's header comment for the
  full WCAG contrast table behind these choices.
*/

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

body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

img { max-width: 100%; }

/* Custom focus ring, oasis-deep (not the lighter oasis blue) so it stays
   visible at >=3:1 against both the cream and sand backgrounds it can land on */
:focus-visible {
  outline: 2px solid var(--color-accent-oasis-deep);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--color-bg-surface);
  background: var(--color-bg-page);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.site-nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-bottom-color: var(--color-accent-warm);
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .site-nav { flex-direction: column; gap: var(--space-2); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
}
.btn-primary:hover {
  background: var(--color-cta-bg-hover);
  color: var(--color-cta-text-hover);
}
.btn-nav {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
}

/* ---- Hero (homepage only) ---- */
.hero {
  padding: var(--space-9) var(--space-5) var(--space-8);
  background: linear-gradient(180deg, var(--color-bg-page) 0%, var(--color-bg-surface) 100%);
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-5);
}
.hero .subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
}

/* ---- Page header (What I Automate / About) ---- */
.page-header {
  padding: var(--space-8) var(--space-5) var(--space-6);
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin: 0 auto var(--space-4);
  max-width: 720px;
}
.page-header h1 .line {
  display: block;
}
.page-header .intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}
.headshot {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 4px solid var(--color-bg-surface);
  box-shadow: var(--shadow-md);
  margin: 0 auto var(--space-6);
}

@media (max-width: 480px) {
  .hero h1 { font-size: var(--text-3xl); }
  .page-header h1 { font-size: var(--text-2xl); }
}

/* ---- Body sections ---- */
section { padding: var(--space-7) var(--space-5); }
.section-inner {
  max-width: 720px;
  margin: 0 auto;
}
.section-inner p { margin: 0 0 var(--space-5); }
.section-inner p:last-child { margin-bottom: 0; }
.divider-accent {
  border: none;
  border-top: 3px solid var(--color-accent-warm);
  width: 64px;
  margin: var(--space-6) auto;
}

/* ---- Setlist (What I Automate) ---- */
.setlist-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  text-align: center;
  margin: 0 0 var(--space-7);
}
.tracks {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.track {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}
.track-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  line-height: 1;
  flex-shrink: 0;
  min-width: 1.6em;
}
.track-content { flex: 1; min-width: 0; }
.track h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-warm);
  margin: 0 0 var(--space-2);
}
.track p { margin: 0; }

@media (max-width: 480px) {
  .track { gap: var(--space-3); }
  .track-num { font-size: var(--text-2xl); }
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--color-bg-surface);
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-bg-surface);
  padding: var(--space-6) var(--space-5);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--color-text-muted); }
