/* Shared by index.html (lines of code) and timeline.html (project timeline): one site, "Work history" */
:root {
  --bg: #f6f8fa; --surface: #ffffff; --fg: #1f2328; --muted: #59636e; --line: #d8dee4; --grid: #e6e9ed;
  --active: #eaeef2; --accent: #1f883d; --accent-soft: #dafbe1;
  --pi: #c51a4a; --pi-soft: #f9e3ea; --aws: #a85f0a; --aws-soft: #f8ead7; --other: #33679e; --other-soft: #e2ecf7;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --surface: #161b22; --fg: #e6edf3; --muted: #8d96a0; --line: #30363d; --grid: #262c34;
    --active: #262c34; --accent: #56d364; --accent-soft: #12361e;
    --pi: #f2577f; --pi-soft: #3a1a25; --aws: #e7a24c; --aws-soft: #33240f; --other: #82abd9; --other-soft: #182536;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --surface: #161b22; --fg: #e6edf3; --muted: #8d96a0; --line: #30363d; --grid: #262c34;
  --active: #262c34; --accent: #56d364; --accent-soft: #12361e;
  --pi: #f2577f; --pi-soft: #3a1a25; --aws: #e7a24c; --aws-soft: #33240f; --other: #82abd9; --other-soft: #182536;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--body); }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 900px; margin: 0 auto; padding: 28px 20px 64px; }

/* Site header: name on the left, the two pages on the right */
.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
        padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--display); }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand rect { fill: var(--accent); }
.brand path { fill: none; stroke: var(--surface); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.brand span { color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 4px; font: 500 14px/1 var(--body); }
.tabs a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { background: var(--active); color: var(--fg); font-weight: 600; }
.tabs .signout { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); border-radius: 0; }

/* Page heading */
.page-head { margin: 36px 0 24px; }
h1 { font: 800 clamp(30px, 5vw, 44px)/1.05 var(--display); letter-spacing: -0.02em; margin: 0; }
.sub { margin: 10px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

/* Search box and filter chips (timeline, work record) */
.toolbar { display: grid; gap: 12px; margin-bottom: 28px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font: 15px/1.2 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line);
                border-radius: 10px; padding: 11px 40px 11px 36px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.search kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: 500 11px/1 var(--mono); color: var(--muted);
              border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips button { font: 500 12.5px/1 var(--body); color: var(--muted); background: none; border: 1px solid var(--line);
                border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.chips button:hover { color: var(--fg); }
.chips button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.results { font-size: 13px; color: var(--muted); margin: 0; min-height: 1.5em; }
.empty { color: var(--muted); padding: 24px 0; }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

@media (max-width: 560px) {
  .wrap { padding: 16px 16px 48px; }
  .page-head { margin: 24px 0 18px; }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs a { padding: 7px 10px; white-space: nowrap; }
}
