:root {
  --navy: #0c1b2a;
  --navy-light: #162d46;
  --gold: #c4995c;
  --gold-light: #d4ad72;
  --cream: #f5f0e8;
  --warm-white: #fdfbf7;
  --slate: #3a4a5c;
  --text-light: #6b7280;
  --border: #e2ddd4;
}

body {
  min-height: 100vh;
  background: var(--warm-white);
  color: var(--navy);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1152px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 27, 42, 0.97);
  border-bottom: 1px solid rgba(196, 153, 92, 0.2);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.brand {
  display: grid;
  text-decoration: none;
}

.brand-name {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.header-track-record,
.back-link {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-track-record:hover,
.header-track-record:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--gold-light);
}

.case-hero {
  min-height: calc(100vh - 76px);
  padding: 132px 24px 80px;
  background: linear-gradient(180deg, var(--navy) 0, var(--navy) 380px, var(--warm-white) 380px);
  box-sizing: border-box;
}

.case-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.65);
}

.case-detail,
.case-error {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(12, 27, 42, 0.08);
}

.case-header {
  padding: clamp(32px, 7vw, 64px);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.case-kicker,
.section-label {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a5a20;
}

.case-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-header h1,
.case-error h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  color: var(--navy);
}

.case-outcome {
  margin-top: 30px;
  font-family: "Libre Caslon Display", "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
  color: var(--navy);
}

.case-citation {
  margin: 12px 0 0;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--text-light);
}

.case-narrative {
  padding: clamp(32px, 7vw, 64px);
}

.case-narrative p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--slate);
}

.case-error {
  padding: clamp(40px, 8vw, 72px);
}

.case-error p {
  max-width: 600px;
  margin: 20px 0 28px;
  color: var(--slate);
}

.primary-link,
.case-read-more {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.7px;
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-link:hover,
.primary-link:focus-visible,
.case-read-more:hover,
.case-read-more:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 27, 42, 0.14);
}

.case-read-more {
  margin-top: 12px;
  padding: 9px 16px;
}

.case-footer {
  padding: 40px 24px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
}

.case-footer-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.case-footer-name {
  margin-bottom: 10px;
  font-family: "Libre Caslon Display", Georgia, serif;
  font-size: 20px;
  color: var(--gold-light);
}

.case-footer address {
  font-size: 12px;
  font-style: normal;
  line-height: 1.8;
}

.case-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-footer a:hover,
.case-footer a:focus-visible {
  color: var(--gold-light);
}

@media (max-width: 720px) {
  .site-header {
    height: 68px;
  }

  .case-hero {
    padding: 108px 16px 48px;
    background: linear-gradient(180deg, var(--navy) 0, var(--navy) 300px, var(--warm-white) 300px);
  }

  .case-header h1,
  .case-error h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .case-kicker {
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
    font-size: clamp(8px, 2.5vw, 10px);
    letter-spacing: 1px;
    white-space: nowrap;
  }
}
