* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.8;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d9a566;
  outline-offset: 3px;
}

/* ---- header ---- */

.site-header {
  padding: 50px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
  border-bottom: 1px solid #333;
}

.site-title {
  margin: 0;
  font-size: 3rem;
}

.site-title a {
  text-decoration: none;
  color: #ffffff;
}

.tagline {
  color: #999;
  margin: 12px 0 0;
  font-style: italic;
}

.site-nav {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.site-nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: #d9a566;
  border-color: #d9a566;
}

/* ---- layout ---- */

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ---- article cards (used for both the list and the single article) ---- */

.card {
  background: #1b1b1b;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.card + .card {
  margin-top: 30px;
}

.card h2 {
  color: #ffffff;
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.3;
}

.card h2 a {
  text-decoration: none;
}

.card h2 a:hover {
  color: #d9a566;
}

.card-date {
  display: block;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.card p {
  margin: 0 0 22px;
}

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

.read-more {
  color: #d9a566;
  text-decoration: none;
  font-size: 0.95rem;
}

.read-more:hover {
  text-decoration: underline;
}

.empty-state {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 40px 0;
}

/* ---- single article page ---- */

.back-link {
  display: inline-block;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
}

.back-link:hover {
  color: #d9a566;
  border-color: #d9a566;
}

.article-title {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 2.4rem;
  line-height: 1.25;
}

.article-body h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin: 34px 0 16px;
}

.article-body blockquote {
  margin: 22px 0;
  padding-left: 20px;
  border-left: 3px solid #d9a566;
  color: #b8b8b8;
  font-style: italic;
}

.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article-body a {
  color: #d9a566;
}

.article-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

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

.site-footer {
  text-align: center;
  padding: 40px;
  color: #777;
  font-size: 0.9rem;
}

/* ---- responsive ---- */

@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }
  .card {
    padding: 25px;
  }
  .article-title {
    font-size: 1.8rem;
  }
}

/* =========================================================
   RESUME / ABOUT PAGE — deliberately a different register:
   light, sans-serif, printable. This is the page you'd
   actually send to a company, so the blog's mood (dark,
   literary) steps aside for something plainer and calmer.
   ========================================================= */

body.resume-mode {
  background: #ffffff;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

body.resume-mode .site-header,
body.resume-mode .site-footer {
  display: none;
}

body.resume-mode .container {
  max-width: 700px;
  padding: 50px 24px 80px;
}

.resume-nav {
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.resume-nav a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}

.resume-nav a:hover {
  color: #1c3d5a;
}

.resume-nav-sep {
  margin: 0 8px;
  color: #bbb;
}

.resume-header {
  margin-bottom: 44px;
}

.resume-header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}

.resume-role {
  margin: 6px 0 0;
  color: #555;
  font-size: 1.05rem;
}

.resume-links {
  margin-top: 18px;
  display: flex;
  gap: 18px;
}

.resume-links a {
  color: #1c3d5a;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid #cdd8e2;
  padding-bottom: 2px;
}

.resume-links a:hover {
  border-color: #1c3d5a;
}

.resume-section {
  margin-bottom: 40px;
}

.resume-section h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6e6e6;
}

.resume-section p {
  margin: 0;
  color: #333;
  max-width: 65ch;
}

.resume-job {
  margin-bottom: 26px;
}

.resume-job:last-child {
  margin-bottom: 0;
}

.resume-job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-job-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.resume-period {
  color: #888;
  font-size: 0.88rem;
  white-space: nowrap;
}

.resume-job ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #333;
}

.resume-job li {
  margin-bottom: 6px;
}

.resume-skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-skills li {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.88rem;
  color: #333;
}

@media print {
  body.resume-mode .resume-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .resume-header h1 {
    font-size: 1.7rem;
  }
  .resume-job-head {
    flex-direction: column;
    gap: 2px;
  }
}
