/* my site styles */

/* colors live here so i can change them fast */
:root {
  --bg: #f6f7f9;
  --text: #1f2430;
  --muted: #5d6573;
  --line: #d9dde4;
  --accent: #2557c7;
  --accent-dark: #1b43a0;
  --term-bg: #1d2129;
  --term-text: #d6dbe4;
  --term-prompt: #7fb0ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.65;
  font-size: 1.05rem;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* top bar */
.top {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.4rem;
}

.logo {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.97rem;
}
nav a:hover { color: var(--text); }

/* the intro part */
.hero { padding: 3.5rem 0 2.5rem; }

h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: #343b49;
  margin: 0 0 1.5rem;
}

.buttons { margin: 0 0 2.25rem; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  margin-right: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* terminal box */
.term {
  background: var(--term-bg);
  color: var(--term-text);
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  overflow: hidden;
}

.term-bar {
  padding: 0.4rem 0.9rem;
  background: #14171d;
  color: #8b93a3;
  font-size: 0.82rem;
}

.term-body {
  padding: 0.8rem 0.9rem 0.2rem;
  height: 15rem;
  overflow-y: auto;
}

.term-body p { margin: 0 0 0.35rem; white-space: pre-wrap; line-height: 1.5; }
.term-body .cmd { color: var(--term-prompt); }
.term-body a { color: #9cc3ff; }
.term-body b { color: #fff; }

.term-line {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem 0.8rem;
}

.term-line label { color: var(--term-prompt); white-space: nowrap; }

.term-line input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--term-text);
  font: inherit;
  padding: 0;
}
.term-line input:focus-visible { outline: none; }
.term:focus-within { box-shadow: 0 0 0 2px var(--accent); }

/* the rest of the sections */
section { padding: 2.25rem 0; border-top: 1px solid var(--line); }
section.hero { border-top: none; }

h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }

.interests { list-style: none; padding: 0; margin: 0; }
.interests li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.interests li:last-child { border-bottom: none; }
.interests strong { display: block; }

.project { margin-bottom: 1.75rem; }
.project h3 { margin-top: 0; margin-bottom: 0.3rem; }
.project p { margin: 0 0 0.4rem; }
.tags { color: var(--muted); font-size: 0.92rem; }

.more { color: var(--muted); }

main { padding-bottom: 3rem; }

/* fixes for phones */
@media (max-width: 520px) {
  h1 { font-size: 2.1rem; }
  nav a { margin-left: 0.9rem; }
  .term-line { flex-direction: column; gap: 0.2rem; }
}