/* Arbor Sound — static site styles
   Palette: moss-dark rooms, lichen text, a single brass accent (think VU needle / knob caps),
   and a pale sapwood surface for long-form reading. */

:root {
  --moss: #18211d;
  --moss-raised: #202b26;
  --line: #34433b;
  --lichen: #e6e3d6;
  --sage: #a2aea1;
  --brass: #d4ad62;
  --brass-deep: #b8913f;
  --sapwood: #e1e5d5;
  --bark: #1f2621;
  --bark-muted: #4d5a51;

  --display: "Gloock", "Iowan Old Style", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--moss);
  color: var(--lichen);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--brass); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--brass); color: var(--moss); padding: 8px 14px; z-index: 50; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 66ch; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.01em; }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.wordmark svg path { fill: none; stroke: var(--brass); stroke-width: 1.4; }

.nav ul { list-style: none; display: flex; gap: clamp(16px, 3vw, 36px); margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--sage); font-size: var(--step--1); font-weight: 500; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--lichen); }
.nav a[aria-current="page"] { color: var(--lichen); border-bottom-color: var(--brass); }
.nav .nav-book { color: var(--moss); background: var(--brass); padding: 8px 16px; border-radius: 999px; border: 0; }
.nav .nav-book:hover, .nav .nav-book[aria-current="page"] { color: var(--moss); background: var(--lichen); }

.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--lichen); font: inherit; font-size: var(--step--1); padding: 8px 14px; border-radius: 999px; cursor: pointer; }

@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; inset: 72px 0 auto 0; background: var(--moss); border-bottom: 1px solid var(--line); display: none; z-index: 20; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 14px 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--brass); }
  .nav .nav-book { margin-top: 16px; text-align: center; padding: 12px; }
  .site-header { position: relative; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 var(--step--1)/1 var(--text); text-decoration: none; padding: 15px 24px; border-radius: 999px; border: 1px solid var(--brass); cursor: pointer; }
.btn-solid { background: var(--brass); color: var(--moss); }
.btn-solid:hover { background: var(--lichen); border-color: var(--lichen); }
.btn-ghost { background: transparent; color: var(--lichen); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 120px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 { max-width: 12ch; }
.hero .lede { font-size: var(--step-1); color: var(--sage); line-height: 1.5; margin-top: 28px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.rings { width: 100%; max-width: 520px; justify-self: end; aspect-ratio: 1; }
.rings .ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.rings .ring:nth-child(-n+4) { stroke: var(--brass); }
.rings .ring:nth-child(n+5):nth-child(-n+7) { stroke: color-mix(in srgb, var(--brass) 55%, var(--line)); }
.rings .pith { fill: var(--brass); }

@media (prefers-reduced-motion: no-preference) {
  .rings .ring { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: grow 1.6s cubic-bezier(.3,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
  .rings .pith { opacity: 0; animation: fade .6s ease forwards; }
  @keyframes grow { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
}

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .rings { order: -1; max-width: 300px; justify-self: start; margin-bottom: 8px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--sage); margin: 0; max-width: 44ch; }

/* Work grid: album covers linking to each release page */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px) clamp(12px, 2vw, 24px); }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-link { display: block; text-decoration: none; }
.work-link .artist { display: block; margin-top: 12px; font-size: var(--step--1); font-weight: 600; line-height: 1.35; }
.work-link .title { display: block; font-size: var(--step--1); color: var(--sage); line-height: 1.35; }
.cover { position: relative; display: block; aspect-ratio: 1; background: var(--moss-raised); overflow: hidden; border-radius: 3px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%2318211d'/%3E%3C/svg%3E") center / 22px no-repeat; opacity: 0; transform: scale(.85); transition: opacity .18s ease, transform .18s ease; }
.work-link:hover .cover::after, .work-link:focus-visible .cover::after { opacity: 1; transform: none; }
.work-link:hover .title { color: var(--lichen); }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12%; text-align: center; font-family: var(--display); font-size: var(--step-1); line-height: 1.1; color: var(--sage); background: radial-gradient(circle at 40% 42%, transparent 0 18%, var(--line) 18.5% 19%, transparent 19.5% 32%, var(--line) 32.5% 33%, transparent 33.5% 48%, var(--line) 48.5% 49%, transparent 49.5%), var(--moss-raised); }

/* Release pages */
.album { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 104px); }
.back { margin: 0 0 clamp(20px, 3vw, 36px); font-size: var(--step--1); }
.back a { color: var(--sage); text-decoration: none; }
.back a::before { content: "\2190\00a0"; }
.back a:hover { color: var(--lichen); }
.album-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.album-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--moss-raised); position: sticky; top: 24px; }
.album-grid > .cover-fallback { position: relative; aspect-ratio: 1; border-radius: 4px; }
.album-artist { margin: 0 0 8px; color: var(--brass); font-weight: 600; }
.album-info h1 { font-size: var(--step-3); }
.album-meta { color: var(--sage); margin: 14px 0 28px; }
.am-player { display: block; width: 100%; max-width: 660px; height: 450px; border: 0; border-radius: 10px; overflow: hidden; background: var(--moss-raised); color-scheme: dark; }
.sp-player { display: block; width: 100%; max-width: 660px; height: 80px; border: 0; border-radius: 12px; background: var(--moss-raised); color-scheme: normal; }
.album-out { margin-top: 16px; font-size: var(--step--1); }
.album-out .sep { color: var(--sage); margin: 0 4px; }
.tracks-h { font-size: var(--step-1); margin-top: clamp(36px, 5vw, 56px); }
.tracks { list-style: none; margin: 14px 0 0; padding: 0; max-width: 660px; border-top: 1px solid var(--line); }
.tracks li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.t-no, .t-time { color: var(--sage); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.t-name { overflow-wrap: anywhere; }
.t-artist { display: block; color: var(--sage); font-size: var(--step--1); }
.album-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: 24px; }
.album-nav a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.album-nav a[rel="next"] { text-align: right; }
.album-nav .dir { font-size: var(--step--1); color: var(--sage); }
.album-nav a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--brass); }
@media (max-width: 760px) {
  .album-grid { grid-template-columns: 1fr; }
  .album-cover { position: static; max-width: 420px; }
}

/* Pedigree band (pale) */
.band-light { background: var(--sapwood); color: var(--bark); border-top: 0; }
.band-light a { color: var(--bark); }
.band-light .muted { color: var(--bark-muted); }
.pedigree { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.pedigree blockquote { margin: 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.25; }
@media (max-width: 820px) { .pedigree { grid-template-columns: 1fr; } }

/* Service rows */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: minmax(180px, 0.9fr) 1.6fr; gap: 12px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-list h3 { font-size: var(--step-2); }
.service-list p { color: var(--sage); margin: 0; }
.service-list .spec { display: block; margin-top: 8px; color: var(--brass); font-size: var(--step--1); font-weight: 600; }
@media (max-width: 680px) { .service-list li { grid-template-columns: 1fr; } }

/* CTA */
.cta { text-align: left; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 16ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .mail { color: var(--sage); }

/* ---------- Page headers ---------- */
.page-head { padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.page-head p { color: var(--sage); font-size: var(--step-1); line-height: 1.5; margin-top: 20px; max-width: 46ch; }

/* ---------- About ---------- */
.studio-photo { aspect-ratio: 16 / 9; object-position: 50% 30%; width: 100%; object-fit: cover; border-radius: 3px; background: var(--moss-raised); }
.bio { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.6fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.bio .portrait { position: sticky; top: 24px; }
.bio .portrait img { width: 100%; aspect-ratio: 776/1000; object-fit: cover; border-radius: 3px; background: #c9cfbd; }
.bio .portrait .who { margin-top: 14px; font-family: var(--display); font-size: var(--step-1); }
.bio .portrait .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: var(--step--1); }
.bio-text { font-size: var(--step-1); line-height: 1.65; }
.bio-text p { max-width: 62ch; }
.bio-text p:first-child::first-line { font-weight: 600; }
@media (max-width: 820px) { .bio { grid-template-columns: 1fr; } .bio .portrait { position: static; max-width: 340px; } }

.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line); }
.path li { position: relative; padding-top: 36px; }
.path li::before { content: ""; position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--brass); background: var(--moss); box-shadow: inset 0 0 0 4px var(--moss), inset 0 0 0 5px var(--brass); }
.path li:last-child::before { background: var(--brass); box-shadow: none; }
.path h3 { font-size: var(--step-1); }
.path p { color: var(--sage); font-size: var(--step--1); margin-top: 6px; }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .path li { padding: 0 0 28px 40px; }
}

/* ---------- Services ---------- */
.formats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.formats li { border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 1px solid var(--brass); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-size: var(--step-2); color: var(--brass); margin-bottom: 10px; }
.steps p { color: var(--sage); font-size: var(--step--1); margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.clients { color: var(--sage); }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }
.booking aside .email { font-family: var(--display); font-size: var(--step-2); text-decoration: none; display: inline-block; margin: 8px 0 28px; border-bottom: 1px solid var(--brass); }
.booking aside ol { padding-left: 1.2em; color: var(--sage); }
.booking aside li { margin-bottom: 6px; }

form.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; background: var(--moss-raised); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, fieldset.full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.inquiry { grid-template-columns: 1fr; } }
label, legend { font-size: var(--step--1); font-weight: 600; }
.hint { font-weight: 400; color: var(--sage); }
input, select, textarea { font: inherit; color: var(--lichen); background: var(--moss); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 25%, transparent); }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sage) 50%), linear-gradient(135deg, var(--sage) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.checks input { width: auto; accent-color: var(--brass); margin: 0; }
.checks label:has(input:checked) { border-color: var(--brass); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: var(--step--1); color: var(--sage); }
.form-status.ok { color: var(--brass); }
.form-status.err { color: #e59a8a; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--sage); font-size: var(--step--1); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lichen); }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
