/* cli.coach :: style.css — the landing pages.
 *
 * Dark only, on purpose: the four trainers are dark-only apps and this is
 * their front door. The tokens below are copied from the trainers'
 * css/app.css (identical in all four) so the handoff is seamless.
 */

:root {
  --bg:        #0d1117;
  --bg-2:      #131a24;
  --bg-3:      #1b2430;
  --line:      #263141;
  --text:      #c9d4e2;
  --text-dim:  #7d8ea3;
  --text-fade: #55637a;
  --accent:    #4db8a5;
  --accent-2:  #6aa8ff;
  --term-bg:   #0b0f14;
  --border:    #3c4a5c;

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas,
               "DejaVu Sans Mono", monospace;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-ui);
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

/* ---- header / footer --------------------------------------------------- */

header { background: var(--bg-2); border-bottom: 1px solid var(--line); }
footer { background: var(--bg-2); border-top: 1px solid var(--line); }

header .wrap, footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem 1.25rem;
  padding-top: .85rem; padding-bottom: .85rem;
}

.brand {
  font-family: var(--font-mono);
  font-size: 1rem; font-weight: 600; letter-spacing: .3px;
  color: var(--text); text-decoration: none;
}
.brand .dot { color: var(--accent); }

nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; }
nav a { color: var(--text-dim); }
nav a:hover { color: var(--accent); }

footer { font-size: .85rem; color: var(--text-fade); }
footer a { color: var(--text-fade); }
footer nav a { color: var(--text-fade); }

/* ---- type -------------------------------------------------------------- */

main { padding: 2.75rem 0 3.5rem; }

h1 {
  font-size: 2rem; line-height: 1.2; letter-spacing: -.02em;
  margin: 0 0 .85rem; color: #e3ebf4;
}
h2 {
  font-size: 1.15rem; line-height: 1.35; font-weight: 600;
  color: #e3ebf4; margin: 2.5rem 0 .6rem;
}
/* Section label on the landing pages; plain h2 stays a document heading so the
   legal pages read as documents. */
h2.sec {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-dim); margin: 2.9rem 0 1.1rem;
  padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
h3 { font-size: 1rem; margin: 1.5rem 0 .25rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.1rem; }
li { margin-bottom: .55rem; }
li::marker { color: var(--text-fade); }
strong, b { color: #e3ebf4; font-weight: 600; }
address { font-style: normal; margin: 0 0 1rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text); }
.sub { color: var(--text-dim); }
.note { font-size: .88rem; color: var(--text-fade); }

code, .mono { font-family: var(--font-mono); font-size: .92em; }
code {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 4px; padding: .08em .32em; color: var(--text);
}

kbd {
  font-family: var(--font-mono); font-size: .8em;
  background: var(--bg-3); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 4px;
  padding: .1em .4em; color: var(--text); white-space: nowrap;
}

/* ---- the four trainer cards -------------------------------------------- */

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem;
}
.card:hover { border-color: var(--accent); }
.card h3 {
  margin: 0; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .host {
  display: block; font-family: var(--font-mono); font-size: .78rem;
  color: var(--text-fade); margin: .2rem 0 .6rem;
}
.card p { font-size: .94rem; line-height: 1.6; color: var(--text-dim); margin: 0 0 .7rem; }
.card p:last-child { margin-bottom: 0; }
.card .teaches {
  font-family: var(--font-mono); font-size: .76rem;
  color: var(--text-fade); margin: 0;
}
