/* Jim DeWitt — dark editorial theme adapted from the Alanna Mahon site.
   Accent shifted from Alanna's pink to the string-light amber of the hero
   photo. Georgia serif headlines, letterspaced caps eyebrows, pill buttons. */

:root {
  --bg: #171310;
  --header-bg: rgba(23, 19, 16, 0.92);
  --ink: #F2ECE2;
  --sub: #C7BCAD;
  --muted: #948878;
  --line: #2E2721;
  --tile: #241F19;
  --panel: #1D1813;
  --accent: #E0A34E;
  --accent-hover: #C88C3C;
  --scrim: rgba(27, 23, 20, 0.45);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --pad-x: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #1B1714;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 12px; top: 12px; }

.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;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.wordmark:hover { color: var(--accent-hover); }

.header-right { display: flex; align-items: center; gap: 14px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.site-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); }
.hamburger span:last-child { width: 14px; background: var(--accent); }

/* ---------- Mobile drawer ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--scrim);
  animation: scrimIn 0.2s ease;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(320px, 85vw);
  background: var(--bg);
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(27, 23, 20, 0.18);
  display: none;
  flex-direction: column;
}

.drawer.open { display: flex; animation: drawerIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer-scrim.open { display: block; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .drawer-title { font-family: var(--serif); font-size: 20px; }
.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 8px 10px;
  color: var(--ink);
}

.drawer-nav { display: flex; flex-direction: column; padding: 12px 20px 40px; font-family: var(--sans); }
.drawer-nav > a {
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}

/* ---------- Layout ---------- */

main { flex: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }

.home-main { animation: fadeUp 0.5s ease both; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 82vh;
  overflow: hidden;
  background: #1B1714;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias the crop toward the top so wide viewports keep Jim's head in frame */
  object-position: 50% 20%;
  opacity: 0.88;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 23, 20, 0.72) 0%, rgba(27, 23, 20, 0.1) 55%);
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--pad-x) 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #F2D8AC;
  margin: 0 0 16px;
}
.hero-player {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
  padding: 22px 30px 24px 24px;
  background: rgba(29, 24, 19, 0.78);
  border: 1px solid rgba(224, 163, 78, 0.55);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-player-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
}
.hero-player-row { display: flex; align-items: center; gap: 18px; }
.hero-player-toggle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: rgba(224, 163, 78, 0.16);
  color: var(--accent);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.hero-player-toggle:hover { background: var(--accent); color: #1B1714; transform: scale(1.05); }
.hero-player-info { display: flex; flex-direction: column; gap: 4px; }
.hero-player-name { font-family: var(--serif); font-size: 30px; color: #FAF7F2; }
.hero-player-credit { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--sub); }
.hero-player-length { font-size: 13px; color: var(--sub); letter-spacing: 0.08em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 999px;
}
.btn-solid { background: #FAF7F2; color: #1B1714; }
.btn-solid:hover { background: #fff; color: #1B1714; }
.btn-ghost { background: transparent; color: #FAF7F2; border: 1px solid rgba(250, 247, 242, 0.6); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.hero :focus-visible { outline-color: #FAF7F2; }

/* ---------- Sections ---------- */

.section-eyebrow {
  font-family: var(--sans);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(224, 163, 78, 0.55);
  margin: 0 0 28px;
}

/* ---------- Track list ---------- */

.music {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 88px;
  scroll-margin-top: 64px;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.track {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 18px 8px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}
.track:hover { background: var(--tile); }
.track-num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 26px;
}
.track-state {
  font-size: 11px;
  color: var(--accent);
  min-width: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.track:hover .track-state { opacity: 1; }
.track.playing .track-state { opacity: 1; }
.track-name {
  font-family: var(--serif);
  font-size: 22px;
  flex: 1;
}
.track.playing .track-name { color: var(--accent); }
.track-credit { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.track-length { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.track.unavailable { opacity: 0.45; cursor: default; }

.spotify-link { margin-top: 32px; }

/* ---------- About ---------- */

.home-about {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.home-about .about-wrap {
  padding-top: 64px;
  padding-bottom: 72px;
}

.about-bio {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 36px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 26px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-fact { display: flex; flex-direction: column; gap: 8px; }
.about-fact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.about-fact-value { font-family: var(--serif); font-size: 19px; line-height: 1.45; word-break: break-word; }

/* ---------- Contact ---------- */

.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 72px;
  scroll-margin-top: 64px;
}
.contact-lead { font-size: 17px; line-height: 1.6; color: var(--sub); margin: 0 0 36px; max-width: 620px; }
.contact-blocks { display: flex; flex-direction: column; gap: 22px; }
.contact-block { display: flex; flex-direction: column; gap: 6px; }
.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.contact-email { font-family: var(--serif); font-size: 30px; word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.footer-copy { font-size: 12px; color: var(--muted); }

/* ---------- Player bar ---------- */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--pad-x);
  background: rgba(29, 24, 19, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  animation: fadeUp 0.3s ease both;
}
.player[hidden] { display: none; }

.player-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.player-btn:hover { color: var(--accent); border-color: var(--accent); }
.player-toggle { border-color: var(--accent); color: var(--accent); }

.player-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-title {
  font-family: var(--serif);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-timeline { display: flex; align-items: center; gap: 10px; }
.player-time { font-size: 12px; color: var(--muted); min-width: 36px; letter-spacing: 0.06em; }
.player-time:last-child { text-align: right; }

.player-seek {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  accent-color: var(--accent);
}
.player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.player-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
}

/* Keep the player bar from covering the footer when open */
body.player-open { padding-bottom: 76px; }

/* ---------- Projects page ---------- */

.projects-wrap { padding-top: 64px; padding-bottom: 88px; }

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 40px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  max-width: 980px;
}
.project-art { width: 100%; height: auto; border-radius: 10px; }
.project-status {
  display: inline-block;
  align-self: start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(224, 163, 78, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.project-info { display: flex; flex-direction: column; align-items: flex-start; }
.project-title { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.project-role { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--sub); margin: 0 0 14px; text-transform: uppercase; }
.project-desc { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--sub); margin: 0; }

/* ---------- Private workspace ---------- */

.ws-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(224, 163, 78, 0.5);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.ws-body { padding-top: 56px; padding-bottom: 88px; }
.ws-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}
.ws-side { position: sticky; top: 88px; }
.ws-art { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.ws-heading {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--accent);
  font-size: 24px;
  margin: 44px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ws-empty { font-size: 16px; color: var(--muted); margin: 0; }
.ws-track { margin: 0 0 28px; }
.ws-track-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.ws-track-name { font-family: var(--serif); font-size: 21px; }
.ws-track-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.ws-track audio { display: none; }
.wsp {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  padding: 10px 20px 10px 12px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.wsp.playing { border-color: rgba(224, 163, 78, 0.5); }
.wsp-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(224, 163, 78, 0.12);
  color: var(--accent);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
}
.wsp-toggle:hover { background: var(--accent); color: #1B1714; }
.wsp-time { font-size: 12px; color: var(--muted); min-width: 34px; letter-spacing: 0.06em; }
.wsp-seek {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  accent-color: var(--accent);
}
.wsp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.wsp-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
}
.ws-track-notes { font-size: 15px; color: var(--sub); line-height: 1.55; margin: 8px 0 0; max-width: 640px; }
.ws-track-assoc { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.ws-track-dl { margin-left: auto; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.ws-track-dl:hover { border-color: var(--accent); color: var(--accent-hover); }
.ws-assoc-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-right: 10px; }
.ws-note { font-size: 17px; line-height: 1.6; color: var(--sub); margin: 0; }
.ws-email { color: var(--accent); }

/* ---------- Responsive ---------- */


@media (max-width: 767px) {
  :root { --pad-x: 20px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .wordmark { font-size: 15px; letter-spacing: 0.24em; }
  .hero { height: 78vh; }
  .hero-copy { padding: 0 var(--pad-x) 40px; }
  .hero-player { padding: 16px 20px; }
  .hero-player-toggle { width: 52px; height: 52px; font-size: 18px; }
  .hero-player-name { font-size: 22px; }
  .music { padding-top: 40px; padding-bottom: 56px; }
  .track-name { font-size: 19px; }
  .section-eyebrow { font-size: 34px; }
  .about-bio { font-size: 18px; }
  .project-card { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .project-title { font-size: 27px; }
  .ws-top { grid-template-columns: 1fr; gap: 36px; }
  .ws-side { position: static; order: -1; max-width: 420px; }
  .ws-body { padding-top: 36px; }
  .home-about .about-wrap { padding-top: 44px; padding-bottom: 48px; }
  .about-facts { grid-template-columns: 1fr; gap: 20px; }
  .contact-email { font-size: 24px; }
  .player { gap: 10px; }
  .player-prev, .player-next { display: none; }
}
