:root {
  --ink: #18211f;
  --muted: #5b6965;
  --paper: #f8f6ef;
  --paper-strong: #fffdf7;
  --line: #d8ded7;
  --teal: #1f8178;
  --teal-dark: #115b55;
  --coral: #d65d4a;
  --brass: #ad8437;
  --charcoal: #222725;
  --shadow: 0 18px 50px rgba(24, 33, 31, 0.12);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a[aria-disabled="true"] {
  cursor: not-allowed;
}

.site-header {
  align-items: center;
  background: rgba(248, 246, 239, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 222, 215, 0.78);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 760;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--paper-strong);
  display: grid;
  font-size: 0.74rem;
  height: 34px;
  letter-spacing: 0;
  place-items: center;
}

.nav-links {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.93rem;
  gap: clamp(12px, 2vw, 26px);
}

.nav-links a {
  align-items: center;
  display: inline-flex;
  min-height: 32px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: min(700px, 72vh);
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-media {
  background-image: url("assets/portfolio-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(248, 246, 239, 0.96) 0%, rgba(248, 246, 239, 0.82) 42%, rgba(248, 246, 239, 0.28) 100%),
    linear-gradient(180deg, rgba(24, 33, 31, 0.1), rgba(24, 33, 31, 0.26));
}

.hero-content {
  align-content: center;
  display: grid;
  max-width: 760px;
  padding: clamp(28px, 4vw, 46px) clamp(20px, 5vw, 76px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4rem, 10vw, 8.5rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 22px;
  max-width: 680px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.22rem;
  letter-spacing: 0;
  line-height: 1.24;
  margin-bottom: 10px;
}

.hero-summary {
  color: #2f3c39;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 620px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.experience-rail {
  margin-top: clamp(18px, 3vw, 30px);
  max-width: 700px;
}

.experience-rail p {
  color: #52605c;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.logo-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.company-logo {
  align-items: center;
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid rgba(24, 33, 31, 0.16);
  color: #2b3532;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 780;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
}

.company-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--ink);
  color: var(--paper-strong);
  display: grid;
  font-size: 0.72rem;
  font-weight: 850;
  height: 20px;
  line-height: 1;
  place-items: center;
  text-transform: uppercase;
}

.company-logo.linkedin .company-mark {
  background: #0a66c2;
  text-transform: none;
}

.company-logo.youtube .company-mark {
  background: #d5483f;
  border-radius: 6px;
  color: transparent;
  position: relative;
}

.company-logo.youtube .company-mark::after {
  border-block: 5px solid transparent;
  border-left: 8px solid #fffdf7;
  content: "";
  left: 7px;
  position: absolute;
  top: 5px;
}

.company-logo.nuro .company-mark {
  background: #1f8178;
}

.company-logo.benchling .company-mark {
  background: #3c5f55;
}

.company-logo.maybern .company-mark {
  background: #ad8437;
}

.button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper-strong);
  display: inline-flex;
  font-weight: 720;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button-light {
  background: var(--paper-strong);
  border-color: rgba(255, 253, 247, 0.8);
  color: var(--ink);
}

.button-light:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--paper-strong);
}

.section {
  padding: clamp(52px, 8vw, 98px) clamp(18px, 4vw, 54px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1140px;
}

.intro-band {
  background: var(--charcoal);
  color: var(--paper-strong);
  padding-block: clamp(28px, 5vw, 46px);
}

.snapshot-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snapshot-item {
  background: rgba(255, 253, 247, 0.05);
  min-height: 112px;
  padding: 24px;
}

.snapshot-item strong {
  color: #f0c15b;
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.snapshot-item span {
  color: rgba(255, 253, 247, 0.76);
  line-height: 1.45;
}

.section-heading {
  margin-bottom: clamp(24px, 4vw, 38px);
}

.split-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
}

.project-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 30px;
  text-transform: uppercase;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.tag {
  background: #edf2ed;
  color: #3c4c48;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 9px;
}

.surface {
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
}

.search-box input {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  min-width: min(310px, 64vw);
  padding: 0 14px;
}

.search-box input:focus,
.filter-button:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(31, 129, 120, 0.34);
  outline-offset: 3px;
}

.article-list,
.mention-list {
  display: grid;
  gap: 1px;
}

.article-row,
.mention-row {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: 20px;
  min-height: 98px;
  padding: 22px 24px;
}

.article-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.article-row h3,
.mention-row h3 {
  margin-bottom: 6px;
}

.article-row p,
.mention-row p {
  color: var(--muted);
  margin-bottom: 0;
}

.article-meta {
  color: var(--muted);
  display: grid;
  font-size: 0.88rem;
  gap: 6px;
  justify-items: end;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  min-height: 38px;
  padding: 0 13px;
}

.filter-button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper-strong);
}

.mention-row {
  grid-template-columns: 120px minmax(0, 1fr) 180px;
}

.mention-row > span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.contact-section {
  background: var(--teal-dark);
  color: var(--paper-strong);
}

.contact-section .eyebrow {
  color: #f0c15b;
}

.contact-layout {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: rgba(255, 253, 247, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  min-height: 78px;
  padding: 24px clamp(18px, 4vw, 54px);
}

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

@media (max-width: 820px) {
  .site-header,
  .split-heading,
  .contact-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(248, 246, 239, 0.98) 0%, rgba(248, 246, 239, 0.92) 54%, rgba(248, 246, 239, 0.5) 100%),
      linear-gradient(180deg, rgba(24, 33, 31, 0.05), rgba(24, 33, 31, 0.25));
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.8rem);
  }

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

  .article-row,
  .mention-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .article-meta {
    justify-items: start;
  }

  .filter-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-links {
    font-size: 0.88rem;
  }

  .hero-content {
    padding-top: 42px;
  }

  .button,
  .button-light,
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .company-logo {
    flex: 1 1 calc(50% - 9px);
    justify-content: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Monochrome editorial direction */
:root {
  --ink: #111111;
  --muted: #686868;
  --paper: #f4f3ef;
  --paper-strong: #fbfaf6;
  --line: #d4d2ca;
  --teal: #111111;
  --teal-dark: #111111;
  --coral: #111111;
  --brass: #111111;
  --charcoal: #151515;
  --shadow: none;
}

body {
  background: var(--paper);
}

.site-header {
  background: rgba(244, 243, 239, 0.9);
  border-bottom-color: rgba(17, 17, 17, 0.12);
}

.brand-mark,
.button,
.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
}

.hero {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: clamp(28px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.58fr);
  min-height: calc(100vh - 68px);
  overflow: visible;
  padding: clamp(36px, 7vw, 90px) clamp(20px, 6vw, 82px);
}

.hero-media,
.hero-overlay {
  display: none;
}

.hero-content {
  align-content: center;
  display: grid;
  grid-area: auto;
  max-width: 620px;
  padding: 0;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.18em;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-summary {
  color: #2d2d2d;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  max-width: 520px;
}

.hero-actions {
  margin-top: 22px;
}

.button {
  background: transparent;
  border-color: rgba(17, 17, 17, 0.72);
  color: var(--ink);
  min-height: 40px;
  padding-inline: 14px;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
}

.hero-portrait {
  margin: 0;
  position: relative;
}

.hero-portrait::before {
  border: 1px solid rgba(17, 17, 17, 0.24);
  content: "";
  inset: clamp(10px, 2vw, 20px) clamp(-14px, -1vw, -8px) clamp(-14px, -1vw, -8px) clamp(14px, 1.2vw, 20px);
  position: absolute;
  z-index: 0;
}

.hero-portrait img {
  aspect-ratio: 4 / 5;
  display: block;
  filter: grayscale(1) contrast(1.08);
  height: auto;
  max-height: min(640px, calc(100vh - 120px));
  object-fit: cover;
  object-position: center 45%;
  position: relative;
  width: 100%;
  z-index: 1;
}

.experience-rail {
  border-top: 1px solid rgba(17, 17, 17, 0.22);
  margin-top: clamp(26px, 5vw, 46px);
  max-width: 560px;
  padding-top: 14px;
}

.experience-rail p {
  color: var(--muted);
  font-size: 0.68rem;
  margin-bottom: 8px;
}

.logo-row {
  gap: 0;
}

.company-logo {
  background: transparent;
  border: 0;
  color: #292929;
  font-size: 0.82rem;
  font-weight: 640;
  min-height: 0;
  padding: 0;
}

.company-logo:not(:last-child)::after {
  color: #8a8a8a;
  content: "/";
  font-weight: 400;
  margin: 0 9px;
}

.company-mark {
  display: none;
}

.intro-band,
.contact-section,
.site-footer {
  background: #151515;
}

.snapshot-item {
  background: rgba(255, 255, 255, 0.04);
}

.snapshot-item strong,
.contact-section .eyebrow {
  color: #f7f7f2;
}

.project-card,
.article-row,
.mention-row {
  box-shadow: none;
}

.surface {
  background: #fbfaf6;
}

.tag {
  background: #eeeeea;
  color: #333333;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .hero-portrait {
    max-width: 520px;
  }

  .hero-portrait img {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button,
  .button-light {
    width: auto;
  }

  .company-logo {
    flex: 0 0 auto;
    justify-content: flex-start;
  }
}


/* Compact index pass */
.nav-links {
  gap: 18px;
}

.hero {
  min-height: auto;
  padding-block: clamp(34px, 6vw, 72px);
}

.hero-portrait img {
  max-height: min(560px, calc(100vh - 150px));
}

.section {
  padding: clamp(30px, 5vw, 54px) clamp(20px, 6vw, 82px);
}

.section-inner {
  max-width: 1120px;
}

.section-heading {
  align-items: baseline;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 560;
}

.project-grid {
  display: block;
}

.project-card {
  align-items: start;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  display: grid;
  gap: 18px;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  min-height: 0;
  padding: 16px 0 20px;
}

.project-topline {
  display: block;
  margin: 0;
}

.project-topline span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.project-card p {
  margin-bottom: 0;
  max-width: 640px;
}

.tag-row {
  align-content: start;
  justify-content: end;
  margin-top: 0;
  padding-top: 0;
}

.surface {
  background: var(--paper);
  border: 0;
}

.split-heading {
  align-items: baseline;
}

.search-box input {
  background: transparent;
  min-height: 38px;
  min-width: min(230px, 58vw);
}

.article-row {
  background: transparent;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  min-height: 0;
  padding: 14px 0;
}

.article-row h3 {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 580;
  margin-bottom: 4px;
}

.article-row p,
.article-meta {
  font-size: 0.86rem;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  color: var(--muted);
  min-height: 58px;
  padding-block: 18px;
}

@media (max-width: 820px) {
  .hero {
    gap: 28px;
  }

  .section-heading,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .tag-row {
    justify-content: flex-start;
  }
}


/* Final tightening */
.hero {
  padding-block: clamp(26px, 4vw, 52px);
}

.hero-portrait img {
  max-height: min(500px, calc(100vh - 180px));
}

.hero-content {
  max-width: 600px;
}

.experience-rail {
  margin-top: clamp(20px, 3.5vw, 34px);
}

@media (min-width: 821px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.52fr);
  }
}

.project-card .project-topline a {
  display: inline-block;
  margin-top: 10px;
}

.project-card {
  grid-template-columns: 110px minmax(0, 1fr);
}

#projects.section {
  padding-bottom: clamp(18px, 3vw, 34px);
}

#writing.section {
  padding-top: clamp(18px, 3vw, 34px);
}


.community-list {
  display: grid;
}

.community-row {
  align-items: start;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: 110px minmax(0, 260px) minmax(0, 1fr);
  padding: 14px 0;
}

.community-row time,
.community-row p,
.community-row > span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.community-row h3 {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 580;
  margin-bottom: 4px;
}

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

#community.section {
  padding-block: clamp(18px, 3vw, 34px);
}

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


/* Requested hero refinements */
.hero {
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.42fr);
}

.hero-content {
  align-content: center;
  max-width: 520px;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-actions {
  margin-top: 0;
}

.hero-portrait {
  max-width: 310px;
  justify-self: center;
}

.hero-portrait img {
  aspect-ratio: auto;
  max-height: none;
  object-position: center;
}

.experience-rail {
  margin-top: clamp(24px, 4vw, 38px);
}

@media (min-width: 821px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.42fr);
  }
}

@media (max-width: 820px) {
  .hero-portrait {
    justify-self: start;
    max-width: 360px;
  }
}

.hero-portrait img {
  aspect-ratio: auto;
  object-position: center;
}


.writing-category {
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 16px 0;
}

.writing-category > h3 {
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.writing-category .article-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.writing-category .article-row {
  grid-template-columns: minmax(0, 1fr) 72px;
  padding: 12px 0;
}

.article-row h4 {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 580;
  letter-spacing: 0;
  line-height: 1.24;
  margin: 0;
}

.writing-category .article-row time {
  color: var(--muted);
  font-size: 0.86rem;
  justify-self: end;
}

@media (max-width: 820px) {
  .writing-category {
    grid-template-columns: 1fr;
  }
}


.social-button {
  aspect-ratio: 1;
  min-height: 40px;
  padding: 0;
  width: 44px;
}

.social-button svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.feed-highlight {
  align-items: baseline;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  text-decoration: none;
}

.feed-highlight strong {
  font-size: 0.9rem;
}

.feed-highlight span {
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-highlight:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}


.company-logo {
  text-decoration: none;
}

.company-logo:hover span:last-child,
.community-row h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.now-building {
  align-items: baseline;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}

.now-building > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-building .feed-highlight {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}


/* Mobile readiness pass */
@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding: 14px 18px;
  }

  .hero {
    gap: 18px;
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: visible;
    padding: 24px 0 28px;
  }

  .hero-media,
  .hero-overlay {
    display: none;
  }

  .hero-content {
    grid-area: auto;
    max-width: none;
    padding: 0 24px;
  }

  .hero-content h1 {
    font-size: clamp(2.85rem, 12.5vw, 3.55rem);
    line-height: 0.92;
    margin-bottom: 18px;
  }

  .hero-portrait {
    grid-area: auto;
    justify-self: start;
    margin: 0 24px;
    max-width: min(62vw, 220px);
  }

  .logo-row {
    gap: 0;
  }

  .company-logo {
    min-height: 32px;
    padding-block: 4px;
  }

  .now-building {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .feed-highlight {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .section {
    padding-inline: 24px;
  }

  .community-row h3 a,
  .article-row h4 a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .hero-portrait {
    max-width: min(68vw, 210px);
  }

  .writing-category .article-row {
    grid-template-columns: minmax(0, 1fr) 52px;
  }
}


@media (min-width: 561px) and (max-width: 820px) {
  .hero-portrait {
    max-width: 280px;
  }
}


.page-shell {
  min-height: calc(100vh - 126px);
}

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

.page-intro h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.94;
  margin: clamp(28px, 6vw, 64px) 0 0;
  max-width: 760px;
}

.back-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.86rem;
  min-height: 32px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.archive-list {
  border-top: 1px solid rgba(17, 17, 17, 0.14);
  display: grid;
}

.archive-row,
.archive-empty {
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  padding: 18px 0;
}

.archive-row h3 {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 580;
  margin-bottom: 4px;
}

.archive-row p,
.archive-row > span,
.archive-empty p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.archive-empty {
  display: block;
}

@media (max-width: 820px) {
  .page-intro h1 {
    font-size: clamp(2.25rem, 10vw, 3.05rem);
  }

  .archive-row {
    grid-template-columns: 1fr;
  }
}


.book-gallery {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.book-card {
  min-width: 0;
}

.book-card figure {
  aspect-ratio: 2 / 3;
  background: #e8e6df;
  border: 1px solid rgba(17, 17, 17, 0.14);
  margin: 0 0 12px;
  overflow: hidden;
}

.book-card img {
  display: block;
  filter: grayscale(1) contrast(1.05);
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease;
  width: 100%;
}

.book-card:hover img {
  filter: none;
}

.book-card h3 {
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  font-weight: 620;
  line-height: 1.18;
  margin-bottom: 5px;
}

.book-card p,
.book-card time {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}

.book-card time {
  margin-top: 4px;
}

@media (max-width: 560px) {
  .book-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.archive-row h3 a {
  align-items: center;
  display: inline-flex;
  min-height: 32px;
}


.media-gallery {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gallery-card {
  min-width: 0;
}


@media (max-width: 560px) {
  .media-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.gallery-art {
  aspect-ratio: 2 / 3;
  background: #e8e6df;
  border: 1px solid rgba(17, 17, 17, 0.14);
  display: block;
  margin: 0 0 12px;
  overflow: hidden;
}

.gallery-art img {
  display: block;
  filter: grayscale(1) contrast(1.05);
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease;
  width: 100%;
}

.gallery-card:hover .gallery-art img {
  filter: none;
}

.gallery-card h3 {
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  font-weight: 620;
  line-height: 1.18;
  margin-bottom: 5px;
}

.gallery-card h3 a {
  align-items: center;
  display: inline-flex;
  min-height: 32px;
  text-decoration: none;
}

.gallery-card h3 a:hover {
  text-decoration: underline;
}

.gallery-card p,
.gallery-card time {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
}
