/* Haibo Phanda site styles v5 */

:root {
  --black: #000000;
  --panel: #111111;
  --line: #2a2a2a;
  --white: #ffffff;
  --muted: #b8b8b8;
  --accent: #E35336;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
  padding: 0;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* Hero */

.hero {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 17ch;
}

.lead {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 19px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
}

.button-solid {
  background: var(--accent);
  color: var(--black);
}

.button-solid:hover {
  background: var(--white);
  border-color: var(--white);
}

.button-line {
  color: var(--white);
}

.button-line:hover {
  background: var(--accent);
  color: var(--black);
}

.text-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--white);
}

/* Bands */

.band {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

/* Focus cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 32px;
}

.card-index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-index span {
  color: var(--accent);
  margin-left: 8px;
}

.card h3 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

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

.card .text-link {
  display: inline-block;
  margin-top: 22px;
}

/* Pilot */

.band-pilot {
  background: var(--panel);
}

.pilot-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.figure-number {
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.figure-caption {
  margin-top: 16px;
  font-weight: 600;
  max-width: 22ch;
}

.pilot-copy h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.pilot-copy p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 62ch;
}

.partners {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.partners li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.partners strong {
  color: var(--white);
  font-weight: 700;
}

/* Split sections */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.statement {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.split > div:last-child p {
  color: var(--muted);
  max-width: 52ch;
}

.band-about {
  border-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

.footer-thanks {
  color: var(--accent);
  font-weight: 700;
}

/* Small screens */

@media (max-width: 800px) {
  .hero {
    padding: 64px 0 72px;
  }

  .band {
    padding: 56px 0;
  }

  .cards,
  .pilot-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-nav ul {
    gap: 4px 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .text-link,
  .site-nav a {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
}

/* Added in v2: inner page hero, article text and photographs */

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

.photo {
  margin: 0;
}

.page-hero {
  padding: 72px 0 0;
}

.page-hero h1 {
  max-width: 20ch;
}

.subtitle {
  margin-top: 24px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--muted);
}

.photo-hero {
  margin-top: 48px;
}

.photo-hero img,
.photo-wide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-hero img {
  object-position: center 10%;
}

.band-article {
  padding-top: 64px;
  border-bottom: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 56px 0 16px;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
}

.prose .opening {
  color: var(--white);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
}

.prose .thanks {
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 56px 0;
}

.photo-pair img {
  width: 100%;
}

.photo-wide {
  margin: 56px 0;
}

.photo-wide:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .page-hero {
    padding-top: 48px;
  }

  .photo-pair {
    gap: 12px;
    margin: 40px 0;
  }

  .photo-wide {
    margin: 40px 0;
  }
}

/* Added in v3: three photographs in a row */

.photo-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0;
}

.photo-trio img {
  width: 100%;
}

@media (max-width: 800px) {
  .photo-trio {
    gap: 8px;
    margin: 40px 0;
  }
}

/* Added in v4: Insights list and article pages */

.insights-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
}

.insights-list .text-link {
  flex: 1 1 320px;
  font-size: 17px;
  color: var(--white);
  text-decoration: none;
}

.insights-list .text-link:hover {
  color: var(--accent);
}

.list-date {
  font-size: 14px;
  white-space: nowrap;
}

.page-hero h1.article-title {
  font-size: clamp(30px, 4.2vw, 48px);
  max-width: 24ch;
}

.article-body h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 36px 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong,
.article-body b {
  color: var(--white);
  font-weight: 700;
}

.article-body a:not(.text-link) {
  color: var(--accent);
  text-underline-offset: 3px;
}

.article-body a:not(.text-link):hover {
  color: var(--white);
}

.article-body blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.article-body .article-back {
  margin-top: 56px;
}

/* Added in v5: collapsible Insights list */

.insights-list li {
  display: block;
  padding: 0;
}

.insights-list summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.insights-list summary::-webkit-details-marker {
  display: none;
}

.insights-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.insights-list details[open] summary::after {
  content: "-";
}

.insights-list summary:hover {
  color: var(--accent);
}

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

.insights-list details p {
  margin-bottom: 12px;
}

.insights-list details p:last-child {
  margin-bottom: 20px;
}

.insights-list .list-sub {
  color: var(--white);
  font-weight: 600;
}

.insights-list details .text-link {
  font-size: 15px;
  color: var(--accent);
  text-decoration: underline;
}
