@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #faf9f7;
  --bg-subtle: #f3f1ee;
  --surface: #ffffff;
  --border: #e8e4de;
  --border-subtle: #f0ece6;
  --text: #1a1816;
  --text-muted: #6b6560;
  --text-faint: #a09890;
  --accent: #2b6cb0;
  --accent-hover: #1a4f8a;
  --accent-light: #ebf4ff;
  --orange: #e07a3a;
  --orange-dark: #c9652a;
  --green: #276749;
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 860px;
  --nav-height: 52px;
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  --card-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.7; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Nav */
nav { position: sticky; top: 0; z-index: 100; background: rgba(250,249,247,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--nav-height); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; color: var(--text); letter-spacing: -0.01em; position: relative; display: inline-block; }
.nav-brand::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--text); transition: width 0.25s ease; }
.nav-brand:hover::after { width: 100%; }
.nav-brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.01em; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 1.75rem 0 1rem; animation: fadeUp 0.5s ease both; }
.hero-greeting { font-size: 1.6rem; margin-bottom: 0.1rem; }
.hero h1 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; color: var(--text); line-height: 1.2; margin-bottom: 0.65rem; letter-spacing: -0.02em; }
.hero-bio { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; margin-bottom: 0.5rem; }
.hero-bio-role { font-size: 0.95rem; color: var(--text-faint); line-height: 1.7; max-width: 600px; margin-bottom: 0.9rem; font-style: italic; }
.hero-bio a { color: var(--text-muted); border-bottom: 1px solid var(--border); }
.hero-bio a:hover { color: var(--accent); border-color: var(--accent); }
.hero-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; color: var(--text-muted); padding: 0.28rem 0.65rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: all 0.15s; }
.hero-link:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg-subtle); }

/* GitHub Card */
.github-card { display: block; margin-bottom: 1.1rem; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow-x: auto; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; text-decoration: none; }
.github-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); border-color: #c8bfb5; }
.github-card-header { display: flex; align-items: center; margin-bottom: 0.65rem; }
.github-card-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); display: flex; align-items: center; gap: 0.4rem; }
.github-card-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.github-card-link { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); margin-left: auto; }
.github-card img { width: 100%; min-width: 480px; border-radius: 4px; }

/* Home Grid */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; align-items: stretch; }
.home-col { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
/* Cards */
.home-section, .subscribe-section { flex: 1; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; animation: fadeUp 0.5s ease both; }
.home-section:hover, .subscribe-section:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); border-color: #c8bfb5; }

/* Section Header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--border-subtle); }
.section-title { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; color: var(--text); letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 0.45rem; }
.section-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.view-all { font-size: 0.78rem; color: var(--text-faint); display: flex; align-items: center; gap: 0.2rem; transition: color 0.15s; }
.view-all:hover { color: var(--accent); }

/* Post List */
.post-list { list-style: none; }
.post-item { padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle); }
.post-item:last-child { border-bottom: none; }
.post-item-title { display: block; color: var(--accent); font-size: 1rem; font-weight: 400; line-height: 1.4; margin-bottom: 0.2rem; transition: color 0.15s; }
.post-item-title:hover { color: var(--accent-hover); }
.post-item-meta { display: flex; align-items: center; gap: 0.5rem; }
.post-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); white-space: nowrap; }
.post-tag { display: inline-block; font-size: 0.68rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 0.05rem 0.4rem; line-height: 1.6; }

/* Home Project List */
.project-list { list-style: none; }
.project-item { padding: 0.55rem 0; border-bottom: 1px solid var(--border-subtle); }
.project-item:last-child { border-bottom: none; }
.project-item a { display: block; color: var(--text); }
.project-item a:hover .project-name { color: var(--accent); }
.project-name { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 0.1rem; transition: color 0.15s; }
.project-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* Musings home card */
.til-list { list-style: none; }
.til-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border-subtle); }
.til-item:last-child { border-bottom: none; }
.til-text { font-size: 0.875rem; color: var(--text); line-height: 1.55; margin-bottom: 0.15rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.til-date { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); }

/* Subscribe */
.subscribe-title { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.7rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 0.45rem; }
.subscribe-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.subscribe-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.55; }
.subscribe-form { display: flex; flex-direction: column; gap: 0.45rem; }
.subscribe-form input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-sans); font-size: 0.9rem; background: var(--bg); color: var(--text); outline: none; transition: border-color 0.15s; }
.subscribe-form input:focus { border-color: var(--accent); }
.subscribe-form button { width: 100%; padding: 0.5rem 1rem; background: var(--orange); color: #fff; border: none; border-radius: 8px; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.subscribe-form button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.subscribe-form button:active { transform: translateY(0); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 1.1rem 0; margin-top: 0.5rem; }
footer .container { display: flex; justify-content: center; font-size: 0.8rem; color: var(--text-faint); gap: 0.3rem; }
footer a { color: var(--text-faint); border-bottom: 1px solid transparent; }
footer a:hover { color: var(--text-muted); border-color: var(--text-faint); }

/* ====================================
   Writings Page
   ==================================== */
.writings-header { padding: 3.75rem 0 1.5rem; }
.writings-headline { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 1.25rem; line-height: 1.2; }
.page-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: -0.75rem; margin-bottom: 1.5rem; line-height: 1.6; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-tab { font-size: 0.85rem; font-family: var(--font-sans); padding: 0.3rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-muted); cursor: pointer; transition: all 0.15s; user-select: none; }
.filter-tab:hover { border-color: var(--text-muted); color: var(--text); }
.filter-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 500; }
.year-group { margin-bottom: 2rem; }
.year-heading { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500; color: var(--orange); margin-bottom: 0.5rem; }
.writings-list { list-style: none; }
.writing-row { display: flex; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle); }
.writing-row:last-child { border-bottom: none; }
.writing-title { flex: 1; color: var(--accent); font-size: 1rem; font-weight: 400; line-height: 1.4; transition: color 0.15s; }
.writing-title:hover { color: var(--accent-hover); }
.writing-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
.writing-tag { display: inline-block; font-size: 0.72rem; color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 0.1rem 0.5rem; white-space: nowrap; flex-shrink: 0; }

/* ====================================
   Individual Post
   ==================================== */
.page-header { padding: 2rem 0 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.page-title { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; }
.post-header { padding: 2rem 0 1.5rem; }
.post-title { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.post-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); display: flex; gap: 1rem; }
.post-body { padding-bottom: 4rem; }
.post-body p { margin-bottom: 1.4rem; font-size: 1rem; color: var(--text); line-height: 1.8; }
.post-body h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 2rem 0 0.75rem; font-weight: 500; }
.post-body h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.post-body li { margin-bottom: 0.4rem; line-height: 1.7; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1.25rem; margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }
.post-body code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-subtle); padding: 0.15em 0.4em; border-radius: 3px; }
.post-body pre { background: var(--text); color: var(--bg); padding: 1.25rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.4rem; }
.post-body pre code { background: none; padding: 0; color: inherit; font-size: 0.875rem; }

/* ====================================
   Projects Page
   ==================================== */
.projects-page { padding: 0 0 2rem; display: flex; flex-direction: column; gap: 1.25rem; }

.projects-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }

.project-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-block:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.project-block-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.project-block-links { display: flex; gap: 0.75rem; }

.project-ext-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.project-ext-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.project-block-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.project-block-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-block-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.project-block-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.project-block-tag {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
}

.project-block-year {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--border);
  flex-shrink: 0;
  line-height: 1;
}

/* ====================================
   Musings Page
   ==================================== */
.musings-page { padding: 3.75rem 0 4rem; }
.musings-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.musings-headline { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.musings-toggle-all { font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.3rem 0.75rem; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.15s; }
.musings-toggle-all:hover { border-color: var(--text-muted); color: var(--text); }
.musings-month-group { margin-bottom: 2rem; }
.musings-month-label { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--text-faint); text-transform: uppercase; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }
.musings-list { list-style: none; }
.musings-item { border-bottom: 1px solid var(--border-subtle); }
.musings-item:last-child { border-bottom: none; }
.musings-item-header { display: flex; align-items: baseline; gap: 1.25rem; padding: 0.85rem 0; cursor: pointer; user-select: none; }
.musings-item-title { color: var(--text) !important; }
.musings-day { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; color: var(--orange); min-width: 2.5rem; flex-shrink: 0; }
.musings-day sup { font-size: 0.55em; vertical-align: super; }
.musings-item-title { font-size: 1rem; color: var(--text-muted); line-height: 1.5; flex: 1; transition: color 0.15s; }
.musings-chevron { font-size: 0.8rem; color: var(--text-faint); flex-shrink: 0; transition: transform 0.2s ease; }
.musings-item-body { padding: 0 0 1rem 3.75rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; overflow: hidden; max-height: 600px; transition: max-height 0.3s ease, opacity 0.2s ease; opacity: 1; }
.musings-item[data-open="false"] .musings-item-body { max-height: 0; opacity: 0; padding-bottom: 0; }
.musings-item[data-open="false"] .musings-chevron { transform: rotate(-90deg); }

/* ====================================
   Animations
   ==================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 680px) {
  .hero h1 { font-size: 1.6rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
  .home-grid { grid-template-columns: 1fr; }
  .writing-row { flex-wrap: wrap; gap: 0.4rem; }
  .project-block-bottom { flex-direction: column; align-items: flex-start; }
  .project-block-name { font-size: 1.5rem; }
  .musings-headline { font-size: 1.4rem; }
  .musings-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ====================================
   Notes Page
   ==================================== */
.notes-page { padding: 0 0 4rem; }

.notes-section { margin-bottom: 2.5rem; }

.notes-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.notes-list { list-style: none; }

.notes-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.notes-item:last-child { border-bottom: none; }

.notes-title {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  flex: 1;
  transition: color 0.15s;
}

.notes-title:hover { color: var(--accent-hover); }

.notes-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.notes-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.notes-rating {
  font-size: 0.75rem;
  color: var(--orange);
  white-space: nowrap;
}

.notes-empty {
  font-size: 0.9rem;
  color: var(--text-faint);
  font-style: italic;
  padding: 0.65rem 0;
}

.dino-card {
  margin-bottom: 1.1rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  width: 100%;
}

.dino-card img {
  width: 100%;
  height: auto;
  display: block;
}

.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center top;
  display: block;
  will-change: transform;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250,249,247,0) 0%,
    rgba(250,249,247,0.5) 35%,
    rgba(250,249,247,0.85) 60%,
    rgba(250,249,247,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.5rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-content .hero-greeting {
  font-size: 1.6rem;
  margin-bottom: 0.1rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-content .hero-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 0;
}
.nav-linkedin {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  transition: color 0.15s;
}

.nav-linkedin:hover {
  color: var(--text-muted);
}
/* Project GIF Preview */
.project-preview-trigger {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  cursor: pointer;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.project-preview-popup {
  display: none;
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 8px;
  width: 200px;
}

.project-preview-popup {
  display: none; /* changed from hover-based */
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  padding: 8px;
  width: 200px;
}

/* Remove this entire block: */
/* .project-preview-trigger:hover .project-preview-popup { display: block; } */
.project-preview-phone {
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
}

.project-preview-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.home-col .subscribe-section {
  flex: 1;
}

.home-col .home-section {
  flex: 1;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-hamburger.nav-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.nav-active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.nav-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 680px) {
  .hero h1 { font-size: 1.6rem; }
  .writing-row { flex-wrap: wrap; gap: 0.4rem; }
  .project-block-bottom { flex-direction: column; align-items: flex-start; }
  .project-block-name { font-size: 1.5rem; }
  .musings-headline { font-size: 1.4rem; }
  .musings-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }

  /* Hamburger visible on mobile */
  .nav-hamburger { display: flex; }

  /* Nav links become dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250,249,247,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    z-index: 99;
  }

  .nav-links.nav-open { display: flex; }
  .nav-links a { font-size: 1rem; color: var(--text); }

  /* Flatten columns and reorder cards */
  .home-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .home-col {
    display: contents !important;
  }

  #writings-card { order: 2; }
  #projects-card { order: 1; }
  #musings-card { order: 3; }
  #subscribe-card { order: 4; }
}

.notes-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.notes-author {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}