/* Read layout for herringbone, chevron, and herringbone versus straight plank.
   Loaded after home.css and fx.css. Does not style other guides. */

.gp-page {
  background: var(--fx-linen);
  color: var(--fx-ink);
  overflow-x: clip;
}

.gp-page ::selection {
  background: var(--fx-oak);
  color: var(--fx-ink);
}

.gp-page :focus-visible {
  outline: 2px solid var(--fx-oak);
  outline-offset: 4px;
}

.gp-open,
.gp-chapter,
.gp-cases {
  scroll-margin-top: 88px;
}

.gp-open {
  padding: calc(80px + 36px) 0 56px;
}

.gp-mitre .gp-open {
  background: var(--fx-paper);
}

.gp-chapter {
  padding: var(--fx-section) 0;
}

.gp-chapter--paper { background: var(--fx-paper); }
.gp-chapter--linen { background: var(--fx-linen); }

.gp-page h1 {
  max-width: 14em;
  font-weight: 300;
}

.gp-page .fx-install-crumb {
  color: var(--fx-ink-soft);
}

.gp-lead,
.gp-prose,
.gp-note,
.gp-quote {
  max-width: 62ch;
}

.gp-lead {
  margin: 22px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fx-ink-soft);
}

.gp-prose,
.gp-note {
  margin: 18px 0 0;
  color: var(--fx-ink-soft);
}

.gp-prose + .gp-prose { margin-top: 16px; }

.gp-quote {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  color: var(--fx-ink);
  font-family: var(--fx-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.gp-quote p { margin: 0; }

.gp-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--fx-sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-ink-soft);
}

.gp-chapter h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 16em;
}

.gp-chapter h3,
.gp-paths h2,
.gp-places h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 300;
}

.gp-hero {
  display: grid;
  gap: 28px;
  margin-top: 36px;
  align-items: start;
}

.gp-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--fx-sand);
}

.gp-paths,
.gp-places,
.gp-steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.gp-paths article,
.gp-places article,
.gp-steps li {
  padding: 22px 0;
  border-top: 1px solid var(--fx-line);
}

.gp-paths p,
.gp-places p,
.gp-steps p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--fx-ink-soft);
}

.gp-steps {
  max-width: 62ch;
  counter-reset: step;
}

.gp-steps li {
  counter-increment: step;
}

.gp-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fx-ink);
}

.gp-table-wrap { margin-top: 36px; }

.gp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums lining-nums;
}

.gp-table caption {
  caption-side: top;
  text-align: left;
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--fx-ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.gp-table th,
.gp-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--fx-line);
  vertical-align: top;
  font-weight: 400;
}

.gp-table thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fx-ink-soft);
}

.gp-table th[scope="row"] {
  color: var(--fx-ink);
  font-weight: 500;
}

.gp-cases { padding: 8px 0 0; }

.gp-cases h2 { margin-bottom: 28px; }

.gp-case-grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.gp-case {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gp-case img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--fx-sand);
}

.gp-case h3 {
  margin-top: 14px;
  overflow-wrap: break-word;
}

.gp-case p {
  margin: 8px 0 0;
  color: var(--fx-ink-soft);
  max-width: 36ch;
}

.gp-facts {
  margin-top: 10px;
  color: var(--fx-ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
}

.gp-facts span + span::before {
  content: " · ";
}

.gp-more {
  margin-top: 28px;
}

@media (max-width: 799px) {
  .gp-open { padding-top: calc(64px + 28px); }

  .gp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .gp-table,
  .gp-table tbody,
  .gp-table tr,
  .gp-table th,
  .gp-table td {
    display: block;
    width: auto;
  }

  .gp-table tr {
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--fx-line);
  }

  .gp-table th,
  .gp-table td {
    border-bottom: 0;
    padding: 8px 0;
  }

  .gp-table th[scope="row"] {
    font-family: var(--fx-serif);
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 300;
    letter-spacing: -0.02em;
    padding-bottom: 4px;
  }

  .gp-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fx-ink-soft);
  }
}

@media (min-width: 800px) {
  .gp-joint .gp-hero {
    grid-template-columns: minmax(0, 62ch) minmax(280px, 1fr);
    column-gap: 48px;
  }

  .gp-mitre .gp-hero {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 62ch);
    column-gap: 48px;
  }

  .gp-mitre .gp-hero img { order: -1; }

  .gp-choice .gp-paths {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    display: grid;
  }

  .gp-case-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .gp-page * { scroll-behavior: auto; }
}
