/* Guide layer over the house stylesheet. Same materials, session-log composition. */

.gmain { padding-bottom: clamp(48px, 6vw, 88px); }
.gmain .wrap { max-width: 1080px; }

.ghead { padding-top: clamp(40px, 6vh, 80px); }
.gled { max-width: 60ch; margin-top: 18px; }

.gmain h1 {
  margin-top: clamp(22px, 3vw, 36px);
  max-width: 14ch;
}

.gmain section { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 72px); }

/* spec sheet */
.spec { margin-top: clamp(28px, 4vw, 44px); border-top: 2px solid var(--ink); }
.spec > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 20px 4px;
  border-bottom: 1px solid var(--ink-28);
}
.spec dt {
  --mono: 1;
  --casl: 0.35;
  --wght: 720;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 4px;
}
.spec dd { line-height: 1.62; color: var(--ink-75); max-width: 66ch; }

/* technique blocks: copy rail + code slab, sides alternating */
.tk {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 44px);
}
.tk + .tk { border-top: 1px solid var(--ink-28); }
/* alternate sides, but the wide track always follows the code slab */
.tk:nth-child(odd) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tk:nth-child(odd) .tk-copy { order: 2; }
.tk:nth-child(odd) .tk-code { order: 1; }

.tk h3 { font-size: 1.35rem; --wght: 780; --casl: 0.75; margin-bottom: 12px; }
.tk-copy p { color: var(--ink-75); line-height: 1.66; font-size: 1rem; }

.tk-code { border: 1.5px solid var(--ink); min-width: 0; box-shadow: 4px 4px 0 var(--ink-12); }
.tk-code figcaption {
  --mono: 1;
  --wght: 600;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink-75);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tk-code figcaption::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--ink);
}
.tk-code pre {
  overflow-x: auto;
  padding: 18px 20px 22px;
}
.tk-code code {
  --mono: 1;
  --casl: 0;
  --wght: 430;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
}

/* provenance stamp */
.stamp {
  border: 2px solid var(--ink);
  padding: clamp(24px, 4vw, 44px);
  margin-top: clamp(28px, 4vw, 44px);
  position: relative;
  box-shadow: 5px 5px 0 var(--ink-12);
}
.stamp::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 11px; height: 11px;
  background: var(--tempo);
  outline: 1.5px solid var(--ink);
}
.stamp-line {
  --wght: 700;
  --casl: 0.6;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  text-wrap: balance;
  margin-bottom: 18px;
}
.stamp p:not(.stamp-line) {
  color: var(--ink-75);
  line-height: 1.66;
  max-width: 74ch;
}
.stamp p + p { margin-top: 14px; }

/* critique log */
.log { margin-top: clamp(28px, 4vw, 44px); border-top: 2px solid var(--ink); list-style: none; }
.log li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 24px 4px;
  border-bottom: 1px solid var(--ink-28);
}
.log-tag {
  --mono: 1;
  --wght: 720;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.log li > p:not(.log-tag) { color: var(--ink-75); line-height: 1.66; max-width: 72ch; }

/* footer */
.gfoot {
  border-top: 2px solid var(--ink);
  padding-block: clamp(36px, 5vw, 56px);
}
.back {
  --mono: 1;
  --wght: 640;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-underline-offset 0.18s var(--ez-hit);
}
.back:hover { text-underline-offset: 8px; }
.gfoot-line { margin-top: 18px; color: var(--ink-62); font-size: 0.95rem; }

@media (max-width: 860px) {
  .tk { grid-template-columns: 1fr; }
  .tk:nth-child(odd) .tk-copy { order: 1; }
  .tk:nth-child(odd) .tk-code { order: 2; }
  .spec > div,
  .log li { grid-template-columns: 1fr; gap: 8px; }
}
