:root {
  color-scheme: dark;
  --ink: #080706;
  --charcoal: #171412;
  --coal: #211d1a;
  --bone: #f1eadc;
  --muted: #cbbfaa;
  --dim: #8f806c;
  --brass: #c49a4f;
  --brass-soft: #e0c17d;
  --green: #1d8a59;
  --amber: #d4a338;
  --oxblood: #842330;
  --line: rgba(241, 234, 220, 0.18);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(241, 234, 220, 0.14);
  background: rgba(8, 7, 6, 0.86);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: grid;
  gap: 1px;
  text-decoration: none;
  min-width: 150px;
}

.brand-kicker,
.eyebrow {
  color: var(--brass-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--bone);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 74px) 72px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 7, 6, 0.58);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  max-width: 760px;
  min-width: 0;
  justify-self: start;
}

.hero h1,
.section-heading h2,
.feature-panel h2,
.morgan-layout h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  max-width: 7.5ch;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--bone);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.button.secondary {
  background: rgba(8, 7, 6, 0.34);
  color: var(--bone);
}

.status-strip {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 5vw, 74px);
  right: clamp(18px, 5vw, 74px);
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(241, 234, 220, 0.16);
  background: rgba(8, 7, 6, 0.74);
}

.status-strip span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
}

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

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.catalog-band {
  background: var(--charcoal);
}

.detail-band {
  background: var(--charcoal);
}

.architecture-band {
  background: var(--charcoal);
}

.morgan-band {
  background: var(--charcoal);
}

.gates-band {
  background: var(--charcoal);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.feature-panel h2,
.morgan-layout h2 {
  margin-top: 6px;
  font-size: 3rem;
}

.book-page .button:focus-visible {
  outline: 2px solid var(--brass-soft);
  outline-offset: 3px;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.detail-layout,
.morgan-layout,
.gates-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.feature-panel p,
.morgan-layout p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
}

.fact-list {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.3);
}

.fact-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 18px;
  background: rgba(241, 234, 220, 0.04);
}

.fact-list dt {
  color: var(--dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.fact-list dd {
  margin: 0;
  color: var(--bone);
}

.placeholder-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: rgba(132, 35, 48, 0.18);
}

.placeholder-block span {
  color: var(--dim);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.placeholder-block strong {
  overflow-wrap: anywhere;
  color: var(--bone);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: var(--dim);
  font-size: 0.82rem;
}

.book-page {
  min-height: 100vh;
  background: var(--ink);
}

.book-hero {
  padding: 124px clamp(18px, 5vw, 74px) 72px;
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
}

.book-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.book-cover-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(8, 7, 6, 0.34);
}

.book-cover-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.book-hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.book-hero-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.02;
}

.book-summary {
  max-width: 680px;
  margin: 0;
  color: var(--bone);
  font-size: 1.12rem;
}

.book-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 58px);
}

.book-detail-panel {
  display: grid;
  gap: 14px;
}

.book-detail-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1.05;
}

.book-detail-panel p {
  margin: 0;
  color: var(--muted);
}

.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.detail-chip-row span {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.about-hero {
  padding: 132px clamp(18px, 5vw, 74px) 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(8, 7, 6, 0.4), rgba(8, 7, 6, 0.86)),
    url("assets/judges-feet-front.png") center 34% / cover no-repeat;
}

.about-hero-inner {
  width: min(1180px, 100%);
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  align-content: end;
}

.about-hero-copy {
  max-width: 780px;
  display: grid;
  gap: 18px;
}

.about-hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.02;
}

.about-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--bone);
  font-size: 1.12rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.method-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: rgba(8, 7, 6, 0.28);
}

.method-card span {
  color: var(--brass-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.method-card h3,
.principle-card h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.method-card p,
.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.principle-card {
  min-height: 160px;
  border-left: 3px solid var(--brass);
  padding: 16px;
  background: rgba(241, 234, 220, 0.04);
}

.negative-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.negative-list li {
  border-left: 3px solid var(--oxblood);
  padding: 12px 14px;
  background: rgba(8, 7, 6, 0.22);
  color: var(--muted);
}

.book-note {
  border-left: 3px solid var(--oxblood);
  padding: 14px 16px;
  background: rgba(132, 35, 48, 0.16);
  color: var(--muted);
}

.book-note strong {
  color: var(--bone);
}

@media (max-width: 980px) {
  .detail-layout,
  .morgan-layout,
  .gates-layout,
  .book-hero-inner,
  .book-detail-grid,
  .method-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body,
  main,
  .section-band {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    flex-direction: column;
    align-items: start;
    min-height: auto;
    gap: 10px;
  }

  .nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px 10px;
    font-size: 0.82rem;
  }

  .nav-links a {
    min-width: 0;
  }

  .hero {
    min-height: 88svh;
    padding: 70px 24px 72px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-copy {
    width: 320px;
    max-width: calc(100vw - 48px);
    margin-bottom: 88px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 10vw, 3.05rem);
  }

  .hero-lede {
    width: 320px;
    max-width: calc(100vw - 48px);
    font-size: 1rem;
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-media img:nth-child(2),
  .hero-media img:nth-child(3) {
    display: none;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    left: 24px;
    right: auto;
    width: 342px;
    max-width: calc(100vw - 48px);
  }

  .status-strip span {
    min-width: 0;
    font-size: 0.66rem;
    line-height: 1.18;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .section-heading h2,
  .feature-panel h2,
  .morgan-layout h2 {
    font-size: 2rem;
  }

  .book-hero {
    padding: 40px 24px 48px;
  }

  .about-hero {
    padding: 40px 24px 48px;
    background-position: center top;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .about-hero-inner {
    width: 100%;
    min-height: 620px;
    min-width: 0;
  }

  .about-hero-copy,
  .about-hero-copy p,
  .feature-panel,
  .feature-panel p,
  .fact-list,
  .method-grid,
  .principle-grid,
  .method-card,
  .principle-card,
  .negative-list,
  .placeholder-block {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .about-hero-copy p {
    max-width: calc(100vw - 96px);
  }

  .about-hero-copy h1 {
    max-width: calc(100vw - 72px);
    font-size: clamp(2.15rem, 9vw, 2.9rem);
  }

  .about-hero-copy p {
    font-size: 1rem;
  }

  .about-hero-copy h1,
  .about-hero-copy p,
  .feature-panel h2,
  .feature-panel p,
  .section-heading h2,
  .method-card,
  .principle-card,
  .negative-list li,
  .placeholder-block strong {
    overflow-wrap: anywhere;
  }

  .section-heading {
    display: grid;
    align-items: start;
    justify-content: start;
    gap: 8px;
  }

  .section-inner {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    overflow-x: hidden;
  }

  .feature-panel h2,
  .section-heading h2 {
    max-width: calc(100vw - 72px);
    line-height: 1.08;
  }

  .feature-panel p,
  .section-heading,
  .fact-list,
  .method-grid,
  .principle-grid,
  .method-card,
  .principle-card,
  .negative-list,
  .placeholder-block {
    max-width: calc(100vw - 96px);
  }

  .method-grid,
  .principle-grid,
  .method-card,
  .principle-card {
    width: calc(100vw - 96px);
  }

  .book-hero-inner {
    gap: 22px;
  }

  .book-cover-panel {
    width: min(260px, 100%);
  }

  .book-cover-panel img {
    max-height: 390px;
  }

  .book-hero-copy {
    gap: 14px;
  }

  .detail-chip-row {
    display: grid;
    grid-template-columns: max-content max-content;
    max-width: calc(100vw - 72px);
  }

  .detail-chip-row span:nth-child(3) {
    grid-column: 1;
    width: fit-content;
  }

  .book-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .book-summary {
    font-size: 1rem;
  }

  .book-detail-panel h2 {
    font-size: 2rem;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
