:root {
  color-scheme: dark;
  --navy: #091b2e;
  --panel: #10243a;
  --red: #a72332;
  --ivory: #eee9e2;
  --rose: #f4d4d6;
  --muted: #b8c2cf;
  --rule: #8c3945;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--ivory);
  padding: 24px;
  font-family: Georgia, serif;
}

.frame {
  width: min(100%, 900px);
  margin: 0 auto;
  border: 12px solid var(--red);
  background: var(--panel);
  padding: clamp(24px, 6vw, 70px);
}

.intro,
.muted,
.contact {
  text-align: center;
}

h1 {
  margin: 22px 0 28px;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  text-align: center;
}

h3 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  color: var(--rose);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}

p {
  max-width: 700px;
  margin: 0 auto 22px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.7;
}

small {
  color: #d6a9ad;
  font: 600 12px Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.directory {
  max-width: 700px;
  margin: clamp(48px, 8vw, 72px) auto 0;
}

.legend {
  margin-bottom: 42px;
  color: var(--muted);
  font: 15px/1.6 Arial, sans-serif;
  text-align: center;
}

.service-period + .service-period {
  margin-top: 38px;
}

.service-period ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-period li {
  padding: 5px 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
}

.service-period a {
  color: var(--ivory);
  text-decoration: none;
}

.service-period a:hover {
  color: var(--ivory);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.service-period a:focus-visible {
  color: var(--ivory);
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.combat {
  margin-left: 0.2em;
  color: var(--rose);
  font-weight: 700;
}

.muted {
  margin: 48px 0 35px;
  color: var(--muted);
  font: 14px Arial, sans-serif;
}

.contact {
  border-top: 1px solid var(--rule);
  padding-top: 25px;
  font: 15px/1.8 Arial, sans-serif;
}

a {
  color: var(--rose);
}

a:hover,
a:focus-visible {
  color: var(--ivory);
}

.player-frame {
  width: min(100%, 1100px);
  padding: clamp(18px, 4vw, 46px);
}

.hero-slide {
  display: block;
  width: 100%;
  height: auto;
}

.player-content {
  max-width: 760px;
  margin: 42px auto 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font: 600 14px Arial, sans-serif;
}

.player-content h1 {
  margin: 0 0 26px;
}

.bio-section {
  margin-top: 42px;
}

.bio-section h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.gallery-grid figcaption {
  margin-top: 9px;
  color: var(--muted);
  font: 14px/1.5 Arial, sans-serif;
}

.citation-list {
  margin: 0;
  padding-left: 1.4em;
  font: 15px/1.7 Arial, sans-serif;
}

.citation-list li + li {
  margin-top: 12px;
}

.citation-list a {
  overflow-wrap: anywhere;
  text-decoration: none;
}

.citation-list a:hover,
.citation-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .frame {
    border-width: 7px;
    padding: 28px 20px;
  }

  .player-frame {
    padding: 12px;
  }
}
