/* home.css — humble, navigation-first styles for the home directions
   + the chooser. Loaded on top of site.css. */

/* shared calm intro block */
.intro { padding-block: calc(var(--u)*8*var(--d)) calc(var(--u)*4*var(--d)); }
.intro .who { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* two-column hero: copy + portrait */
.intro { display: grid; grid-template-columns: minmax(0,1fr) clamp(220px, 26vw, 320px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.intro__text { min-width: 0; }
.intro__photo { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.intro__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--hair-2);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 0 0 1px color-mix(in oklab, var(--accent) 8%, transparent);
}
.intro__frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.96) contrast(1.02);
}
.intro__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, color-mix(in oklab, var(--bg-1) 78%, transparent) 100%);
}
.intro__ring {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 22%, transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.intro__frame:hover .intro__ring { opacity: 1; }
.intro__photo figcaption {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.intro__photo figcaption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); flex: none; }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; gap: 30px; }
  .intro__photo { order: -1; max-width: 240px; }
}
.intro h1 {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; margin-top: 16px; max-width: 20ch;
}
.intro h1 em { font-style: italic; color: var(--accent); }
.intro .say { margin-top: 18px; max-width: 56ch; font-size: calc(18px*var(--d)); color: var(--ink-1); line-height: 1.6; text-wrap: pretty; }
.intro .meta { margin-top: 20px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.intro .meta a { color: var(--ink-2); border-bottom: 1px solid var(--hair-2); padding-bottom: 1px; }
.intro .meta a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Option A: directory menu ---------- */
.menu-list { border-top: 1px solid var(--hair); }
.menu-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: baseline;
  padding: 22px 6px; border-bottom: 1px solid var(--hair);
  transition: background .2s var(--ease), padding .2s var(--ease);
}
.menu-row:hover { background: var(--panel-2); padding-inline: 16px; }
.menu-row__n { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); padding-top: 7px; }
.menu-row__t { display: block; font-family: var(--display); font-size: calc(26px*var(--d)); font-weight: 500; letter-spacing: -0.01em; }
.menu-row:hover .menu-row__t { color: var(--accent); }
.menu-row__d { display: block; color: var(--ink-2); font-size: calc(15px*var(--d)); margin-top: 4px; max-width: 52ch; }
.menu-row__go { font-family: var(--mono); color: var(--ink-3); font-size: 18px; padding-top: 4px; transition: transform .2s var(--ease), color .2s var(--ease); }
.menu-row:hover .menu-row__go { color: var(--accent); transform: translateX(4px); }
@media (max-width: 640px) { .menu-row { grid-template-columns: 1fr auto; } .menu-row__n { display: none; } }

/* featured block (Codex lead on the Directory home) */
.home-feature {
  display: block; border: 1px solid var(--hair-2); border-radius: var(--r);
  background: var(--panel); padding: clamp(22px, 3vw, 32px); margin-top: 8px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.home-feature:hover { border-color: var(--accent); background: var(--panel-2); }
.home-feature .fk { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.home-feature h2 { font-family: var(--display); font-size: clamp(26px,3.6vw,38px); font-weight: 500; letter-spacing: -0.015em; margin-top: 12px; }
.home-feature .fd { color: var(--ink-1); font-size: calc(17px*var(--d)); margin-top: 12px; max-width: 52ch; line-height: 1.55; }
.home-feature .stages { display: flex; flex-wrap: wrap; gap: 7px 10px; margin-top: 20px; }
.home-feature .stage { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 11px; }
.home-feature .stage b { color: var(--accent-2); font-weight: 600; margin-right: 5px; }
.home-feature .fgo { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.home-feature:hover .fgo .arrow { transform: translateX(4px); }

/* compact directory variant (smaller rows used under the feature) */
.menu-list.compact .menu-row { padding: 18px 6px; }
.menu-list.compact .menu-row__t { font-size: calc(21px*var(--d)); }

/* compact recent list */
.mini-list { border-top: 1px solid var(--hair); }
.mini-row { display: flex; gap: 16px; align-items: baseline; padding: 13px 6px; border-bottom: 1px solid var(--hair); transition: background .2s var(--ease); }
.mini-row:hover { background: var(--panel-2); }
.mini-row .dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); min-width: 64px; flex: none; }
.mini-row .tt { display: block; font-family: var(--serif); font-size: calc(17px*var(--d)); color: var(--ink-1); }
.mini-row:hover .tt { color: var(--accent); }
.mini-row .tp { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: auto; flex: none; }
@media (max-width: 560px){ .mini-row .tp { display:none; } }

.block-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }

/* ---------- About / profile content (merged from the old About page) ----------
   Full-width, flowed into two columns so the prose fills the space at a readable
   line length (collapses to one column on narrow screens). */
.about-prose { max-width: none; font-size: calc(19px * var(--d)); line-height: 1.62; color: var(--ink-1); columns: 2; column-gap: clamp(40px, 5vw, 72px); column-rule: 1px solid var(--hair); }
.about-prose p { margin: 0 0 18px; break-inside: avoid; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--ink); }
.about-prose a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.about-prose a:hover { border-color: var(--accent); }
@media (max-width: 760px) { .about-prose { columns: 1; column-rule: none; } }

/* ---------- Option B: readme / terminal ---------- */
.readme { width: min(100% - 40px, 760px); margin-inline: auto; font-family: var(--mono); padding-block: calc(var(--u)*7*var(--d)); }
.readme .prompt-line { color: var(--ink-3); font-size: 13px; margin-bottom: 28px; }
.readme .prompt-line .p { color: var(--accent-2); }
.readme .prompt-line .c { color: var(--ink-1); }
.readme h1 { font-family: var(--mono); font-weight: 700; font-size: clamp(24px,4vw,34px); letter-spacing: -0.01em; color: var(--ink); }
.readme h1::before { content: "# "; color: var(--accent); }
.readme .sub { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.readme .bio { color: var(--ink-1); font-size: 14.5px; line-height: 1.85; margin-top: 26px; max-width: 64ch; font-family: var(--mono); }
.readme .bio .hl { color: var(--accent); }
.readme .cmt { color: var(--ink-3); }
.readme section { margin-top: 36px; }
.readme .sect-h { color: var(--ink-3); font-size: 12px; letter-spacing: 0.04em; margin-bottom: 12px; }
.dir-list { display: flex; flex-direction: column; }
.dir-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 9px 8px; border-radius: 7px; align-items: baseline; transition: background .15s var(--ease); }
.dir-row:hover { background: var(--panel-2); }
.dir-row .nm { color: var(--ink); font-size: 14.5px; }
.dir-row .nm::before { content: "→ "; color: var(--accent-2); }
.dir-row:hover .nm { color: var(--accent); }
.dir-row .ds { color: var(--ink-3); font-size: 13px; }
@media (max-width: 560px){ .dir-row { grid-template-columns: 1fr; gap: 2px; } }
.log-row { display: flex; gap: 16px; padding: 7px 8px; border-radius: 6px; transition: background .15s var(--ease); }
.log-row:hover { background: var(--panel-2); }
.log-row .d { color: var(--ink-3); font-size: 12.5px; min-width: 74px; flex: none; }
.log-row .t { color: var(--ink-1); font-size: 13.5px; }
.log-row:hover .t { color: var(--accent); }
.readme .socials { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; gap: 22px; font-size: 13px; }
.readme .socials a { color: var(--ink-2); }
.readme .socials a:hover { color: var(--accent); }
.readme .socials a::before { content: "↗ "; color: var(--ink-3); }

/* ---------- Option C: quiet editorial ---------- */
.quiet { width: min(100% - 40px, 720px); margin-inline: auto; padding-block: calc(var(--u)*9*var(--d)); }
.quiet .name { font-family: var(--display); font-size: clamp(30px,4.6vw,44px); font-weight: 500; letter-spacing: -0.02em; }
.quiet .one { font-family: var(--display); font-size: clamp(19px,2.4vw,23px); color: var(--ink-1); line-height: 1.5; margin-top: 18px; font-style: italic; max-width: 40ch; text-wrap: pretty; }
.quiet .links { margin-top: 44px; display: flex; flex-direction: column; }
.quiet-link { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--hair); }
.quiet-link:last-of-type { border-bottom: 1px solid var(--hair); }
.quiet-link .lbl { font-family: var(--display); font-size: calc(22px*var(--d)); font-weight: 500; min-width: 8.5ch; }
.quiet-link:hover .lbl { color: var(--accent); }
.quiet-link .des { color: var(--ink-2); font-size: calc(15px*var(--d)); flex: 1; }
.quiet-link .ar { color: var(--ink-3); font-family: var(--mono); transition: transform .2s var(--ease); }
.quiet-link:hover .ar { transform: translateX(4px); color: var(--accent); }
.quiet .reading { margin-top: 46px; }
.quiet .reading h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
@media (max-width: 560px){ .quiet-link { flex-direction: column; gap: 4px; } .quiet-link .ar { display:none; } }

/* ---------- Chooser ---------- */
.chooser { padding-block: calc(var(--u)*7*var(--d)); }
.chooser .head { max-width: 60ch; margin-bottom: 44px; }
.chooser .head .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.chooser .head h1 { font-family: var(--display); font-size: clamp(30px,4.6vw,48px); font-weight: 500; letter-spacing: -0.02em; margin-top: 14px; }
.chooser .head p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px){ .opts { grid-template-columns: 1fr; max-width: 520px; } }
.opt {
  display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: var(--r);
  overflow: hidden; background: var(--panel); transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.opt:hover { border-color: var(--hair-3); transform: translateY(-3px); }
.opt__thumb { height: 200px; background: var(--bg-2); border-bottom: 1px solid var(--hair); padding: 18px; position: relative; overflow: hidden; }
.opt__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.opt__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.opt__body h3 { font-family: var(--display); font-size: 24px; font-weight: 500; }
.opt__body p { color: var(--ink-2); font-size: 15px; flex: 1; }
.opt__open { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.opt:hover .opt__open .arrow { transform: translateX(3px); }

/* tiny wireframe thumbnails (simple bars — not real content) */
.wf { display: flex; flex-direction: column; gap: 7px; }
.wf b { display: block; height: 8px; border-radius: 3px; background: var(--hair-2); }
.wf .accent { background: color-mix(in oklab, var(--accent) 60%, transparent); }
.wf .cyan { background: color-mix(in oklab, var(--accent-2) 55%, transparent); }
.wf .row { display: flex; gap: 7px; align-items: center; }
.wf .row b { flex: 1; }
.wf .sm { width: 26px; flex: none !important; }
.wf .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hair-3); flex: none; }
.wf .mono-line { height: 7px; }
.wf--readme b { border-radius: 2px; height: 7px; }
