/* ================================================================== */
/* Font Faces
/* ================================================================== */

@font-face {
  font-family: 'Fira Code';
  src: url('fonts/firacode/fira-code-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Code';
  src: url('fonts/firacode/fira-code-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ================================================================== */
/* CSS Custom Properties
/* ================================================================== */

:root {
  --bg-primary:   #0d0d0d;
  --bg-secondary: #141414;
  --bg-elevated:  #1a1a1a;
  --bg-border:    #2a2a2a;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-muted:   #606060;
  --accent:       #14b8a6;
  --accent-bg:    rgba(20, 184, 166, 0.08);
  --accent-border:rgba(20, 184, 166, 0.3);
  --font-sans:    'FiraCode Nerd Font Mono', 'FiraCode Nerd Font', 'Fira Code', monospace;
  --font-mono:    'FiraCode Nerd Font Mono', 'FiraCode Nerd Font', 'Fira Code', monospace;
}

[data-theme="light"] {
  --bg-primary:   #f5f5f5;
  --bg-secondary: #ebebeb;
  --bg-elevated:  #ffffff;
  --bg-border:    #d4d4d4;
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted:   #a3a3a3;
  --accent:       #0d9488;
  --accent-bg:    rgba(13, 148, 136, 0.08);
  --accent-border:rgba(13, 148, 136, 0.3);
}

/* ================================================================== */
/* Reset
/* ================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ================================================================== */
/* Header / Nav
/* ================================================================== */

header#home {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
  transition: background 0.3s;
}

header#home.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
}

[data-theme="light"] header#home.scrolled {
  background: rgba(245, 245, 245, 0.92);
}

#nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 56px;
}

#nav-wrap > a.mobile-btn { display: none; }

ul#nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

ul#nav li { list-style: none; }

ul#nav li a {
  display: block;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

ul#nav li a:hover,
ul#nav li a.current {
  color: var(--accent);
  background: var(--accent-bg);
}

[data-theme="light"] ul#nav li a { color: var(--text-muted); }
[data-theme="light"] ul#nav li a:hover,
[data-theme="light"] ul#nav li a.current { color: var(--accent); }

/* ThemeToggle */
.toggle-container {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 300;
}

.toggle-wrapper { cursor: pointer; }

.toggle {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.toggle-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 6px;
  pointer-events: none;
}

.toggle-icon-left,
.toggle-icon-right {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.toggle.enabled .toggle-icon-left { color: var(--accent); }
.toggle.disabled .toggle-icon-right { color: var(--accent); }

/* ================================================================== */
/* Hero Section
/* ================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px 48px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(10, 14, 23, 0.72), rgba(10, 14, 23, 0.90)),
    url('../images/seattle-skyline-night.jpg') no-repeat center center;
  background-size: cover;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-headline .accent { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-subtitle .highlight { color: #fff; }
.hero-subtitle .dim       { color: rgba(255,255,255,0.35); }
.hero-subtitle .company   { color: var(--accent); text-decoration: none; }
.hero-subtitle .company:hover { text-decoration: underline; }

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #0d0d0d;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; text-decoration: none; color: #0d0d0d; }

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { background: rgba(0,0,0,0.65); border-color: var(--accent); color: var(--accent); text-decoration: none; }

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-social-links { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-social-link {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-social-link:hover { color: var(--accent); text-decoration: none; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scroll-pulse 2s ease-in-out infinite;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #fff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ================================================================== */
/* PromptLine
/* ================================================================== */

.prompt-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.prompt-dir    { color: #60a5fa; }
.prompt-on     { color: rgba(255,255,255,0.35); }
.prompt-branch { color: #a78bfa; }
.prompt-arrow  { color: var(--accent); }
.prompt-command { color: #fff; }

.prompt-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}

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

/* ================================================================== */
/* TagPills
/* ================================================================== */

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid;
}

.tag-red   { color: #f87171; border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }
.tag-blue  { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3);  background: rgba(96, 165, 250, 0.08); }
.tag-green { color: #4ade80; border-color: rgba(74, 222, 128, 0.3);  background: rgba(74, 222, 128, 0.08); }
.tag-gold  { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3);  background: rgba(251, 191, 36, 0.08); }

/* ================================================================== */
/* About Section
/* ================================================================== */

#about {
  background: var(--bg-secondary);
  padding: 96px 0 72px;
  border-top: 1px solid var(--bg-border);
}

.about-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.about-avatar { flex-shrink: 0; }

.about-avatar .profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid var(--bg-border);
  cursor: pointer;
  transition: border-color 0.2s;
  object-fit: cover;
  display: block;
}

.about-avatar .profile-pic:hover { border-color: var(--accent); }

.about-body { flex: 1; min-width: 0; }

.about-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.about-bio p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-bio p:last-child { margin-bottom: 0; }

.about-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-border);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}

.about-contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.about-contact-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.about-contact-location {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.about-contact-email {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.about-contact-email:hover { text-decoration: underline; }

.about-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ================================================================== */
/* Blog About Sidebar (Blog layout)
/* ================================================================== */

#about.blog-about {
  padding: 48px 0;
}

.blog-about-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.blog-about-avatar .profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--bg-border);
  cursor: pointer;
  object-fit: cover;
}

.blog-about-body { flex: 1; min-width: 0; }
.blog-about-body h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-about-body p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ================================================================== */
/* Blog Preview (Home)
/* ================================================================== */

.blog-preview {
  background: var(--bg-primary);
  padding: 80px 0;
  border-top: 1px solid var(--bg-border);
}

.blog-preview > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 2rem;
}

.blog-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  padding: 20px;
  transition: border-color 0.2s;
}

.blog-preview-card:hover { border-color: var(--accent-border); }

.blog-preview-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.blog-preview-card h3 a { color: var(--text-primary); text-decoration: none; }
.blog-preview-card h3 a:hover { color: var(--accent); }

.blog-preview-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-preview-all {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.blog-preview-all:hover { text-decoration: underline; }

/* ================================================================== */
/* Contact Section
/* ================================================================== */

#contact {
  background: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}

.contact-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-body {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 600px;
  font-size: 0.9rem;
}

#contact a,
#contact a:visited { color: var(--accent); text-decoration: none; }
#contact a:hover { text-decoration: underline; }

.contact-key-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 680px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
}

.contact-key-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-key-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Shared outline button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--accent-bg); border-color: var(--accent); }

/* ================================================================== */
/* Subscribe Form
/* ================================================================== */

.subscribe-form {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-border);
  padding: 48px 0;
}

.subscribe-form-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.subscribe-form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.subscribe-form-row {
  display: flex;
  gap: 8px;
  max-width: 480px;
  flex-wrap: wrap;
}

.subscribe-form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form-row input[type="email"]:focus { border-color: var(--accent); }

.subscribe-form-row button {
  padding: 8px 20px;
  background: var(--accent);
  color: #0d0d0d;
  border: none;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.subscribe-form-row button:hover   { opacity: 0.85; }
.subscribe-form-row button:disabled { opacity: 0.5; cursor: not-allowed; }

.subscribe-form-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.subscribe-form--success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ================================================================== */
/* Footer
/* ================================================================== */

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-border);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

footer .social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

footer .social-links li { list-style: none; }

footer .social-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
  text-decoration: none;
}

footer .social-links a:hover { color: var(--accent); }

footer .copyright {
  display: flex;
  justify-content: center;
}

footer .copyright li {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer .copyright a { color: var(--text-muted); }
footer .copyright a:hover { color: var(--accent); }

#go-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

#go-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

#go-top a:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================== */
/* ImageModal
/* ================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal .close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.modal .close:hover { opacity: 1; }

.modal .modal-content {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 4px;
  cursor: pointer;
  object-fit: contain;
}

.modal #caption {
  color: #fff;
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.modal #caption p { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-top: 4px; }

/* ================================================================== */
/* Buttons (Print/PDF)
/* ================================================================== */

#printPDF {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button.resume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.button.resume:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================== */
/* Blog Hero
/* ================================================================== */

.blog-hero {
  display: flex;
  align-items: center;
  padding: 100px 48px 56px;
  background:
    linear-gradient(rgba(10, 14, 23, 0.80), rgba(10, 14, 23, 0.95)),
    url('../images/seattle-skyline-night.jpg') no-repeat center center;
  background-size: cover;
  border-bottom: 1px solid var(--bg-border);
}

.blog-hero-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.blog-hero-text { flex: 1; min-width: 0; }

.blog-hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.blog-hero-title {
  font-size: clamp(1.25rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.blog-hero-occupation {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.blog-hero-occupation .dim    { color: rgba(255,255,255,0.3); }
.blog-hero-occupation .accent { color: var(--accent); text-decoration: none; }
.blog-hero-occupation .accent:hover { text-decoration: underline; }

.blog-hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.blog-hero-post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.blog-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-hero-tags .post-tag {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.blog-hero-avatar { flex-shrink: 0; }

.blog-hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  display: block;
}

/* blog-hero always has a dark overlay; rgba(255,255,255,*) values are intentional */

/* Share bar — follows .hero-social-row pattern */
.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.share-bar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.share-bar-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.share-bar-link {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
  cursor: pointer;
  position: relative;
}

.share-bar-link:hover,
.share-bar-link.copied { color: var(--accent); }

.share-bar-copy-hint {
  display: none;
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  background: var(--accent);
  color: #0d0d0d;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10;
}

.share-bar-link.copied .share-bar-copy-hint { display: block; }

.share-native-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.share-native-btn:hover { border-color: var(--accent); color: var(--accent); }

.share-bar-link:focus-visible,
.share-native-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.blog-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px;
}

/* ================================================================== */
/* Resume Page (dark themed)
/* ================================================================== */

.resume-page { background: var(--bg-primary); min-height: 100vh; }

.resume-page-hero {
  display: flex;
  align-items: center;
  padding: 100px 48px 56px;
  background:
    linear-gradient(rgba(10, 14, 23, 0.80), rgba(10, 14, 23, 0.95)),
    url('../images/seattle-skyline-night.jpg') no-repeat center center;
  background-size: cover;
  border-bottom: 1px solid var(--bg-border);
}

.resume-page-hero-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.resume-page-hero-text { flex: 1; min-width: 0; }

.resume-page-hero-avatar { flex-shrink: 0; }

.resume-page-hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  display: block;
}

.resume-page-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.resume-page-name {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.resume-page-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.resume-page-title .dim    { color: rgba(255,255,255,0.3); }
.resume-page-title .accent { color: var(--accent); text-decoration: none; }
.resume-page-title .accent:hover { text-decoration: underline; }

.resume-page-summary {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.resume-print-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 6px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.resume-print-link:hover { color: var(--accent); border-color: var(--accent-border); text-decoration: none; }

.resume-page-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.resume-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Work cards */
.resume-work-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.resume-work-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--bg-border);
}
.resume-work-card:first-child { border-top: 1px solid var(--bg-border); }

.resume-work-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.resume-work-company a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.resume-work-company a:hover { color: var(--accent); }

.resume-work-icon { color: var(--text-muted); font-size: 0.9rem; }

.resume-work-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.resume-work-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
}

.resume-work-dates {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.resume-work-bullets {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.resume-work-bullets li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 4px;
}
.resume-work-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Skills */
.resume-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-skill-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--bg-border);
  border-radius: 3px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  transition: border-color 0.2s, color 0.2s;
}
.resume-skill-pill:hover { border-color: var(--accent-border); color: var(--accent); }

/* Web resume cert grid */
.resume-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 6px;
  text-decoration: none;
  width: 140px;
  transition: border-color 0.2s;
}
.resume-cert-card:hover { border-color: var(--accent); text-decoration: none; }

.resume-cert-badge {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.resume-cert-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

/* Print resume cert items */
#ResumeView .cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

#ResumeView .cert-badge {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

#ResumeView .cert-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

#ResumeView .cert-details b { color: var(--text-primary); }
#ResumeView .cert-details em { color: var(--text-muted); font-style: normal; font-size: 0.78rem; }
#ResumeView .cert-details a { color: var(--accent); text-decoration: none; }
#ResumeView .cert-details a:hover { text-decoration: underline; }

/* Testimonials */
.testimonials-slider {
  width: 100%;
}

.testimonials-slide {
  margin: 0;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.testimonials-slide.fade-out { opacity: 0; }

.testimonials-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 10px;
}

.testimonials-attr { display: flex; flex-direction: column; gap: 2px; }

.testimonials-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
}
.testimonials-name:hover { color: var(--accent); }

.testimonials-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.testimonials-dot.active { background: var(--accent); }

/* ================================================================== */
/* Blog Pages
/* ================================================================== */

.Blog {
  min-height: 100vh;
  background: var(--bg-primary);
}

.blog-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 40px 60px;
}

/* Post List */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-list-loading,
.post-list-empty {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 40px 0;
}

/* Post Card */
.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--bg-border);
}

.post-card:first-child { border-top: 1px solid var(--bg-border); }

.post-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.post-date,
.post-reading-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-card-title a { color: var(--text-primary); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.post-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
}
.post-tag:hover { color: var(--accent); }

/* Post Detail */
.post-detail {
  max-width: 720px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bg-border);
}

.post-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.post-meta a { color: var(--text-muted); }
.post-meta a:hover { color: var(--accent); }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.post-loading,
.post-not-found {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 40px 0;
}

/* Post Content (rendered HTML from Ghost) */
.post-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 { color: var(--text-primary); margin: 2rem 0 1rem; }

.post-content p   { margin-bottom: 1.25rem; }
.post-content a   { color: var(--accent); }

.post-content pre {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; }

/* Tag / Author Views */
/* Tag + Author views — already inside .blog-content, no extra container */
.tag-view h1,
.author-view h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.author-header { margin-bottom: 2rem; }
.author-bio { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; margin-top: 0.5rem; }

/* Blog section label — matches hero-label and resume-page-label */
.blog-section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Blog Index — inside .blog-content, no extra container needed */
.blog-index { }

/* ================================================================== */
/* Resume (web view wrapper — print/PDF handled by resume-print.css)
/* ================================================================== */

.Resume {
  background: #fff;
  color: #333;
  font-family: 'Inter', Arial, sans-serif;
}

/* ================================================================== */
/* Resume Print/PDF view (#ResumeView)
/* ================================================================== */

#ResumeView {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  min-height: 100vh;
  padding: 24px 32px;
}

/* Sections */
#ResumeView section { padding: 0; }

#ResumeView h3 { font-size: 1rem; color: var(--text-primary); margin-bottom: 4px; font-weight: 600; }
#ResumeView a { color: var(--accent); text-decoration: none; }
#ResumeView a:hover { text-decoration: underline; }
#ResumeView p { margin-bottom: 4px; line-height: 1.5; color: var(--text-secondary); }

/* Details header */
#resume-details {
  border-bottom: 1px solid var(--bg-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.resume-details-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.resume-details-avatar .profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  display: block;
}

.resume-details-info { flex: 1; min-width: 0; }

.resume-details-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.resume-details-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.1;
}

.resume-details-website {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.resume-details-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.resume-details-contacts span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.resume-details-contacts i {
  color: var(--accent);
  font-size: 0.85rem;
}

.resume-details-contacts a { color: var(--text-secondary); }
.resume-details-contacts a:hover { color: var(--accent); }

/* Summary sections */
.resume-print-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-border);
}
.resume-print-section:last-child { border-bottom: none; }

.resume-print-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
}

/* Work items */
#ResumeView .work-item {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-border);
}
#ResumeView .work-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

#ResumeView .location { font-size: 0.8rem; color: var(--text-muted); }
#ResumeView .info { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; margin-top: 4px; font-style: normal; }
#ResumeView .info em.date { margin-left: 10px; }
#ResumeView .info em.duration { margin-left: 6px; color: var(--text-muted); }

#ResumeView .work-bullets { margin: 6px 0 0 16px; padding: 0; list-style: disc; }
#ResumeView .work-bullets li { margin-bottom: 4px; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); }

/* Skill cloud */
#ResumeView .bars { padding: 0; }
#ResumeView .bars .skills { margin-top: 12px; list-style: none; padding: 0; }
#ResumeView .bars li {
  position: relative;
  margin-bottom: 28px;
  background: var(--bg-elevated);
  height: 28px;
  border-radius: 3px;
  border: 1px solid var(--bg-border);
}
#ResumeView .bars li em {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-style: normal;
  letter-spacing: 0.5px;
  position: relative;
  top: -22px;
  left: 6px;
}
#ResumeView .bar-expand {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  height: 28px;
  border-radius: 3px 0 0 3px;
}

/* Certs list */
#ResumeView ul.certs { list-style: none; margin: 0; padding: 0; }

/* Testimonials */
#ResumeView .testimonials { list-style: none; margin: 0; padding: 0; }
#ResumeView .testimonials li { margin-bottom: 8px; }
#ResumeView .testimonials blockquote {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
#ResumeView .testimonials blockquote p {
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
#ResumeView .testimonials cite {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: normal;
}
#ResumeView .testimonials cite a { color: var(--text-primary); }

/* White override for PDF capture and actual printing */
#ResumeView.pdf-render,
#ResumeView.print-render {
  background: #fff;
  color: #222;
  --bg-primary:     #fff;
  --bg-secondary:   #f5f5f5;
  --bg-elevated:    #f0f0f0;
  --bg-border:      #ddd;
  --text-primary:   #1a1a1a;
  --text-secondary: #444;
  --text-muted:     #777;
  --accent:         #0d9488;
  --accent-bg:      rgba(13, 148, 136, 0.08);
  --accent-border:  rgba(13, 148, 136, 0.3);
}

/* ================================================================== */
/* Responsive
/* ================================================================== */

@media (max-width: 768px) {
  #nav-wrap { justify-content: flex-start; overflow-x: auto; }
  ul#nav li a { font-size: 0.7rem; padding: 6px 8px; }

  .hero-section { padding: 80px 24px 48px; }
  .hero-headline { font-size: 2rem; }

  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
  }
  .about-actions { justify-content: center; }

  .contact-inner { padding: 0 24px; }
  .subscribe-form { padding: 32px 0; }
  .subscribe-form-inner { padding: 0 24px; }
  footer { padding: 24px; }

  .blog-hero { padding: 80px 24px 48px; }
  .blog-hero-inner { flex-direction: column-reverse; gap: 24px; }
  .blog-hero-photo { width: 100px; height: 100px; }
  .blog-content { padding: 32px 24px; }

  .resume-page-hero { padding: 80px 24px 48px; }
  .resume-page-hero-inner { flex-direction: column-reverse; gap: 24px; }
  .resume-page-hero-photo { width: 100px; height: 100px; }
  .resume-page-body { padding: 40px 24px; }


  .post-detail { max-width: 100%; }
}

@media (max-width: 480px) {
  .blog-preview-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .resume-skills-grid { gap: 6px; }
}
