/* Homepage layout. Unlayered so it refines the shared layers; light scheme only. */
.home {
  color-scheme: light;
  --paper: #f8f5ec;
  --paper-soft: #eee9dd;
  --white: #fffdf7;
  --ink: #18372b;
  --muted: #4c5b50;
  --line: #d4d7ca;
  --line-strong: #637462;
  --signal: #e7d4ad;
  --coral: #a54e2c;
  --coral-deep: #793c25;
  --panel: #12251d;
  background: var(--paper);
  color: var(--ink);
}

.home .eyebrow {
  color: var(--coral-deep);
}

.home .text-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Masthead: centered title, the field-guide plate, and the installer. */
.masthead {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
}

.masthead-copy {
  text-align: center;
}

.masthead-kicker {
  color: var(--coral-deep);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.masthead h1 {
  margin: 1.4rem auto 1.6rem;
  font-size: clamp(3.3rem, 8.4vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.masthead-intro {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.masthead-plate {
  width: min(1000px, calc(100vw - 32px));
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

.masthead-plate img {
  display: block;
  width: 100%;
  height: auto;
}

/* Installer: tabbed commands for the full set, one skill, and DALO. */
.installer {
  width: min(46rem, 100%);
  margin: -0.5rem auto 0;
  overflow: hidden;
  border: 1px solid #2c4537;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 30px 60px -32px rgb(18 37 29 / 55%);
  color: #e9e4d6;
}

.installer-tabs {
  display: flex;
  border-bottom: 1px solid #2c4537;
}

.installer-tabs [role="tab"] {
  padding: 0.85rem 1.2rem;
  border: 0;
  background: transparent;
  color: #a9b4a6;
  cursor: pointer;
  font: 600 0.88rem/1 var(--sans);
}

.installer-tabs [role="tab"][aria-selected="true"] {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--signal);
}

.installer-tabs [role="tab"]:hover {
  color: #ffffff;
}

.installer-panel {
  padding: 1.25rem 1.25rem 1.1rem;
}

.installer-command {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.installer-command code {
  min-width: 0;
  color: #f4f0e6;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.installer-command code::before {
  content: "$ ";
  color: #7f9a86;
}

.installer-note {
  margin-top: 0.9rem;
  color: #a9b4a6;
  font-size: 0.85rem;
}

.installer-note a {
  color: #f4f0e6;
}

.installer-note code {
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: rgb(255 255 255 / 9%);
  color: #f4f0e6;
}

/* Seal band: the model-tuning seals and the collection facts. */
.seal-band {
  padding-block: 2.4rem;
  background: var(--ink);
  color: #e9e4d6;
}

.seal-band-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.seal-band-seals {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.9rem 1rem;
  justify-items: center;
}

.seal-band-seals img {
  width: 112px;
  height: 112px;
}

.seal-band-seals p {
  grid-column: 1 / -1;
  color: #c9d1c5;
  font-size: 0.82rem;
  text-align: center;
}

.seal-band-seals a {
  color: #f4f0e6;
}

.home .proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.home .proof-row > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.4rem 1.4rem;
  border-left: 1px solid rgb(255 255 255 / 16%);
}

.home .proof-row dd {
  margin: 0;
  color: #ffffff;
  font: 500 clamp(2rem, 3.4vw, 2.7rem)/1 var(--display);
}

.home .proof-row dt {
  color: #b7c1b3;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Chapter heads shared by the index, quality, and install sections. */
.chapter-head {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.chapter-head .eyebrow {
  padding-top: 1.1rem;
}

.chapter-head h2 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.02;
}

.chapter-head h2 + p {
  max-width: 40rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.home .section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

/* Guide index. */
.guide-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-table thead th {
  padding: 0 1.25rem 0.9rem 0;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.guide-table tbody td,
.guide-table tbody th {
  padding: 1.4rem 1.25rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.guide-table tbody tr {
  transition: background-color 160ms ease-out;
}

.guide-table tbody tr:hover {
  background: var(--paper-soft);
}

.guide-stage {
  width: 7rem;
  color: var(--coral-deep);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-name {
  width: 17rem;
}

.guide-name a {
  color: var(--ink);
  font: 500 1.55rem/1.15 var(--display);
  text-decoration: none;
}

.guide-name a::after {
  content: " →";
  color: var(--coral);
  font-size: 1.1rem;
}

.guide-name a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-name small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font: 400 0.8rem/1.4 var(--sans);
}

.guide-covers {
  font-size: 0.98rem;
  line-height: 1.55;
}

.guide-ask {
  width: 34%;
  color: var(--muted);
  font: italic 400 0.98rem/1.55 Georgia, "Times New Roman", serif;
}

/* Search visibility connects the marketing and web guides. */
.search-visibility {
  border-top: 1px solid var(--line);
}

.search-visibility-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.search-visibility-brief h3 {
  font-size: 1.7rem;
}

.search-visibility-brief blockquote {
  margin: 1.3rem 0;
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--coral);
  font: italic 400 1.15rem/1.65 Georgia, "Times New Roman", serif;
}

.search-visibility-brief > p {
  color: var(--muted);
  line-height: 1.65;
}

.search-visibility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

/* Quality. */
.quality {
  border-top: 1px solid var(--line);
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.tuning-note {
  display: grid;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--ink);
  color: #e9e4d6;
}

.tuning-note h3 {
  color: #ffffff;
  font-size: 1.7rem;
}

.tuning-note p {
  color: #c9d1c5;
  line-height: 1.65;
}

.tuning-note .tuning-fine {
  color: #9fab9c;
  font-size: 0.85rem;
}

.tuning-note .text-link {
  color: #f4f0e6;
}

.quality-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.quality-list li {
  padding: 1.5rem 1.5rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.quality-list li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.quality-list h3 {
  font-size: 1.3rem;
}

.quality-list p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Install. */
.install {
  background: var(--paper-soft);
}

.install-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.install-option {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.install-option-dalo {
  border: 2px solid var(--ink);
}

.install-option-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.install-option-head img {
  width: 56px;
  height: auto;
}

.install-option h3 {
  font-size: 1.7rem;
}

.install-option-kicker {
  margin-top: 0.2rem;
  color: var(--coral-deep);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.install-option > p {
  color: var(--muted);
}

.home .code-block {
  min-height: 0;
  margin-top: 0.4rem;
  border-radius: 6px;
}

.home .optional-packs {
  margin-top: 0.4rem;
}

.home .optional-packs > p {
  margin-block: 0.6rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.home .method-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.install-links a {
  color: var(--ink);
}

/* Makers: the company behind the set and the consulting invitation. */
.makers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.maker {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: #ffffff;
}

.maker-plate {
  display: flex;
  align-items: center;
  min-height: 4rem;
  margin-bottom: 0.6rem;
}

.maker-plate img {
  width: auto;
  height: 40px;
}

.maker h2,
.maker h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1.1;
}

.maker > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.maker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.4rem;
}

/* Responsive. */
@media (max-width: 1000px) {
  .seal-band-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .home .proof-row {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.4rem;
  }

  .search-visibility-grid,
  .quality-grid,
  .install-columns,
  .makers-grid {
    grid-template-columns: 1fr;
  }

  .chapter-head {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .chapter-head .eyebrow {
    padding-top: 0;
  }
}

@media (max-width: 820px) {
  .guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

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

  .guide-table tbody tr {
    padding-block: 1.3rem;
    border-bottom: 1px solid var(--line);
  }

  .guide-table tbody td,
  .guide-table tbody th {
    padding: 0;
    border: 0;
  }

  .guide-table .guide-name {
    margin-block: 0.4rem 0.6rem;
  }

  .guide-table .guide-ask {
    margin-top: 0.6rem;
  }

  .quality-list {
    grid-template-columns: 1fr;
  }

  .quality-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .installer-tabs [role="tab"] {
    flex: 1;
    padding-inline: 0.5rem;
  }

  .installer-command {
    flex-direction: column;
  }

  .home .proof-row > div {
    padding-inline: 0.9rem;
  }
}

/* Alignment refinements. */
.chapter-head .eyebrow {
  align-self: start;
}

.seal-band .proof-row {
  width: 100%;
  max-width: none;
}
