/* tomspecs.dev - initial dark theme (al_the_bear tsmapex1). The tomspecs_web quest replaces it. */
:root {
  --bg: #0B0E17;
  --bg-2: #10141F;
  --surface: #151A28;
  --surface-2: #1C2234;
  --line: #2A3148;
  --text: #E7EAF6;
  --text-soft: #AEB5CF;
  --text-faint: #7A82A0;
  --indigo-300: #B7BEFF;
  --indigo-400: #9AA6FF;
  --indigo-500: #6A5CF0;
  --indigo-700: #3B2A9E;
  --mint-300: #B8FFE0;
  --mint-500: #3DDC97;
  --amber-500: #F5B94A;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(106, 92, 240, .18), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(61, 220, 151, .08), transparent 60%),
              var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--indigo-300); text-decoration: none; }
a:hover { color: var(--mint-300); text-decoration: underline; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .05em .35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11, 14, 23, .75); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .2px; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--mint-500); font-weight: 700; }
nav a { color: var(--text-soft); margin-left: 22px; font-size: .95rem; }
nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--indigo-500); padding-bottom: 4px; }

/* preview banner */
.preview { background: linear-gradient(90deg, rgba(245, 185, 74, .14), rgba(245, 185, 74, .04)); border-bottom: 1px solid rgba(245, 185, 74, .25); color: #F7D58F; font-size: .88rem; }
.preview .wrap { padding-top: 7px; padding-bottom: 7px; }

/* hero */
.hero { padding: 84px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--mint-500); font: 600 .8rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; margin: .35em 0 .4em; letter-spacing: -.02em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--indigo-400), var(--mint-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-soft); font-size: 1.15rem; max-width: 38em; }
.hero-logo { justify-self: center; width: min(280px, 70%); filter: drop-shadow(0 20px 50px rgba(106, 92, 240, .35)); }
.cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: .95rem; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn:hover { text-decoration: none; border-color: var(--indigo-400); color: var(--text); }
.btn.primary { background: linear-gradient(90deg, var(--indigo-500), #4F7BF0); border-color: transparent; color: #fff; }

/* sections */
section { padding: 44px 0; }
h2 { font-size: 1.7rem; letter-spacing: -.01em; margin: 0 0 .5em; }
h3 { font-size: 1.12rem; margin: 0 0 .35em; }
.section-lead { color: var(--text-soft); max-width: 46em; margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card p { color: var(--text-soft); margin: 0; }
.card .tag { display: inline-block; font: 600 .72rem/1 var(--font-mono); color: var(--mint-500); border: 1px solid rgba(61, 220, 151, .35); border-radius: var(--r-pill); padding: 4px 9px; margin-bottom: 12px; }

/* phases */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: ph; }
.phases li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; position: relative; }
.phases li::before { counter-increment: ph; content: counter(ph); position: absolute; top: 14px; right: 16px; font: 700 1.6rem/1 var(--font-mono); color: rgba(154, 166, 255, .22); }
.phases b { display: block; color: var(--text); }
.phases span { color: var(--text-soft); font-size: .93rem; }
.phases .opt { color: var(--text-faint); font-size: .8rem; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); color: var(--text-soft); font-weight: 600; font-size: .88rem; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--font-mono); color: var(--indigo-300); white-space: nowrap; }

.flow { font-family: var(--font-mono); color: var(--text-soft); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; overflow-x: auto; white-space: pre; font-size: .9rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; color: var(--text-faint); font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 30px; }
.site-footer a { color: var(--text-soft); }

.prose { max-width: 46em; }
.prose p, .prose li { color: var(--text-soft); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { width: 160px; grid-row: 1; }
  nav a { margin-left: 14px; }
  .brand span { display: none; }
}
