/* Hardwood versus laminate, vinyl, and carpet.
   Loaded after home.css and fx.css on those three guides only. */

body.gv-page {
  --fx-ink: #1c1a17;
  --fx-ink-soft: #4a453e;
  --fx-stone: #766e64;
  --fx-stone-light: #a39a8e;
  --fx-line: #e2dbcf;
  --fx-line-dark: rgb(245 241 234 / 14%);
  --fx-linen: #f5f1ea;
  --fx-paper: #fbf9f5;
  --fx-sand: #ede6da;
  --fx-oak: #b08a5b;
  --fx-oak-deep: #8c6a43;
  --fx-charcoal: #1f1d1a;
  --fx-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --fx-sans: "Inter Tight", "Segoe UI", sans-serif;
  --fx-margin: clamp(20px, 5vw, 80px);
  --fx-max: 1440px;
  background: var(--fx-linen);
  color: var(--fx-ink);
  color-scheme: light;
  scrollbar-color: var(--fx-stone) var(--fx-linen);
}

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

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

.gv-page h1 {
  margin: 0;
  max-width: 16em;
  font-family: var(--fx-serif);
  font-weight: 300;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: wrap;
  overflow-wrap: break-word;
}

.gv-page h1 em {
  font-style: italic;
  font-weight: 300;
}

.gv-open {
  padding: calc(80px + 28px) 0 8px;
}

.gv-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--fx-stone);
}

.gv-crumb a {
  color: inherit;
  text-decoration: none;
}

.gv-crumb a:hover { color: var(--fx-ink); }

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

.gv-chapter {
  padding: clamp(56px, 7vw, 88px) 0;
  border-top: 1px solid var(--fx-line);
}

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

.gv-chapter h2 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--fx-serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.gv-chapter h3 {
  margin: 28px 0 0;
  max-width: 28ch;
  font-family: var(--fx-serif);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.gv-prose p,
.gv-chapter > .fx-grid > p,
.gv-note {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--fx-ink-soft);
}

.gv-prose a {
  color: var(--fx-ink);
  text-underline-offset: 3px;
}

.gv-spec {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--fx-stone);
  font-variant-numeric: tabular-nums lining-nums;
}

.gv-pull {
  margin: 28px 0 0;
  max-width: 36ch;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--fx-oak);
  font-family: var(--fx-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  color: var(--fx-ink);
}

.gv-pull cite {
  display: block;
  margin-top: 12px;
  font-family: var(--fx-sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fx-stone);
}

.gv-matrix {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}

.gv-matrix caption {
  caption-side: top;
  margin: 0 0 18px;
  text-align: left;
  font-family: var(--fx-serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fx-ink);
}

.gv-matrix th,
.gv-matrix td {
  padding: 16px 20px 16px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  color: var(--fx-ink-soft);
}

.gv-matrix thead th {
  padding-bottom: 10px;
  color: var(--fx-stone);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gv-matrix tbody th {
  color: var(--fx-ink);
  font-weight: 500;
}

.gv-matrix tbody tr {
  box-shadow: inset 0 1px 0 var(--fx-oak);
}

.gv-links {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 40rem;
}

.gv-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--fx-line);
  color: var(--fx-ink);
  text-decoration: none;
}

.gv-links li:last-child a { border-bottom: 1px solid var(--fx-line); }

.gv-links a:hover { color: var(--fx-oak-deep); }

.gv-cards {
  display: grid;
  gap: 28px 20px;
  margin-top: 28px;
}

.gv-cards a {
  color: inherit;
  text-decoration: none;
}

.gv-cards .fx-frame { aspect-ratio: 1; }

.gv-cards .fx-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gv-cards h3 {
  margin: 14px 0 0;
  font-size: clamp(22px, 2vw, 28px);
}

.gv-cards p {
  margin: 6px 0 0;
  color: var(--fx-stone);
  font-size: 13px;
}

.gv-page .fx-faq h2 {
  max-width: 14ch;
  font-size: clamp(28px, 3vw, 44px);
}

@media (max-width: 1023px) {
  .gv-matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .gv-matrix td::before {
    content: attr(data-side);
    display: block;
    margin-bottom: 4px;
    color: var(--fx-stone);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

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

  .gv-matrix,
  .gv-matrix tbody,
  .gv-matrix tr,
  .gv-matrix th,
  .gv-matrix td {
    display: block;
    width: auto;
  }

  .gv-matrix tbody tr { padding: 14px 0 6px; }

  .gv-matrix tbody th,
  .gv-matrix td {
    padding: 6px 0;
    box-shadow: none;
  }

  .gv-matrix tbody th {
    font-family: var(--fx-serif);
    font-weight: 300;
    font-size: 24px;
  }
}

@media (min-width: 800px) and (max-width: 1023px) {
  .gv-matrix,
  .gv-matrix tbody,
  .gv-matrix tr {
    display: block;
    width: auto;
  }

  .gv-matrix tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    padding: 16px 0 8px;
  }

  .gv-matrix tbody th {
    grid-column: 1 / -1;
    padding: 0 0 8px;
    font-family: var(--fx-serif);
    font-weight: 300;
    font-size: 26px;
  }

  .gv-matrix td {
    padding: 0;
    box-shadow: none;
  }

  .gv-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .gv-cards { grid-template-columns: 1fr 1fr 1fr; }

  .gv-matrix tbody th { width: 18%; }
  .gv-matrix td { width: 41%; }
}

@media (prefers-reduced-motion: reduce) {
  .gv-page .fx-acc summary::after,
  .gv-page .fx-btn::before {
    transition: none;
  }
}
