:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #eaedf2;
  --surface-strong: #dfe4eb;
  --text: #171a20;
  --muted: #5c6470;
  --line: #ccd2dc;
  --accent: #3564cc;
  --accent-contrast: #f4f6f9;
  --focus: #234fae;
  --radius: 14px;
  --shadow: 0 22px 70px rgba(40, 55, 83, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 72px;
  --space-11: 96px;
  --section-space: var(--space-11);
  --hero-bg: #f4f6f9;
  --latest-bg: #edf1f7;
  --materials-bg: #f8f9fb;
  --projects-bg: #e9eef5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111419;
    --surface: #191e26;
    --surface-strong: #222933;
    --text: #edf0f5;
    --muted: #aab2bd;
    --line: #353d49;
    --accent: #7ca3f6;
    --accent-contrast: #111419;
    --focus: #9ab8f7;
    --shadow: 0 24px 74px rgba(5, 8, 14, 0.38);
    --hero-bg: #111419;
    --latest-bg: #171c25;
    --materials-bg: #12171e;
    --projects-bg: #1b2029;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111419;
  --surface: #191e26;
  --surface-strong: #222933;
  --text: #edf0f5;
  --muted: #aab2bd;
  --line: #353d49;
  --accent: #7ca3f6;
  --accent-contrast: #111419;
  --focus: #9ab8f7;
  --shadow: 0 24px 74px rgba(5, 8, 14, 0.38);
  --hero-bg: #111419;
  --latest-bg: #171c25;
  --materials-bg: #12171e;
  --projects-bg: #1b2029;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

button {
  color: inherit;
}

::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1184px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-3);
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  white-space: nowrap;
}

.nav-actions {
  justify-content: flex-end;
  gap: var(--space-2);
}

.main-nav a,
.text-button {
  font-size: 0.9rem;
  font-weight: 590;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.text-button:hover {
  color: var(--text);
}

.text-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.text-button:active,
.filter-button:active,
.empty-state button:active,
.project-links a:active,
.project-links button:active {
  transform: translateY(1px);
}

.hero {
  --section-bg: var(--hero-bg);
  min-height: clamp(480px, 62dvh, 600px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(64px, 7.5vw, 96px);
  padding-block: var(--space-9);
}

main > section {
  position: relative;
  isolation: isolate;
}

main > section::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: var(--section-bg, var(--bg));
  content: "";
}

.latest { --section-bg: var(--latest-bg); }
.materials { --section-bg: var(--materials-bg); }
.projects { --section-bg: var(--projects-bg); }

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

.kicker {
  margin: 0 0 var(--space-5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

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

h1 {
  max-width: 720px;
  margin-bottom: var(--space-5);
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-weight: 780;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.hero-cta,
.all-articles-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.92rem;
  font-weight: 710;
}

.hero-cta:hover,
.all-articles-link:hover {
  background: color-mix(in srgb, var(--accent) 84%, var(--text));
}

.all-articles-link { margin-top: var(--space-5); }

.avatar-figure {
  margin: 0;
}

.avatar-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: var(--shadow);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.avatar-pixel {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 16px 0 0 color-mix(in srgb, var(--accent) 48%, transparent);
}

.pixel-a {
  top: 18px;
  right: 34px;
}

.pixel-b {
  bottom: 26px;
  left: 22px;
}

.section-space {
  padding-block: var(--space-10);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.section-badge svg rect {
  fill: currentColor;
  stroke: none;
}

.section-badge-solid {
  background: var(--accent);
  color: var(--accent-contrast);
}

.section-badge-outline {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
}

.feature-reading-time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.feature-article {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: var(--space-8);
  align-items: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.tag-row span {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
}

.feature-copy h3 {
  max-width: 600px;
  margin-block: var(--space-4) var(--space-4);
  font-size: clamp(1.85rem, 2.8vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.feature-copy p {
  max-width: 560px;
  margin-bottom: var(--space-5);
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-copy > a,
.article-row h3 a,
.article-row h2 a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 52%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.feature-copy > a {
  color: var(--accent);
  font-weight: 720;
}

.feature-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-media:hover img {
  transform: scale(1.012);
}

.materials-head {
  max-width: 680px;
  margin-bottom: var(--space-5);
}

.materials-head h2 {
  margin-bottom: 0;
}

.materials-head h1 {
  margin-bottom: 0;
}

.materials-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.inline-search {
  display: flex;
  align-items: center;
  min-width: 42px;
}

.material-search-form {
  display: flex;
  width: min(360px, calc(100vw - 235px));
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.material-search-form[hidden],
.materials-search-toggle[hidden] { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.material-search-form input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.material-search-form:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

.search-submit,
.search-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-submit:hover,
.search-close:hover { color: var(--accent); background: var(--surface-strong); }
.search-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-close { font-size: 1.3rem; line-height: 1; }

.materials-search-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.materials-search-toggle:hover,
.materials-search-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.materials-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.materials-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(0, 1.25fr);
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-8);
}

.catalog-controls[hidden] {
  display: none;
}

.search-field {
  display: grid;
  gap: var(--space-2);
}

.search-field label {
  font-size: 0.88rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.search-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 88%, transparent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-button,
.empty-state button {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
  font-size: 0.8rem;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active,
.empty-state button:hover {
  border-color: color-mix(in srgb, var(--tag-color, var(--accent)) 56%, var(--line));
  background: color-mix(in srgb, var(--tag-color, var(--accent)) 12%, var(--surface));
  color: var(--tag-color, var(--accent));
}

.article-list {
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 138px;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.article-row[hidden] {
  display: none;
}

.reading-time {
  padding-top: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.article-state {
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
}

.article-row h3,
.article-row h2 {
  max-width: 840px;
  margin-bottom: var(--space-3);
  font-size: clamp(1.28rem, 1.85vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.article-row h2 { font-weight: 700; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.article-tag {
  --tag-color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 48%, var(--line));
  border-radius: 7px;
  color: var(--tag-color);
  background: color-mix(in srgb, var(--tag-color) 10%, var(--surface));
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.tag-ai { --tag-color: #8256d8; }
.tag-telegram { --tag-color: #168bd2; }
.tag-automation { --tag-color: #c56c20; }
.tag-products { --tag-color: #15936f; }
.tag-development { --tag-color: #52708f; }
.tag-design { --tag-color: #bf4f88; }
.tag-life { --tag-color: #d45b48; }
.tag-travel { --tag-color: #178a96; }
.tag-macos { --tag-color: #557397; }
.tag-swiftui { --tag-color: #a95b87; }
.tag-widgets { --tag-color: #9c7122; }
.tag-chatgpt { --tag-color: #19816f; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-ai { --tag-color: #b494ff; }
  :root:not([data-theme="light"]) .tag-telegram { --tag-color: #55b9f0; }
  :root:not([data-theme="light"]) .tag-automation { --tag-color: #f0a15b; }
  :root:not([data-theme="light"]) .tag-products { --tag-color: #50c99f; }
  :root:not([data-theme="light"]) .tag-development { --tag-color: #8fabc7; }
  :root:not([data-theme="light"]) .tag-design { --tag-color: #ef86bc; }
  :root:not([data-theme="light"]) .tag-life { --tag-color: #ff8a78; }
  :root:not([data-theme="light"]) .tag-travel { --tag-color: #57c5cf; }
  :root:not([data-theme="light"]) .tag-macos { --tag-color: #93b0d2; }
  :root:not([data-theme="light"]) .tag-swiftui { --tag-color: #e69ac7; }
  :root:not([data-theme="light"]) .tag-widgets { --tag-color: #dfb967; }
  :root:not([data-theme="light"]) .tag-chatgpt { --tag-color: #65d3b7; }
}

:root[data-theme="dark"] .tag-ai { --tag-color: #b494ff; }
:root[data-theme="dark"] .tag-telegram { --tag-color: #55b9f0; }
:root[data-theme="dark"] .tag-automation { --tag-color: #f0a15b; }
:root[data-theme="dark"] .tag-products { --tag-color: #50c99f; }
:root[data-theme="dark"] .tag-development { --tag-color: #8fabc7; }
:root[data-theme="dark"] .tag-design { --tag-color: #ef86bc; }
:root[data-theme="dark"] .tag-life { --tag-color: #ff8a78; }
:root[data-theme="dark"] .tag-travel { --tag-color: #57c5cf; }
:root[data-theme="dark"] .tag-macos { --tag-color: #93b0d2; }
:root[data-theme="dark"] .tag-swiftui { --tag-color: #e69ac7; }
:root[data-theme="dark"] .tag-widgets { --tag-color: #dfb967; }
:root[data-theme="dark"] .tag-chatgpt { --tag-color: #65d3b7; }

.article-thumb {
  display: block;
  width: 138px;
  height: 98px;
  margin: 0;
  overflow: hidden;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.empty-state {
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.empty-state p {
  margin-bottom: var(--space-5);
  color: var(--muted);
}

.results-status {
  min-height: 24px;
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.projects h2 {
  margin-bottom: var(--space-6);
}

.archive-intro {
  padding-top: var(--space-7);
  color: var(--muted);
}

.archive-intro p { margin: var(--space-4) 0 0; }
.back-link { color: var(--accent); font-size: 0.9rem; font-weight: 700; }
.archive-intro + .materials { border-top: 0; padding-top: var(--space-6); }

.project-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.project-links a,
.project-links button {
  --project-accent: var(--accent);
  position: relative;
  display: grid;
  gap: var(--space-2);
  min-height: 128px;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 120ms ease;
}

.project-links > :nth-child(1) {
  --project-accent: #4f6bdc;
}

.project-links > :nth-child(2) {
  --project-accent: #15936f;
}

.project-links > :nth-child(3) {
  --project-accent: #d45b48;
}

.project-links > :nth-child(4) {
  --project-accent: #168bd2;
}

.project-links a:hover,
.project-links button:hover {
  border-color: color-mix(in srgb, var(--project-accent) 68%, var(--line));
  background: var(--surface-strong);
}

.project-links strong {
  padding-right: 72px;
  font-size: 1.22rem;
}

.project-links span {
  color: var(--muted);
  font-size: 0.92rem;
}

.project-links .project-icon {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent) 48%, var(--line));
  border-radius: 12px;
  color: var(--project-accent);
  background: color-mix(in srgb, var(--project-accent) 10%, var(--surface));
}

.project-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.project-icon svg rect {
  fill: none;
}

.project-icon svg .icon-fill {
  fill: currentColor;
  stroke: none;
}

.project-icon svg .icon-fill-soft {
  fill: currentColor;
  stroke: none;
  opacity: 0.16;
}

.placeholder-message {
  min-height: 24px;
  margin: var(--space-4) 0 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row p {
  margin-bottom: 0;
}

.footer-row nav {
  display: flex;
  gap: var(--space-5);
}

.footer-row a:hover {
  color: var(--text);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .nav-row {
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: var(--space-4);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    gap: var(--space-8);
  }

  .feature-article {
    grid-template-columns: 1fr;
  }

  .feature-media {
    grid-row: 1;
  }

}

@media (max-width: 720px) {
  :root {
    --section-space: var(--space-10);
  }

  .shell {
    width: min(100% - 40px, 620px);
  }

  .site-header {
    position: relative;
  }

  .nav-row {
    min-height: auto;
    padding-block: var(--space-4);
  }

  .brand {
    font-size: 0.94rem;
  }

  .nav-actions {
    gap: var(--space-2);
  }

  .text-button {
    min-height: 38px;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8rem;
  }

  .main-nav {
    gap: var(--space-5);
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding-block: 56px var(--space-10);
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    margin-bottom: var(--space-5);
    font-size: clamp(2.45rem, 10vw, 3.45rem);
    letter-spacing: -0.038em;
  }

  .avatar-figure {
    width: min(100%, 350px);
  }

  .section-space {
    padding-block: var(--section-space);
  }

  .section-heading {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }

  .feature-copy h3 {
    font-size: clamp(1.8rem, 7.4vw, 2.35rem);
  }

  .article-row {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: var(--space-3) var(--space-4);
    padding-block: var(--space-5);
  }

  .article-row > .reading-time {
    grid-column: 1 / -1;
  }

  .article-content {
    grid-column: 1;
  }

  .article-thumb {
    grid-column: 2;
    width: 110px;
    height: 92px;
  }

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

  .footer-row {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: var(--space-6);
  }
}

@media (max-width: 430px) {
  .nav-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

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

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

  .filter-button {
    width: 100%;
  }

  .footer-row nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .nav-row {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .main-nav {
    grid-row: 3;
  }
}
