/* grokbot.guru front door (Juno, 2026-10-02), theme-aware.
   Layout only. Every color comes from a theme token in /themes.css. Load after /site.css and /themes.css.
   Keeps every existing animation + reduced-motion fallback. */

a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* Header: solid white, ink rule, no cream wash */
header.site { background: var(--header-bg); }

/* ---- Night band: hero + Start here read as one first viewport ---- */
.front-night {
  background: var(--band-bg);
  color: var(--band-ink);
  border-bottom: 4px solid var(--band-edge);
}
.front-night .hero { padding: 1.6rem 0 1.4rem; border-bottom: 0; }
.front-night .hero::before { background: var(--band-accent); opacity: .55; }
.front-night h1 { color: var(--band-head); font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; margin: .35rem 0 .7rem; }
.front-night .hero-kicker { color: var(--band-accent); }
.front-night .lede { color: var(--band-soft); }
.front-night .hero-stage-frame { border-color: var(--frame-edge); outline-color: var(--band-rule); background: var(--frame-fill); }
.front-night .hero-stage-frame video, .front-night .hero-stage-frame img { aspect-ratio: 16 / 9; }
.front-night .hero-caption { color: var(--band-soft); }
.front-night .hero-caption strong { color: var(--band-head); }
.front-night .btn-primary { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-ink); }
.front-night .btn-primary:hover { background: var(--cta-hover); color: var(--cta-ink); }
.front-night .btn-ghost { color: var(--band-head); border-color: var(--ghost-edge); }
.front-night .btn-ghost:hover { background: var(--door-hover); color: var(--band-head); }
.front-night .bot-chip.you::before { box-shadow: var(--you-glow); }

/* ---- Start here: 3 doors, visible without scroll on desktop ---- */
.start-here { padding: .4rem 0 1.6rem; }
.start-here-label {
  font-family: var(--font-sans); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--band-accent); margin: 0 0 .6rem;
}
.start-doors { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .9rem; list-style: none; margin: 0; padding: 0; }
.start-door a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem;
  padding: .95rem 1.05rem; min-height: 4.6rem; text-decoration: none;
  background: var(--door-panel); border: 1px solid var(--band-rule); border-top: 4px solid var(--door, var(--pink));
  color: var(--band-head); transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}
.start-door a:hover, .start-door a:focus-visible { background: var(--door-hover); transform: translateY(-3px); border-color: var(--door); color: var(--band-head); }
.start-door .door-num { font-family: var(--font-sans); font-weight: 700; font-size: 1.6rem; color: var(--door); line-height: 1; }
.start-door .door-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; line-height: 1.2; display: block; }
.start-door .door-sub { font-family: var(--font-sans); font-size: .85rem; color: var(--band-soft); display: block; margin-top: .15rem; }
.start-door .door-go { font-family: var(--font-sans); font-weight: 700; color: var(--door); font-size: 1.2rem; }
.start-door--new   { --door: var(--door-1); }
.start-door--tpl   { --door: var(--door-2); }
.start-door--power { --door: var(--door-3); }
.start-door--galaxy { --door: var(--pink); }
@media (prefers-reduced-motion: reduce) { .start-door a { transition: none; } .start-door a:hover { transform: none; } }

/* ---- Templates shelf: 6 cards, above news, real acreage ---- */
.sec-templates.shelf { background: var(--shelf-bg); border-bottom: 1px solid var(--rule); padding-top: 2.4rem; padding-bottom: 2.6rem; }
.sec-templates.shelf h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.sec-templates.shelf .template-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.sec-templates.shelf .template-card {
  background: var(--card); border: 2px solid var(--ink); border-top-width: 8px; min-height: 11rem;
  box-shadow: 6px 6px 0 var(--paper-deep); transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.sec-templates.shelf .template-card:nth-child(6n+1) { border-top-color: var(--pink); }
.sec-templates.shelf .template-card:nth-child(6n+2) { border-top-color: var(--orange); }
.sec-templates.shelf .template-card:nth-child(6n+3) { border-top-color: var(--gold); }
.sec-templates.shelf .template-card:nth-child(6n+4) { border-top-color: var(--purple); }
.sec-templates.shelf .template-card:nth-child(6n+5) { border-top-color: var(--teal); }
.sec-templates.shelf .template-card:nth-child(6n+6) { border-top-color: var(--ink); }
.sec-templates.shelf .template-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 color-mix(in srgb, var(--purple) 30%, var(--paper-deep)); }
@media (prefers-reduced-motion: reduce) { .sec-templates.shelf .template-card { transition: none; } .sec-templates.shelf .template-card:hover { transform: none; } }

/* ---- Reserved, unbuilt: ad slot + Shop link. Collapsed to zero until Patrick turns them on. ---- */
.ad-slot { display: none; }                 /* future: display:grid; place-items:center; */
.ad-slot.is-live { display: grid; place-items: center; margin: 1.5rem auto; min-height: 90px; max-width: 728px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ad-slot.is-live::before { content: "Advertisement"; font: 600 .66rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
@media (max-width: 760px) { .ad-slot.is-live { max-width: 300px; min-height: 250px; } }
.nav-shop { display: none; }                /* future: display:inline; */

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .start-doors { grid-template-columns: 1fr; gap: .6rem; }
  .sec-templates.shelf .template-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sec-templates.shelf .template-grid { grid-template-columns: 1fr; }
}

/* fixes after first render */
.nav-shop[hidden], .top nav.primary a.nav-shop[hidden], .ad-slot[hidden] { display: none !important; }
.start-door { display: flex; }
.start-door a { flex: 1; }

/* Juno art-eye fixes, Oct. 2, 2026. Append to front-2026-10.css (loads after site.css and themes.css). */
/* 1. "About the team" heading was ink-on-night in both themes: section.block h2 (0,1,2) beat .crew-band h2 (0,1,1). */
section.block.crew-band h2 { color: var(--lit, #f2f3fa); }
/* 2. Triangle crew chips (Scout, Juno): the border-trick triangle has zero height, so top:70% resolved to 0 and the eyes floated above the tip. */
.crew-badge-chip.triangle .eyes { top: 1.5rem; }
/* 3. "All stories" button straddles the news box border with a transparent fill, so the rule ran through the label. */
.news-all-btn { background: var(--paper); }

/* Galaxy front-door links: wrap instead of widening the page. */
.nav-galaxy { padding-left: .4rem; padding-right: .4rem; white-space: nowrap; }
.galaxy-full-coverage { margin: .8rem 0 .45rem; font-weight: 700; }
.galaxy-full-coverage a { color: var(--gold); }
.galaxy-coverage-links { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: .3rem 0 0; font: 600 .78rem/1.35 var(--font-sans); }
.galaxy-coverage-links a { color: var(--lit, #f2f3fa); }
@media (max-width: 860px) { .start-doors { grid-template-columns: 1fr; } }
/* Galaxy nav fit: preserve the one-line masthead at desktop widths. */
@media (min-width: 721px) {
  .top nav.primary { font-size: .68rem; letter-spacing: .035em; gap: .05rem .05rem; }
  .top nav.primary a { padding: .35rem .38rem; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .top nav.primary { font-size: .62rem; letter-spacing: .02em; }
  .top nav.primary a { padding: .28rem .26rem; }
}
