/* Aaron Wolff Music — near-monochrome editorial look.
   Off-white paper, near-black ink, grayscale throughout. Instrument Serif
   display, Archivo body. Deliberately unlike wolffsound.com's dark card grid. */

:root {
  --paper: #f8f7f5;
  --paper-deep: #efeeeb;
  --ink: #161514;
  --muted: #6b6a67;
  --accent: #161514;
  --line: rgba(22, 21, 20, 0.18);
  --hover-tint: rgba(22, 21, 20, 0.045);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;
}

/* dark mode follows the system preference */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --paper-deep: #0a0a09;
    --ink: #ebeae7;
    --muted: #94928e;
    --accent: #ebeae7;
    --line: rgba(235, 234, 231, 0.18);
    --hover-tint: rgba(235, 234, 231, 0.06);
  }
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--paper) 60%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

em { font-style: italic; }

/* ---- staggered page-load reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(0.6rem);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---- header ---- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 5rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand em { color: var(--muted); }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- hero ---- */
.hero { margin-bottom: 4.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 15em;
}
.hero h1 em { color: var(--muted); }
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  max-width: 28em;
  color: var(--muted);
}

.feature-photo {
  width: 100%;
  height: auto;
  margin-top: 2.4rem;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--line);
}

/* five-line staff divider (empty for now — room for marks later) */
.staff {
  margin-top: 2.4rem;
  height: 25px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0, var(--line) 1px,
    transparent 1px, transparent 6px
  );
  position: relative;
}

/* ---- sections ---- */
section { margin-bottom: 5rem; }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}
.section-index {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  vertical-align: 0.5em;
  margin-right: 0.5rem;
  letter-spacing: 0.08em;
}

/* ---- selected work ---- */
.works { counter-reset: work; }
.work-group-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 2.2rem 0 0.4rem;
}
.work-list { list-style: none; }
.work-row {
  counter-increment: work;
  border-bottom: 1px solid var(--line);
}
.work-row:first-child { border-top: 1px solid var(--line); }
.work-link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.work-link::before {
  content: counter(work, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted);
}
.work-link:hover, .work-link:focus-visible { background: var(--hover-tint); padding-left: 0.6rem; }
.work-title { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.work-role { color: var(--muted); font-size: 0.92rem; text-align: right; }
.work-year { color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }

/* ---- services ---- */
.service-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.service .for {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.service p { color: var(--muted); font-size: 0.98rem; }

/* ---- about ---- */
.about-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.about p { max-width: 38em; color: var(--muted); }
/* grayscale keeps the portrait in the monochrome system; delete the filter
   line to run it in color */
.portrait {
  width: min(240px, 40vw);
  height: auto;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--line);
}

/* ---- footer / contact ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  text-align: center;
}
.contact-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
}
.contact-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.contact-email:hover { color: var(--muted); }
.fine { margin-top: 2.5rem; color: var(--muted); font-size: 0.85rem; }
.fine + .fine { margin-top: 0.4rem; }
.fine-link { color: var(--muted); }
.fine-link:hover { color: var(--ink); }

/* ---- small screens ---- */
@media (max-width: 40rem) {
  .site-header { flex-direction: column; gap: 0.6rem; margin-bottom: 3.5rem; }
  .service-pair { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .portrait { width: min(320px, 70vw); justify-self: center; }
  .work-link { grid-template-columns: auto 1fr auto; }
  .work-role { grid-column: 2 / 4; grid-row: 2; text-align: left; }
}
