:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #68645c;
  --quiet: #898277;
  --line: #ded8ca;
  --line-strong: #171717;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --blue: #2457a6;
  --green: #0f766e;
  --shadow: 0 20px 45px rgba(38, 35, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(20px, 4vw, 44px) 20px;
  background: #ffffff;
}

.site-header::after {
  grid-column: 1 / -1;
  height: 1px;
  background: #e6e6e6;
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand em {
  color: #b70000;
  font-style: normal;
}

.brand small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}

.nav a:hover,
.project-card a:hover,
.writing-item:hover h3 {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 640px);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  padding: clamp(76px, 11vw, 138px) clamp(20px, 4vw, 44px) clamp(42px, 6vw, 72px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 28px;
  color: #111111;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.7;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.signal-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: #38524f;
  font-size: 12px;
  font-weight: 780;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  color: #0576a8;
  font-size: 18px;
  font-weight: 800;
}

.button.primary {
  background: transparent;
  color: #0576a8;
}

.button.secondary {
  background: transparent;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.writer-hero {
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 760px) minmax(220px, 320px);
  min-height: auto;
  align-items: center;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  color: #111111;
  font-size: 20px;
  font-weight: 850;
}

.quick-links a {
  color: #111111;
}

.quick-links a:hover {
  color: #0576a8;
}

.profile-panel {
  align-self: center;
  width: min(220px, 100%);
  margin: clamp(42px, 9vw, 120px) auto 0;
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 1;
  padding: 7px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 82px) clamp(20px, 4vw, 44px);
  border-top: 0;
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  background: #ffffff;
}

.statement h2 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
}

.statement-copy p:last-child {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 10px;
  min-height: 300px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(240, 251, 248, 0.74), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: 0 12px 28px rgba(38, 35, 28, 0.06);
}

.skill-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #38524f;
  font-size: 13px;
  font-weight: 850;
}

.skill-cloud .cloud-lg {
  min-height: 42px;
  font-size: 17px;
}

.skill-cloud .cloud-xl {
  min-height: 52px;
  background: #171717;
  color: #ffffff;
  font-size: 22px;
}

.section-heading {
  display: block;
  margin-bottom: 22px;
}

.section-heading h2,
.site-footer h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 0.9em;
  height: 0.9em;
  color: var(--accent-dark);
}

.title-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.title-text {
  min-width: 0;
}

.section-intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
}

.text-section .section-intro {
  margin-bottom: 24px;
}

.text-section {
  padding-top: clamp(18px, 3vw, 34px);
  padding-bottom: clamp(30px, 5vw, 56px);
}

.text-section h2 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
}

.skills-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.text-stack {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.text-stack p {
  margin-bottom: 0;
  color: #2d2b27;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.72;
}

.skill-radar {
  margin: 0;
}

.skill-radar svg {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
}

.radar-grid circle,
.radar-grid line {
  fill: none;
  stroke: #cfc8bb;
  stroke-width: 1;
}

.radar-area {
  fill: rgba(23, 23, 23, 0.08);
}

.radar-line {
  fill: none;
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.radar-labels {
  fill: #3a3833;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.compact-section {
  padding-top: clamp(30px, 5vw, 56px);
  padding-bottom: clamp(30px, 5vw, 56px);
}

.page-intro {
  padding-bottom: clamp(20px, 3vw, 34px);
}

.page-intro h1 {
  margin-bottom: 18px;
}

.page-intro p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.series-home-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid #e6e6e6;
}

.series-home-card {
  min-height: auto;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  background: #ffffff;
}

.series-home-card.featured {
  background: #ffffff;
}

.series-home-card span,
.post-meta {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.series-home-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.2;
}

.series-home-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.background-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #e6e6e6;
}

.background-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.background-grid.compact .background-card {
  min-height: 220px;
}

.project-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.background-card,
.project-card,
.writing-item {
  background: var(--panel);
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: none;
}

.background-card {
  min-height: 260px;
  padding: 26px;
}

.background-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
}

.background-card p {
  color: var(--muted);
}

.info-list {
  display: grid;
  border-top: 1px solid #e6e6e6;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.22fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  padding: 20px 0;
  border-bottom: 1px solid #e6e6e6;
}

.info-meta,
.project-topic {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
}

.info-row h3 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.25;
}

.info-row p {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.project-card {
  min-height: auto;
  padding: 24px 0;
}

.project-card.featured {
  background: #f0fbf8;
  border-color: rgba(15, 118, 110, 0.3);
}

.project-card h2,
.project-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.2;
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 850;
}

.project-table {
  display: grid;
  border-top: 1px solid #e6e6e6;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.22fr) minmax(0, 1fr) minmax(90px, auto);
  gap: clamp(16px, 4vw, 44px);
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid #e6e6e6;
}

.project-row h2 {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.25;
}

.project-row p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
}

.project-status {
  justify-self: end;
  color: var(--accent-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

a.project-status:hover {
  color: #0576a8;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 18px;
  color: #2d4b48;
  font-size: 15px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "•";
  color: var(--accent);
  font-weight: 900;
}

.writing-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #e6e6e6;
}

.writing-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
}

.writing-item .list-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eef2ff;
  color: var(--blue);
  font-weight: 850;
}

.writing-item h3 {
  margin-bottom: 5px;
  font-size: 24px;
}

.writing-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.writing-item .post-meta {
  margin-bottom: 4px;
  color: var(--quiet);
}

.post-table {
  display: grid;
  border-top: 1px solid #e6e6e6;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.16fr) minmax(0, 1fr) minmax(112px, auto);
  gap: clamp(16px, 4vw, 44px);
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #e6e6e6;
}

.post-row time,
.post-row em {
  color: var(--quiet);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
  white-space: nowrap;
}

.post-row span {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 760;
  line-height: 1.35;
}

.post-row:hover span {
  color: var(--accent-dark);
}

.series-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(240, 251, 248, 0.86) 0%, rgba(255, 253, 248, 0.94) 40%),
    #fffdf8;
}

.series-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.series-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
}

.series-hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: #403d37;
  font-size: clamp(17px, 2vw, 21px);
}

.series-note {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(38, 35, 28, 0.06);
}

.series-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.series-note span {
  color: var(--muted);
  font-size: 14px;
}

.article-list {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 66px) clamp(20px, 4vw, 44px);
}

.article-card {
  display: grid;
  grid-template-columns: minmax(52px, 0.1fr) minmax(0, 1fr) auto;
  gap: clamp(16px, 4vw, 44px);
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
  background: transparent;
  text-decoration: none;
}

.article-card:hover h2 {
  color: var(--accent-dark);
}

.article-card-index {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.article-card h2 {
  margin-bottom: 4px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 760;
  line-height: 1.35;
}

.article-card p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}

.read-time {
  justify-self: end;
  min-width: 80px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 760;
  text-align: right;
  white-space: nowrap;
}

.article-page {
  background: #fffdf8;
}

.article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px) clamp(20px, 4vw, 44px);
}


.series-progress {
  margin-bottom: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  background: #ece6da;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

.series-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.series-phase {
  padding: 20px 0 4px;
}

.series-phase-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 850;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.5;
}

.article-body th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 760;
  background: #f4f1eb;
  border: 1px solid var(--line);
  color: var(--ink);
}

.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: #403d37;
  vertical-align: top;
}

.series-steps a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 850;
}

.series-steps a.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: #f0fbf8;
  color: var(--accent-dark);
}

.step-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.series-steps a.active .step-index {
  background: var(--accent);
  color: #ffffff;
}

.step-title {
  color: #403d37;
  font-size: 13px;
  line-height: 1.25;
}

.series-steps a.active .step-title {
  color: var(--accent-dark);
}

.article-header {
  margin-bottom: 34px;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-summary {
  color: #403d37;
  font-size: clamp(18px, 2vw, 22px);
}

.article-body {
  color: #24211d;
  font-size: 18px;
}

.article-body h2 {
  margin: 38px 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
}

.article-body p,
.article-body li {
  color: #403d37;
}

.article-body ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.article-body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: #f4f1eb;
}

.article-body blockquote p {
  margin-bottom: 0;
  color: #403d37;
}

.article-body pre {
  margin: 24px 0;
  padding: 20px 22px;
  background: #f4f1eb;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.72;
  color: #24211d;
}

.article-body pre code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.article-toc {
  margin: 0 0 38px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: #f9f8f5;
}

.article-toc-label {
  display: block;
  margin-bottom: 14px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.article-toc li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: baseline;
}

.article-toc .toc-num {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.article-toc a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.article-toc a:hover {
  color: var(--accent-dark);
}

.article-body h2 {
  position: relative;
}

.heading-anchor {
  position: absolute;
  left: -1.2em;
  opacity: 0;
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 400;
  transition: opacity 0.12s;
  text-decoration: none;
}

.article-body h2:hover .heading-anchor {
  opacity: 1;
}

.article-figure {
  margin: 28px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--line);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.concept-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.concept-node {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.concept-node strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.concept-node span {
  color: var(--muted);
  font-size: 14px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.article-nav a:last-child {
  text-align: right;
}

.article-nav span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.article-nav strong {
  font-size: 18px;
  line-height: 1.25;
}

.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 30px;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 44px);
  background: #ffffff;
  color: var(--ink);
  border-top: 1px solid #e6e6e6;
}

.site-footer .section-kicker {
  color: var(--accent-dark);
}

.contact-panel {
  align-self: end;
}

.contact-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.contact-actions a:hover {
  border-color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero,
  .series-hero,
  .statement,
  .skills-overview,
  .series-home-grid,
  .background-grid,
  .project-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .writer-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 620px;
  }

  .series-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 20px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .writer-hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  .section-heading {
    display: block;
  }

  .project-card,
  .writing-item {
    padding: 18px;
  }

  .writing-item {
    grid-template-columns: 1fr;
  }

  .info-row,
  .project-row,
  .post-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-status {
    justify-self: start;
  }

  .read-time {
    justify-self: start;
    text-align: left;
  }

  .series-steps,
  .concept-map,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-nav a:last-child {
    text-align: left;
  }
}
