:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --chip-bg: #f1f5f9;
  --chip-text: #334155;
  --link: #0f172a;
  --maxw: 1120px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wordmark-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav a {
  text-decoration: none;
  color: #334155;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.27rem 0.74rem;
  font-size: 0.9rem;
}

.site-nav a:hover {
  border-color: var(--border-strong);
  color: #0f172a;
}

.site-main {
  padding-top: 2.7rem;
  padding-bottom: 3rem;
}

.profile-hero {
  margin: 0 0 2rem;
  text-align: center;
  padding: 0.4rem 0 0.2rem;
}

.profile-hero--home {
  min-height: clamp(360px, 64vh, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-name {
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.profile-title-text {
  margin: 0.75rem 0 0;
  font-size: 1.02rem;
  color: var(--muted);
}

.profile-intro {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: 0.98rem;
}

.profile-links {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.profile-link {
  text-decoration: none;
  color: #1e293b;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  border-radius: 999px;
  padding: 0.3rem 0.84rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-link:hover {
  color: #0f172a;
  border-color: #94a3b8;
}

.profile-link-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.currently-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.currently-row span {
  font-size: 0.83rem;
  color: #334155;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
}

.currently-row strong {
  color: #0f172a;
}

.latest-inline {
  margin-top: 1rem;
}

.latest-inline-label {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  font-weight: 700;
}

.latest-inline-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.latest-inline-link:hover {
  color: #334155;
}

.home-cta-row {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.86rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.home-cta:hover {
  background: #1e293b;
}

.home-cta--subtle {
  border-color: var(--border-strong);
  background: #ffffff;
  color: #1e293b;
}

.home-cta--subtle:hover {
  background: #f8fafc;
}

.story-section-title {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
}

.articles-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
}

.articles-intro {
  margin: 0.55rem 0 1.15rem;
  color: var(--muted);
}

.articles-page {
  max-width: 860px;
  margin: 0 auto;
}

.articles-list {
  display: grid;
  gap: 0.85rem;
}

.article-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.95rem 1rem 1rem;
}

.article-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-row-title {
  margin: 0.38rem 0 0;
  line-height: 1.25;
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  letter-spacing: -0.008em;
}

.article-row-title a {
  color: var(--text);
  text-decoration: none;
}

.article-row-title a:hover {
  color: #334155;
}

.article-row-excerpt {
  margin: 0.55rem 0 0.72rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-row-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-row-link:hover {
  color: #334155;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.story-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-media-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
}

.story-body {
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 0.13rem 0.56rem;
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.story-card h3 {
  margin: 0;
  line-height: 1.26;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}

.story-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.story-card h3 a:hover {
  color: #334155;
}

.story-excerpt {
  margin: 0.72rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.story-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.read-more {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.read-more:hover {
  color: #334155;
}

.post-article {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.4rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.93rem;
}

.back-link:hover {
  color: #0f172a;
}

.post-article h1 {
  margin: 0;
  line-height: 1.17;
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
  letter-spacing: -0.015em;
}

.meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-content {
  margin-top: 1.2rem;
  font-size: 1.03rem;
}

.post-content h2,
.post-content h3 {
  line-height: 1.25;
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2.3rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-main {
    padding-top: 2rem;
  }

  .profile-hero--home {
    min-height: clamp(300px, 56vh, 520px);
  }

  .home-cta-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .story-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
