/* stevetrav.is — a tiling-desktop look: status bar, tiled windows, prompts. */

:root {
  --bg: #0f1115;
  --bar: #0b0d10;
  --pane: #161a20;
  --line: #2a313b;
  --line-soft: #222831;
  --text: #d6dbe1;
  --text-bright: #f3f5f7;
  --text-body: #b4bcc7;
  --muted: #8b95a3;
  --accent: #f0b45a;
  --accent-hi: #ffd08a;
  --teal: #6cc5b0;
  --gap: 12px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p, ul { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 8px 14px; background: var(--accent); color: var(--bg); border-radius: 3px;
}
.skip:focus { top: 10px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- status bar ---- */

.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
}
.brand { color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text-bright); text-decoration: none; }
.workspaces { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; list-style: none; }
.workspaces a { display: block; padding: 4px 10px; color: var(--muted); border-radius: 3px; }
.workspaces a:hover { color: var(--text); background: var(--pane); text-decoration: none; }
.workspaces a.active { background: var(--accent); color: var(--bg); }
.where { margin-left: auto; color: var(--muted); }

/* ---- hero ---- */

.hero { padding: 96px 0 72px; }
.prompt { margin-bottom: 20px; color: var(--muted); }
.tilde { color: var(--teal); }
.hero h1 {
  font-size: clamp(44px, 8vw, 104px); line-height: 0.95; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text-bright);
}
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.lede { margin-top: 28px; max-width: 760px; font-size: clamp(17px, 2vw, 21px); color: #c3cad3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid #3a4250; border-radius: 3px; color: var(--text);
}
.btn:hover { border-color: var(--muted); color: var(--text-bright); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--bg); }

/* ---- sections ---- */

.section { padding: 24px 0 64px; }
.label {
  margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.cmd { margin-bottom: 16px; font-size: inherit; font-weight: 400; color: var(--muted); }
.stack { color: var(--teal); font-size: 13px; }
.links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---- tiled project windows ---- */

.tiles {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.tile {
  display: flex; flex-direction: column; min-height: 300px;
  background: var(--pane); border: 1px solid var(--line); border-radius: 4px;
  transition: border-color 0.15s;
}
.tile:hover, .tile:focus-within, .tile.is-focused { border-color: var(--accent); }
.tile:hover .dot, .tile:focus-within .dot, .tile.is-focused .dot { color: var(--accent); }
/* Only one window is "focused" at a time, as in a tiling WM. */
.tiles:hover .tile.is-focused:not(:hover) { border-color: var(--line); }
.tiles:hover .tile.is-focused:not(:hover) .dot { color: #4a5361; }
.tile-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.dot { color: #4a5361; transition: color 0.15s; }
.lang { margin-left: auto; }
.tile-body { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; padding: 20px 18px 18px; }
.tile h3 { font-size: 22px; font-weight: 700; color: var(--text-bright); letter-spacing: -0.01em; }
.tile-body > p:not([class]) { color: var(--text-body); font-size: 14px; }
.tile .links { margin-top: auto; font-size: 14px; }

/* ---- about ---- */

.split { display: flex; flex-wrap: wrap; gap: var(--gap); padding-top: 0; }
.pane { flex: 1 1 300px; min-width: 0; padding: 28px; background: var(--pane); border: 1px solid var(--line); border-radius: 4px; }
.pane-wide { flex: 999 1 560px; }
.pane p + p { margin-top: 14px; }
.toolbox {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px;
  padding: 0; list-style: none;
}

/* ---- more experiments ---- */

.more { padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 4px; }
.more li {
  display: grid; align-items: baseline; gap: 4px 24px; padding: 12px 16px;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto auto;
  font-size: 14px;
}
.more li + li { border-top: 1px solid var(--line-soft); }
.more-name { color: var(--text-bright); }
.more-desc { color: var(--text-body); }
@media (max-width: 760px) {
  .more li { grid-template-columns: 1fr auto; }
  .more-desc { grid-column: 1 / -1; grid-row: 2; }
  .more .stack { grid-column: 1; grid-row: 3; }
  .more li > a { grid-column: 2; grid-row: 1; }
}
.note { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---- contact ---- */

.contact { padding: 32px 0 96px; border-top: 1px solid var(--line); }
.email {
  display: inline-block; font-size: clamp(22px, 4vw, 44px); font-weight: 700;
  color: var(--text-bright); letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.contact .links { gap: 24px; margin-top: 24px; }

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

.foot { border-top: 1px solid var(--line); background: var(--bar); }
.foot-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 13px;
}

@media (max-width: 560px) {
  .wrap, .bar-inner, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .where { display: none; }
  .hero { padding: 64px 0 48px; }
  .pane { padding: 20px; }
}
