/* Shared styles for the personal site */

:root {
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --ink: #0f2942;
  --ink-2: #40546a;
  --ink-3: #64778a;
  --muted: #9aa8b5;
  --line: #e6eaee;
  --line-2: #eef1f3;
  --panel: #f7f9fa;
  --input-bg: #f5f7f9;
  --input-line: #e0e5ea;
  --accent: #16a862;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
  padding: 0 clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.brand-caret {
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
}

.nav-link {
  text-decoration: none;
  padding: 6px 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.socials a {
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.15s;
}
.socials a:hover { color: var(--accent); }

.main { flex: 1; }
.accent { color: var(--accent); }

/* Home hero */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: calc(100vh - 66px - 56px);
}
.hero-title {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: var(--display);
}
.hero-canvas {
  width: 520px;
  height: 520px;
  max-width: 88vw;
  display: block;
  margin: 4px 0;
}
.hero-role {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink);
  font-weight: 600;
  font-family: var(--display);
}
.hero-blurb {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  margin: 8px 0 0;
  max-width: 46ch;
  font-family: var(--display);
}

/* Generic page section */
.section {
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(20px, 5vw, 48px);
}
.section-narrow { max-width: 760px; }
.section-mid { max-width: 860px; }
.section-wide { max-width: 960px; }
.section-widest { max-width: 1080px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: lowercase;
}
.page-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--display);
}
.page-lead {
  font-size: 16px;
  color: var(--ink-3);
  margin: 6px 0 38px;
  max-width: 52ch;
}

/* About page grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 56px);
  margin-top: 40px;
  align-items: start;
}
.about-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.about-body p { margin: 0 0 18px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.about-body a:hover { color: var(--accent); }

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--panel);
}
.card-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: lowercase;
}
.check-list > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 15.5px;
}
.check-list > div:last-child { border-bottom: 0; }
.check-list .bullet {
  color: var(--accent);
  font-family: var(--mono);
}
.card-footer {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-3);
}
.card-footer .val { color: var(--ink); }

.terminal {
  margin-top: 44px;
  border-radius: 14px;
  background: var(--ink);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.9;
  color: #cfe0d6;
  overflow: hidden;
}
.terminal-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dots .r { background: #ff5f57; }
.terminal-dots .y { background: #febc2e; }
.terminal-dots .g { background: #28c840; }
.terminal .prompt { color: var(--accent); }
.terminal .out { color: #8fe6b4; }
.terminal .caret { animation: blink 1.1s step-end infinite; }

/* Work page cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.project {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  color: inherit;
}
.project:hover {
  transform: translateY(-4px);
  border-color: #cfe6d8;
  box-shadow: 0 12px 30px -18px rgba(15, 41, 66, 0.35);
}
.project .tag-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.project .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.project .date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-3);
}
.project .desc code {
  font-family: var(--mono);
  font-size: 13px;
  background: #f2f5f7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}
.project .title {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 12px 0 8px;
  line-height: 1.25;
}
.project .desc {
  font-size: 15px;
  line-height: 1.6;
  color: #5a6d80;
  flex: 1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: #f2f5f7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.read-more {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

/* Experience page timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--line);
}
.step {
  position: relative;
  padding-bottom: 36px;
}
.step:last-child { padding-bottom: 0; }
.step .dot {
  position: absolute;
  left: -38px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-sizing: border-box;
}
.step .date {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--accent);
}
.step .role {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 5px 0 2px;
}
.step .org {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.step .bullets > div {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 15.5px;
  line-height: 1.6;
  color: #4a5d70;
  padding: 3px 0;
}
.step .bullets .dash {
  color: var(--accent);
  font-family: var(--mono);
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

@media (max-width: 720px) {
  .nav { gap: 8px; padding: 0 16px; }
  .socials { gap: 10px; }
  .hero-canvas { width: 88vw; height: 88vw; }
  .foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}
