/* OFF HOURS · field guide. Leans on ../styles.css for tokens, grain, focus, eyebrows. */

/* head */
.g-head { border-bottom: 1px solid rgba(29, 39, 33, 0.16); }
.g-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; }
.g-brand { font: 700 0.85rem "Karla", sans-serif; text-transform: uppercase; letter-spacing: 0.34em; }
.g-back {
  font: 700 0.68rem "Karla", sans-serif; text-transform: uppercase; letter-spacing: 0.16em;
  text-decoration: none; color: var(--terra-deep); position: relative; padding-left: 1.3rem;
  transition: color 0.35s var(--e-soft);
}
.g-back::before {
  content: "\2190"; position: absolute; left: 0; top: 50%; translate: 0 -52%;
  font-size: 0.95rem; transition: translate 0.4s var(--e-lift);
}
.g-back:hover { color: var(--ink); }
.g-back:hover::before { translate: -4px -52%; }

/* masthead */
.g-mast { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.g-mast h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.02; max-width: 16ch; }
.g-mast h1 em { color: var(--terra); }
.g-deck { margin-top: 1.8rem; max-width: 62ch; }
.g-facts { display: flex; gap: clamp(1.6rem, 4vw, 3.6rem); flex-wrap: wrap; margin-top: 2.6rem; }
.g-facts div { border-top: 1px solid rgba(29, 39, 33, 0.24); padding-top: 0.8rem; min-width: 108px; }
.g-facts dt { font: 700 0.66rem "Karla", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(29, 39, 33, 0.55); }
.g-facts dd { margin: 0.15rem 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 2.1rem; line-height: 1; }

/* sections */
.g-sec { padding: clamp(2.8rem, 6vw, 4.5rem) 0; border-top: 1px solid rgba(29, 39, 33, 0.14); }
.g-sec h2 { margin-bottom: 1.6rem; }
.g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); max-width: 1080px; }
.g-cols p { max-width: 54ch; color: rgba(29, 39, 33, 0.85); }
.g-cols p:only-child { grid-column: 1; }
.g-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em;
  color: var(--terra-deep); font-weight: 600;
}

/* code plates */
.g-plate { margin-top: 2.4rem; max-width: 880px; }
.g-plate figcaption {
  margin: 0 0 0.7rem; font: 700 0.66rem "Karla", sans-serif; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(29, 39, 33, 0.55); max-width: none;
}
.g-plate figcaption::before { background: var(--gold); vertical-align: 0.2em; }
.g-plate pre {
  margin: 0; background: var(--jun-night); color: rgba(239, 233, 223, 0.92);
  padding: clamp(1.2rem, 2.6vw, 2rem); overflow-x: auto;
  border-top: 3px solid var(--terra);
  box-shadow: 0 22px 50px rgba(29, 39, 33, 0.22);
}
.g-plate code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-ligatures: none;
  font-size: clamp(0.74rem, 1.05vw, 0.86rem); line-height: 1.75; text-wrap: initial;
}

/* specimen */
.g-specimen { margin-top: 2.6rem; max-width: 880px; }
.g-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.chip {
  aspect-ratio: 5 / 3.4; padding: 0.7rem 0.8rem; display: flex; flex-direction: column; justify-content: flex-end;
  font: 700 0.62rem "Karla", sans-serif; text-transform: uppercase; letter-spacing: 0.1em;
}
.chip span { display: block; }
.chip-bone { background: var(--bone); color: rgba(29, 39, 33, 0.75); border: 1px solid rgba(29, 39, 33, 0.2); }
.chip-terra { background: var(--terra); color: var(--bone); }
.chip-jun { background: var(--juniper); color: var(--bone); }
.chip-gold { background: var(--gold); color: #3d2c10; }
.g-type-a { margin-top: 2rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.g-type-b { margin-top: 0.7rem; font-size: 0.95rem; color: rgba(29, 39, 33, 0.7); max-width: 58ch; }

/* assets */
.g-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); margin-top: 2.4rem; }
.g-assets li { margin: 0; }
.g-assets img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.g-assets span { display: block; margin-top: 0.6rem; font: 0.72rem/1.5 "Karla", sans-serif; color: rgba(29, 39, 33, 0.6); }

/* pass log */
.g-passlog { margin: 0; padding: 0; max-width: 74ch; counter-reset: pass; }
.g-passlog li {
  list-style: none; position: relative; padding: 1.3rem 0 1.3rem 3.4rem;
  border-top: 1px dashed rgba(180, 85, 45, 0.35); color: rgba(29, 39, 33, 0.85);
  counter-increment: pass;
}
.g-passlog li::before {
  content: counter(pass, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.7rem;
  color: var(--terra); line-height: 1;
}
.g-passlog b { color: var(--ink); }

/* receipts + close */
.g-close { margin-top: 2.4rem; max-width: 54ch; color: rgba(29, 39, 33, 0.85); }
.g-close a { color: var(--terra-deep); text-underline-offset: 4px; transition: text-underline-offset 0.35s var(--e-lift), color 0.35s var(--e-soft); }
.g-close a:hover, .g-close a:focus-visible { color: var(--ink); text-underline-offset: 7px; }

/* foot */
.g-foot { margin-top: clamp(3rem, 6vw, 5rem); background: var(--jun-night); }
.g-foot-row {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 2.2rem 0; font: 700 0.68rem "Karla", sans-serif; text-transform: uppercase;
  letter-spacing: 0.16em; color: rgba(239, 233, 223, 0.6);
}

/* responsive */
@media (max-width: 780px) {
  .g-cols { grid-template-columns: 1fr; }
  .g-chips { grid-template-columns: repeat(2, 1fr); }
  .g-assets { grid-template-columns: repeat(2, 1fr); }
  .g-facts { gap: 1.2rem 2rem; }
  .g-facts div { min-width: 42%; }
}
