:root {
  --ink: #17211c;
  --muted: #5b6660;
  --paper: #f8f7f2;
  --white: #ffffff;
  --line: #d8d5ca;
  --forest: #173d33;
  --ember: #b13f22;
  --gold: #b88746;
  --steel: #375461;
  --shadow: 0 24px 80px rgba(23, 33, 28, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 247, 242, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 213, 202, 0.74);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.92rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-menu a {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ink);
  border-color: var(--ember);
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.65rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  margin: 4px 0;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.08rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.button-primary {
  background: var(--ember);
  color: var(--white);
  box-shadow: 0 12px 36px rgba(177, 63, 34, 0.22);
}

.button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--forest);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.4rem 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.signal-row div {
  background: rgba(255, 255, 255, 0.68);
  padding: 1rem;
}

.signal-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-row dd {
  margin: 0.2rem 0 0;
  font-weight: 800;
}

.hero-portrait {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e7e4d9;
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.portrait-caption span {
  color: var(--muted);
}

.intro-section,
.content-section,
.band-section,
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) max(16px, calc((100% - 1180px) / 2));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.intro-grid p,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.role-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.role-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.role-card span {
  color: var(--gold);
  font-weight: 900;
}

.role-card p,
.project-card p,
.appearance-list p,
.timeline-item p {
  color: var(--muted);
}

.band-section {
  background: var(--forest);
  color: var(--white);
}

.band-section .section-kicker,
.band-section .project-type {
  color: #e2bd7e;
}

.band-section .section-heading p,
.band-section .timeline-item p,
.band-section .project-card p {
  color: rgba(255, 255, 255, 0.74);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-item {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-item time,
.project-type,
.tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.appearance-list {
  display: grid;
  gap: 0.85rem;
}

.appearance-list article {
  display: grid;
  grid-template-columns: minmax(128px, 0.28fr) minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.appearance-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.linkedin-link {
  color: var(--forest);
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.88rem;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  padding: 0.82rem 0.9rem;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(184, 135, 70, 0.25);
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

.company-field {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  color: var(--forest);
}

.admin-page {
  min-height: 100vh;
  background: var(--paper);
}

.admin-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-panel {
  width: min(520px, 100%);
}

.admin-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 0.75rem;
}

.admin-muted {
  color: var(--muted);
}

.admin-form {
  margin-top: 1.5rem;
}

.admin-alert {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(177, 63, 34, 0.28);
  border-radius: var(--radius);
  background: rgba(177, 63, 34, 0.08);
  color: var(--ember);
  font-weight: 800;
}

.admin-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.admin-stats div {
  background: var(--white);
  padding: 1rem;
}

.admin-stats dt,
.message-meta dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.admin-empty,
.message-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: 0 12px 44px rgba(23, 33, 28, 0.08);
}

.admin-empty p {
  color: var(--muted);
}

.message-list {
  display: grid;
  gap: 1rem;
}

.message-card {
  border-left: 5px solid var(--line);
}

.message-card.is-unread {
  border-left-color: var(--ember);
}

.message-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.message-card-head h2 {
  margin-bottom: 0.35rem;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.25;
}

.message-card-head p {
  margin: 0;
  color: var(--muted);
}

.message-card a {
  color: var(--forest);
  font-weight: 800;
}

.message-status {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--ember);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.message-body {
  padding: 1rem 0;
  white-space: normal;
}

.message-meta {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(120px, 0.2fr) minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.message-meta dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.9rem;
  }

  .hero,
  .intro-grid,
  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .role-grid,
  .timeline,
  .project-grid,
  .message-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appearance-list article {
    grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr);
  }

  .appearance-list article p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    font-size: 0.95rem;
  }

  .hero,
  .intro-section,
  .content-section,
  .band-section,
  .contact-section {
    width: auto;
    padding-left: 5%;
    padding-right: 5%;
  }

  .site-footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 4.6rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-row,
  .role-grid,
  .timeline,
  .project-grid,
  .appearance-list article,
  .message-meta {
    grid-template-columns: 1fr;
  }

  .portrait-caption {
    flex-direction: column;
    gap: 0.2rem;
  }

  .appearance-list article p {
    grid-column: auto;
  }

  .admin-header,
  .admin-dashboard-heading,
  .message-card-head,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
