/* TD Mastering: site styles. No build step, no external fonts. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #17181a;
  --muted: #5d6066;
  --line: #dcd8cf;
  --accent: #8a6a2f;
  --accent-ink: #ffffff;
  --dark: #141517;
  --dark-ink: #ece9e2;
  --radius: 6px;
  --max: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--muted); font-weight: 400; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font: inherit; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 1px solid var(--ink); cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav .btn { padding: 8px 14px; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark a { color: #d4b26e; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); margin-bottom: .8em; font-weight: 600; }
.section-dark .eyebrow { color: #a9a59c; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-bottom: 0; }

/* Hero */
.hero { padding: 88px 0 72px; background: var(--dark); color: var(--dark-ink); }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lead { color: #bdb9b0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { background: #d4b26e; border-color: #d4b26e; color: #141517; }
.hero .btn:hover { background: #fff; border-color: #fff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: #55575c; }
.hero .btn-ghost:hover { border-color: #fff; background: transparent; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.badges li { border: 1px solid #45474c; color: #d9d5cc; border-radius: 999px; padding: 5px 13px; font-size: .82rem; letter-spacing: .02em; }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .35em; }

/* Rates */
.rate { display: flex; flex-direction: column; }
.rate .price { font-family: var(--serif); font-size: 2.2rem; line-height: 1; margin: 6px 0 4px; }
.rate .unit { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.rate ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.rate .btn { margin-top: auto; align-self: flex-start; }
.note { font-size: .92rem; color: var(--muted); }

/* Credits */
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credits .who { font-weight: 600; }
.credits .what { color: var(--muted); grid-column: 1 / 2; font-size: .95rem; }
.credits .year { color: var(--muted); font-variant-numeric: tabular-nums; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.names { color: var(--muted); }
.credit-strip { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 0; font-family: var(--serif); font-size: 1.15rem; }

/* A/B player (styles for vendored AB-Audio-Player markup) */
.ab-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section-dark .ab-card { background: #1d1f22; border-color: #2e3034; }
.ab-card h3 { margin-bottom: 2px; }
.ab-card .ab-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.section-dark .ab-card .ab-meta { color: #a9a59c; }
.player__wrapper { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.progress__container { grid-column: 1 / -1; height: 8px; background: #d9d5cc; border-radius: 4px; cursor: pointer; overflow: hidden; }
.section-dark .progress__container { background: #34363a; }
.progress__fill { width: 0; height: 100%; background: var(--accent); }
.section-dark .progress__fill { background: #d4b26e; }
.ab__controls, .play__stop__controls { display: flex; gap: 6px; }
.ab__button, .play__pause__button { font: 600 .9rem var(--sans); min-width: 44px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
.section-dark .ab__button, .section-dark .play__pause__button { border-color: #45474c; }
.ab__button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.section-dark .ab__button[aria-pressed="true"] { background: #d4b26e; border-color: #d4b26e; color: #141517; }
button:disabled { opacity: .4; cursor: not-allowed; }
.ab-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.ab-placeholder-note { display: none; font-size: .85rem; margin: 12px 0 0; padding: 8px 10px; border: 1px dashed #6b6d72; border-radius: var(--radius); color: #a9a59c; }
.is-placeholder + .ab-placeholder-note { display: block; }

/* Forms */
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; font-size: .95rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #c9c4b9; border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-status { font-size: .95rem; margin: 0; }
.form-status.error { color: #9b2c2c; }
.upload-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px; }
.upload-box ol { padding-left: 20px; margin: 0 0 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.photo-slot { aspect-ratio: 4 / 5; border: 1px dashed #b5afa3; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 18px; background: var(--surface); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.timeline .when { color: var(--muted); font-variant-numeric: tabular-nums; }

/* CTA + footer */
.cta { text-align: left; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; }
.site-footer { padding: 36px 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-slot { max-width: 260px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 60px 0 52px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; padding: 12px 22px 20px; gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .credits li { grid-template-columns: 1fr; }
  .credits .year { grid-row: auto; grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.nav .btn[aria-current="page"] { color: #fff; text-decoration: none; background: var(--accent); border-color: var(--accent); }
