:root {
  color-scheme: light;
  --color-paper: #f7f8f2;
  --color-mint: #e4eee2;
  --color-green: #557760;
  --color-deep: #20352a;
  --color-ink: #202820;
  --color-muted: #69736a;
  --color-line: #d5ddd2;
  --color-coral: #d27e63;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --content-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 max(6.2vw, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid rgba(32, 53, 42, .12);
}

.wordmark { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.wordmark span { color: var(--color-green); }
.wordmark small { color: var(--color-coral); font-size: 12px; }
.primary-navigation { display: flex; gap: 36px; margin-left: 50px; }
.primary-navigation a, .header-note { font-size: 13px; font-weight: 600; }
.primary-navigation a { color: var(--color-muted); transition: color .2s ease; }
.primary-navigation a:hover, .primary-navigation a:focus-visible { color: var(--color-deep); }
.header-note { color: var(--color-green); }
.header-note span { margin-left: 8px; color: var(--color-coral); }
.menu-toggle { display: none; }

.section-wrap { width: min(var(--content-width), 87.6%); margin-inline: auto; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  align-items: center;
  gap: 8.5%;
  min-height: 610px;
  padding-block: 66px 83px;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--color-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--color-coral); }
h1, h2, p, figure { margin-top: 0; }
h1, h2 { color: var(--color-deep); font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
h1 { margin-bottom: 22px; font-size: clamp(64px, 8vw, 108px); line-height: .91; }
h1 em { color: var(--color-green); font-weight: 500; }
.hero-intro { max-width: 355px; margin-bottom: 26px; color: var(--color-muted); font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; padding-bottom: 5px; border-bottom: 1px solid var(--color-green); color: var(--color-deep); font-size: 13px; font-weight: 700; }
.text-link span { color: var(--color-coral); }
.hero-photo { position: relative; height: 430px; margin: 0; }
.hero-photo img { height: 100%; object-fit: cover; }
.hero-photo::after { position: absolute; inset: 0; border: 1px solid rgba(32, 53, 42, .1); content: ""; pointer-events: none; }
.hero-photo figcaption { position: absolute; right: 0; bottom: -31px; display: flex; gap: 20px; color: var(--color-muted); font-size: 11px; }
.hero-photo figcaption span { color: var(--color-coral); font-weight: 700; }
.photo-stamp { position: absolute; top: 18px; left: -20px; display: grid; width: 54px; height: 54px; place-content: center; border-radius: 50%; background: var(--color-coral); color: white; font-size: 10px; font-weight: 700; line-height: 1.2; text-align: center; transform: rotate(-9deg); }
.hero-index { position: absolute; bottom: 28px; left: 0; color: var(--color-muted); font-size: 10px; letter-spacing: .04em; }

.music-section { padding-block: 91px 95px; background: var(--color-mint); background-image: repeating-linear-gradient(135deg, transparent 0 27px, rgba(85, 119, 96, .035) 27px 28px); }
.music-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 10%; }
.section-heading h2, .projects-heading h2 { margin-bottom: 18px; font-size: 52px; line-height: 1.03; }
.section-heading > p:not(.eyebrow) { max-width: 325px; color: var(--color-muted); }
.section-heading .security-note { margin-top: 31px; font-size: 11px; line-height: 1.6; }
.player-panel { padding: 29px; border: 1px solid rgba(32, 53, 42, .14); background: rgba(247, 248, 242, .78); }
.connection-form label { display: block; margin-bottom: 7px; color: var(--color-deep); font-size: 11px; font-weight: 700; }
.connection-form input, .search-form input { width: 100%; min-width: 0; border: 1px solid var(--color-line); border-radius: 0; outline: none; background: #fff; color: var(--color-ink); }
.connection-form input { height: 43px; margin-bottom: 17px; padding: 0 12px; }
.connection-form input:focus, .search-form input:focus { border-color: var(--color-green); box-shadow: 0 0 0 2px rgba(85, 119, 96, .13); }
.credential-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.button { min-height: 43px; padding: 0 17px; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.button-dark { background: var(--color-deep); color: white; }
.connect-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 2px; }
.connect-button span { color: #e8ab8d; }
.connection-status, .player-status { margin: 15px 0 0; color: var(--color-muted); font-size: 11px; }
.connection-status[data-state="error"], .player-status[data-state="error"] { color: #a34736; }
.connection-status[data-state="success"] { color: var(--color-green); }
.search-form { display: flex; }
.search-form input { height: 44px; padding: 0 13px; }
.search-button { flex: 0 0 45px; border: 0; background: var(--color-deep); color: white; cursor: pointer; font-size: 24px; }
.player-status { min-height: 18px; }
.search-results { display: grid; gap: 2px; max-height: 208px; margin: 0 0 18px; padding: 0; overflow-y: auto; list-style: none; }
.search-results:empty { display: none; }
.song-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 8px; border: 0; background: rgba(228, 238, 226, .7); cursor: pointer; text-align: left; }
.song-result:hover, .song-result[aria-pressed="true"] { background: #d5e5d4; }
.song-result strong, .song-result span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-result strong { font-size: 12px; }
.song-result span, .song-duration { color: var(--color-muted); font-size: 10px; }
.now-playing { display: flex; align-items: center; gap: 11px; padding-top: 17px; border-top: 1px solid var(--color-line); }
.track-art { display: grid; flex: 0 0 43px; height: 43px; place-items: center; background: var(--color-green); color: white; font-size: 21px; }
.track-copy { flex: 1; min-width: 0; }
.track-label { display: block; color: var(--color-muted); font-size: 9px; text-transform: uppercase; }
.track-copy strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.play-button { width: 36px; height: 36px; border: 1px solid var(--color-line); background: transparent; cursor: pointer; font-size: 12px; }
.play-button:disabled { cursor: not-allowed; opacity: .4; }
.disconnect-button { margin-top: 13px; padding: 0; border: 0; background: transparent; color: var(--color-muted); cursor: pointer; font-size: 10px; text-decoration: underline; }

.projects-section { padding-block: 95px 115px; }
.projects-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.projects-heading .eyebrow { margin-bottom: 14px; }
.projects-heading h2 { margin: 0; }
.project-count { padding-bottom: 7px; color: var(--color-muted); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.project-link { display: block; max-width: 500px; }
.project-photo { position: relative; height: 250px; margin: 0 0 17px; overflow: hidden; background: var(--color-mint); }
.project-photo img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-link:hover .project-photo img { transform: scale(1.035); }
.project-photo-offset { margin-top: 52px; }
.project-number { position: absolute; top: 14px; left: 14px; display: grid; width: 34px; height: 34px; place-items: center; background: var(--color-paper); color: var(--color-deep); font-size: 11px; font-weight: 700; }
.project-meta { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 25px; }
.project-meta span { color: var(--color-coral); font-family: var(--font-body); font-size: 16px; }
.project-subtitle { color: var(--color-muted); font-size: 11px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 95px; padding: 20px max(6.2vw, calc((100vw - var(--content-width)) / 2)); border-top: 1px solid var(--color-line); }
.site-footer p, .site-footer > a:last-child { margin: 0; color: var(--color-muted); font-size: 11px; }
.site-footer > a:last-child { color: var(--color-green); }

.project-page-main { display: grid; min-height: calc(100vh - 178px); place-items: center; padding-block: 70px; background-image: repeating-linear-gradient(135deg, transparent 0 27px, rgba(85, 119, 96, .035) 27px 28px); }
.project-page-content { width: min(var(--content-width), 87.6%); }
.project-page-content .eyebrow { margin-bottom: 19px; }
.project-page-content h1 { margin: 0; font-size: clamp(56px, 8vw, 94px); }
.project-page-content > p:last-child { margin-top: 18px; color: var(--color-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding-inline: 6.2%; }
  .header-note { display: none; }
  .menu-toggle { display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; border: 1px solid var(--color-line); background: transparent; }
  .menu-toggle span { width: 17px; height: 1px; background: var(--color-deep); }
  .primary-navigation { position: absolute; top: 69px; right: 0; left: 0; display: none; gap: 0; margin: 0; padding: 9px 6.2% 17px; border-bottom: 1px solid var(--color-line); background: var(--color-paper); }
  .primary-navigation.is-open { display: grid; }
  .primary-navigation a { padding: 11px 0; }
  .section-wrap { width: 87.6%; }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding-block: 60px 65px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(68px, 18vw, 100px); }
  .hero-photo { height: min(73vw, 390px); margin-left: 13px; }
  .hero-index { bottom: 23px; }
  .music-section { padding-block: 67px; }
  .music-layout { grid-template-columns: 1fr; gap: 29px; }
  .section-heading h2, .projects-heading h2 { font-size: 43px; }
  .section-heading .security-note { margin-top: 20px; }
  .player-panel { padding: 21px; }
  .projects-section { padding-block: 70px 80px; }
  .projects-heading { align-items: start; gap: 16px; }
  .project-count { max-width: 115px; padding-top: 34px; text-align: right; }
  .project-grid { grid-template-columns: 1fr; gap: 33px; }
  .project-link { max-width: none; }
  .project-photo { height: min(61vw, 310px); }
  .project-photo-offset { margin-top: 0; }
  .site-footer { flex-wrap: wrap; gap: 10px 20px; padding-inline: 6.2%; }
  .site-footer p { order: 1; width: 100%; }
  .project-page-main { min-height: calc(100vh - 190px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}