/* =========================================================================
   mind.sean.build — shared stylesheet
   Palette matches the 0xSEAN apex landing: warm near-black, orange/amber
   accent, monospace accents, faint grid, 改善 (kaizen) glyph.
   ========================================================================= */

:root {
  --bg:            #0a0a0c;
  --surface:       #131010;
  --surface-2:     #1a1513;
  --text:          #f4f2ef;
  --muted:         #8d877f;
  --accent:        #ff6a1a;   /* orange */
  --amber:         #f5b342;   /* gold   */
  --border:        #272019;
  --border-accent: #5a2e1a;
  --glow:          rgba(255, 106, 26, 0.22);
  --grid:          rgba(255, 255, 255, 0.022);
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* warm top glow + faint grid */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--glow), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* --- 改善 glyph badge ----------------------------------------------------- */
.glyph {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--amber);
  font-family: var(--sans);
  box-shadow: 0 0 12px var(--glow), inset 0 0 10px rgba(255, 106, 26, 0.12);
}
.glyph--lg {
  width: 84px; height: 84px;
  border-width: 2px;
  font-size: 2rem;
  box-shadow: 0 0 28px var(--glow), inset 0 0 18px rgba(255, 106, 26, 0.15);
}

/* --- header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.02em;
}
.nav { display: flex; gap: 1.4rem; font-family: var(--mono); font-size: 0.85rem; }
.nav a { color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--accent); }
.nav a .ext { font-size: 0.7em; opacity: 0.7; }

/* --- hero (landing) ------------------------------------------------------ */
.hero { text-align: center; padding: 4.5rem 0 3rem; }
.hero .glyph--lg { margin: 0 auto 1.5rem; }
.hero h1 {
  font-family: var(--mono); font-size: 2.4rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .px { color: var(--accent); }
.hero .tagline {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 0.9rem;
  font-family: var(--mono); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.32em; color: var(--muted);
}
.hero .tagline::before, .hero .tagline::after {
  content: ""; height: 1px; width: 34px; background: var(--border-accent);
}

/* --- section cards (landing) --------------------------------------------- */
.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  padding: 1rem 0 4rem;
}
.card {
  display: block; position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.6rem 1.6rem 1.4rem;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px var(--glow);
}
.card .k {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.card h2 { font-size: 1.4rem; margin: 0.5rem 0 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.2rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.card .arrow { color: var(--accent); }

/* --- section / list page ------------------------------------------------- */
.page { padding: 3rem 0 4rem; max-width: 760px; }
.page .crumb { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.page .crumb a:hover { color: var(--accent); }
.page h1 { font-family: var(--mono); font-size: 2rem; margin: 0.6rem 0 0.3rem; }
.page .sub { color: var(--muted); margin-bottom: 2rem; }

.empty {
  border: 1px dashed var(--border-accent); border-radius: 12px;
  padding: 2.5rem 1.5rem; text-align: center;
  color: var(--muted); font-family: var(--mono); font-size: 0.9rem;
  background: rgba(255, 106, 26, 0.02);
}
.empty .big { display: block; font-size: 1.5rem; color: var(--accent); margin-bottom: 0.5rem; }

/* --- pill (status) ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  border: 1px solid var(--border-accent); border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* --- footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0; text-align: center;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.site-footer a:hover { color: var(--accent); }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .nav { gap: 1rem; }
}
