/* Forge & Form home page: hero, Tool Wall, how it works, footer. */
body.home { height: auto; min-height: 100%; }
.eyebrow { margin: 0 0 8px; color: var(--copper); font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.privacy { display: inline-flex; align-items: center; gap: 7px; margin: 18px 0 0; padding: 3px 10px 3px 8px; border: 1px solid #3f5a41; color: var(--ok); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.topnav a:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, .filter-chip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn:focus-visible { box-shadow: none; outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); background-color: var(--bg-2);
  background-image:
    radial-gradient(70% 90% at 78% 40%, rgba(245,165,36,.10), transparent 70%),
    linear-gradient(rgba(120,150,190,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,190,.06) 1px, transparent 1px),
    linear-gradient(rgba(120,150,190,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,190,.11) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s7); align-items: center; max-width: 1200px; margin: 0 auto; padding: var(--s8) var(--s5) var(--s7); }
.hero h1 { margin: 0; font-family: var(--font-head); font-size: clamp(38px, 5.2vw, 62px); line-height: .98; letter-spacing: .02em; text-transform: uppercase; font-weight: 700; }
.hero .lede { margin: 16px 0 24px; max-width: 34em; color: #b9b4a8; font-size: 16.5px; line-height: 1.55; }
.hero-fig { position: relative; display: block; aspect-ratio: 4 / 3; background: #101113; border: 1px solid var(--line); box-shadow: 0 1px 0 #000, 0 18px 40px rgba(0,0,0,.45); text-decoration: none; clip-path: var(--chamfer); --cut: 18px; }
.hero-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-fig .vp-corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--amber); opacity: .8; }
.hero-fig .tl { left: 10px; top: 10px; border-left-width: 2px; border-top-width: 2px; }
.hero-fig .tr { right: 22px; top: 10px; border-right-width: 2px; border-top-width: 2px; }
.hero-fig .bl { left: 10px; bottom: 10px; border-left-width: 2px; border-bottom-width: 2px; }
.hero-fig .br { right: 10px; bottom: 10px; border-right-width: 2px; border-bottom-width: 2px; }
.fig-cap { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; background: rgba(22,23,26,.9); border-left: 3px solid var(--amber); color: var(--text); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.hero-fig:hover .fig-cap { color: var(--amber); }

/* ---------- tool wall ---------- */
.wall, .how { padding: var(--s7) var(--s5); }
.wall-in { max-width: 1200px; margin: 0 auto; }
.wall h2, .how h2 { margin: 0; font-family: var(--font-head); font-size: 32px; letter-spacing: .05em; text-transform: uppercase; }
.wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s4); }
.wall-count { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.wall-controls { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s5); }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; max-width: 520px; padding: 0 12px; height: 44px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search-field:focus-within { border-color: var(--amber); color: var(--amber); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--faint); }
.search-field kbd { padding: 1px 7px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { --cut: 6px; padding: 8px 14px; border: 0; background: var(--surface-2); color: #c9c4b8; font-family: var(--font-head); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; clip-path: var(--chamfer); transition: background .12s, color .12s; }
.filter-chip:hover { background: var(--surface-3); color: var(--amber); }
.filter-chip[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); }

.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.tool-grid > li[hidden] { display: none; }
.tool-card { --cut: 14px; position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); color: var(--text); text-decoration: none; clip-path: var(--chamfer); box-shadow: inset 0 2px 0 var(--tint, var(--amber)); transition: background .12s, transform .2s; }
.tool-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid var(--line); border-top: 0; z-index: 3; }
a.tool-card:hover { background: var(--surface-2); }
a.tool-card:hover .card-thumb img { transform: scale(1.04) rotate(-.4deg); }
a.tool-card:hover h3, a.tool-card:focus-visible h3 { color: var(--amber); }
a.tool-card:hover .card-go { color: var(--amber); }
a.tool-card:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.card-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #101113; border-bottom: 1px solid var(--line-soft); }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.card-cat { color: var(--tint, var(--copper)); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tool-card h3 { margin: 0; font-family: var(--font-head); font-size: 22px; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; transition: color .12s; }
.tool-card p { margin: 0; color: #b9b4a8; font-size: 13.5px; line-height: 1.45; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.badge { --cut: 5px; padding: 2px 8px; background: var(--surface-3); color: #c9c4b8; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; clip-path: var(--chamfer); }
.badge-soon { background: transparent; box-shadow: inset 0 0 0 1px var(--faint); color: var(--muted); }
.card-go { margin-top: 6px; color: var(--muted); font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; transition: color .12s; }
/* "coming soon": dashed ghost, not a link, not focusable, no hover */
.tool-card.soon { background: transparent; cursor: default; box-shadow: none; }
.tool-card.soon::before { border: 1px dashed var(--faint); }
.tool-card.soon .card-thumb { background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, transparent 8px 16px); border-bottom: 1px dashed var(--line); color: #7d796f; }
.tool-card.soon h3 { color: #a9a499; }
.tool-card.soon p { color: var(--muted); }
.ghost-art { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14%; opacity: .85; }
.ribbon { position: absolute; left: 10px; top: 10px; padding: 3px 10px; background: var(--bg); border-left: 3px solid var(--warn); color: var(--warn); font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; z-index: 2; }
.no-results { padding: var(--s6) 0; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--amber); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- how it works ---------- */
.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-row { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); counter-reset: none; }
.steps-row li { position: relative; padding: var(--s5); background: var(--surface); border-left: 3px solid var(--amber); }
.steps-row b { display: block; margin-bottom: 6px; color: var(--amber); font-family: var(--font-mono); font-size: 14px; letter-spacing: .12em; }
.steps-row h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.steps-row p { margin: 0; color: #b9b4a8; line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { display: block; padding: var(--s7) var(--s5) var(--s6); background: var(--bg); }
.foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: var(--s6) var(--s7); }
.foot-brand p { max-width: 28em; margin: 14px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s5); }
.site-footer h3 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer li { font-size: 14px; color: #c9c4b8; }
.site-footer li.soon { color: var(--faint); }
.site-footer li small { margin-left: 4px; padding: 0 5px; border: 1px dashed var(--faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: #c9c4b8; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; margin: var(--s4) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s6) var(--s4) var(--s6); }
  .hero-fig { order: -1; max-width: 520px; }
  .steps-row { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .topnav { display: none; }
  .brand { flex: 1; }
  .topbar { gap: 12px; padding: 0 14px; }
  .wall, .how { padding: var(--s6) var(--s4); }
}
@media (max-width: 559px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .wall h2, .how h2 { font-size: 27px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .search-field kbd { display: none; }
  .brand-name { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { a.tool-card:hover .card-thumb img { transform: none; } * { transition: none !important; } }

/* ---------- plain pages (licenses, 404) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: var(--s7) var(--s5); min-height: 60vh; }
.page h1 { margin: 0 0 var(--s4); font-family: var(--font-head); font-size: 44px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.page h2 { font-family: var(--font-head); font-size: 24px; letter-spacing: .05em; text-transform: uppercase; }
.page p { color: #c9c4b8; line-height: 1.55; }
.page pre { padding: var(--s4); overflow-x: auto; background: var(--surface); border-left: 3px solid var(--amber); color: #c9c4b8; font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; }

/* ---------- store promo band (links only; no store assets are loaded) ---------- */
.promo { padding: var(--s7) var(--s5); border-top: 1px solid var(--line); background:
  linear-gradient(100deg, rgba(184,113,74,.16), transparent 45%), linear-gradient(280deg, rgba(157,180,214,.10), transparent 45%), var(--bg); }
.promo-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.promo-art { width: 100%; height: auto; display: block; }
.promo h2 { margin: 0 0 10px; font-family: var(--font-head); font-size: 34px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.02; }
.promo p { max-width: 40em; margin: 0 0 20px; color: #c9c4b8; font-size: 15.5px; line-height: 1.55; }
.promo p.eyebrow { margin-bottom: 8px; font-size: 12px; color: var(--copper); }
.promo b { color: var(--text); }
.foot-by { margin: 12px 0 0; color: var(--text); font-size: 14px; }
.foot-by a { color: var(--amber); }
@media (max-width: 899px) {
  .promo { padding: var(--s6) var(--s4); }
  .promo-in { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .promo-art { max-width: 300px; }
  .promo h2 { font-size: 28px; }
}
