/* jlordmusic.com. Colors and fonts are decided in docs/DECISIONS.md:
   cool gray paper, near-black, teal accent, Space Grotesk headings, Inter body.
   The Worship Key Planner section alone uses the app's plum and gold. */
:root {
  --paper: #f2f3f0;
  --tint: #e6e8e4;
  --card: #ffffff;
  --edge: #dcdfd9;
  --edge-strong: #d3d7d0;
  --ink: #16181a;
  --muted: #565b5f;
  --night: #16181a;
  --night-raised: #26292b;
  --night-edge: #33373a;
  --on-night: #f2f3f0;
  --on-night-muted: #d5d8d3;
  --on-night-faint: #b3b8bb;
  --night-line: #868b8f;
  --accent: #5cc8c2; /* on dark */
  --accent-deep: #0f6e6a; /* on light */
  --accent-deeper: #0a5552;
  --wkp-plum: #6c4a91;
  --wkp-gold: #e2b566;
  --wkp-text: #f3ede4;
  --heading: 'Space Grotesk', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
a {
  color: var(--accent-deep);
}
a:hover {
  color: var(--accent-deeper);
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.section-tight {
  padding-top: 0;
}
#work {
  padding-bottom: 48px;
}
.narrow {
  max-width: 768px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.split-main {
  flex: 999 1 520px;
  min-width: 0;
}
.split-side {
  flex: 1 1 280px;
}
.intro {
  margin: 8px 0 32px;
  color: var(--muted);
  max-width: 640px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.lede {
  font-size: 19px;
  max-width: 600px;
}

/* Dark sections */
.dark {
  background: var(--night);
  color: var(--on-night);
}
.dark .lede {
  color: var(--on-night-muted);
}
.dark strong {
  color: var(--on-night);
}
.tinted {
  background: var(--tint);
}

/* Header */
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-night);
  text-decoration: none;
}
.wordmark:hover {
  color: var(--on-night);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
nav a {
  color: var(--on-night);
  text-decoration: none;
  padding: 10px 12px;
  font-size: 15px;
}
nav a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}
nav a.btn-accent {
  color: var(--ink);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover {
  background: #7ed6d1;
  color: var(--ink);
}
.btn-outline {
  border-color: var(--night-line);
  color: var(--on-night);
  font-weight: 500;
}
.btn-outline:hover {
  border-color: var(--on-night);
  color: var(--on-night);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero .wrap {
  padding-top: 72px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* Worship Key Planner: the app's own plum and gold */
.wkp {
  background: var(--wkp-plum);
  color: #ffffff;
}
.wkp .wrap {
  padding-top: 80px;
  padding-bottom: 80px;
}
.wkp .eyebrow {
  color: var(--wkp-gold);
  letter-spacing: 0;
}
.wkp .display {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
}
.wkp-tagline {
  font-family: var(--heading);
  font-size: 24px;
  color: var(--wkp-text);
}
.wkp .lede {
  color: var(--wkp-text);
  font-size: 18px;
}
.btn-gold {
  background: var(--wkp-gold);
  color: #2b2724;
}
.btn-gold:hover {
  background: #ecc887;
  color: #2b2724;
}
.btn-outline-light {
  border-color: #d8c9ea;
  color: #ffffff;
  font-weight: 500;
}
.btn-outline-light:hover {
  border-color: #ffffff;
  color: #ffffff;
}
.wkp-art {
  display: flex;
  justify-content: center;
}
.wkp-flip {
  width: min(240px, 60vw);
}
.wkp-flip svg {
  display: block;
}
.wkp-art img {
  width: min(240px, 60vw);
  height: auto;
  border-radius: 52px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.25);
}

/* Tracks */
.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.track {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.track-info {
  min-width: 0;
}
.track-info p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}
.track-info .time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  min-height: 1em;
}
.play {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--night);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* progress ring, set by main.js */
  --p: 0;
  box-shadow: inset 0 0 0 0 transparent;
  position: relative;
}
.play::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 4px;
}
.play[aria-pressed='true']::before {
  width: 14px;
  height: 18px;
  border: none;
  margin-left: 0;
  background: linear-gradient(
    to right,
    currentColor 0 5px,
    transparent 5px 9px,
    currentColor 9px 14px
  );
}
.play::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-deep) calc(var(--p) * 1turn), transparent 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  pointer-events: none;
}
.play-alt {
  background: var(--accent-deep);
  color: #ffffff;
}
.play-alt::after {
  background: conic-gradient(var(--ink) calc(var(--p) * 1turn), transparent 0);
}

/* Show choir chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  border: 1px solid #50555a;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
}

/* Roles */
.roles {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.roles li {
  background: var(--paper);
  border: 1px solid var(--edge-strong);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roles h3 {
  font-size: 22px;
  font-weight: 500;
}
.roles p {
  color: var(--muted);
  font-size: 16px;
}

/* About */
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 24px;
}
.label {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

/* Contact */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.form .row label {
  flex: 1 1 240px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.form input,
.form textarea {
  font: inherit;
  font-size: 17px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--night-line);
  background: var(--night-raised);
  color: var(--on-night);
}
.form button {
  align-self: flex-start;
}
.form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.6em;
  color: var(--on-night-muted);
}
.form-status.error {
  color: #ffb4a8;
}

.footer {
  border-top: 1px solid var(--night-edge);
  color: var(--on-night-faint);
  font-size: 14px;
}
.footer .wrap {
  padding-top: 24px;
  padding-bottom: 24px;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 500;
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Footer links */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer a {
  color: inherit;
}
.footer a:hover {
  color: var(--on-night);
}

/* Privacy and other text pages */
.prose {
  max-width: 680px;
}
.prose h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 8px;
}
.prose p {
  margin-bottom: 12px;
}
