:root {
  --ink: #101114;
  --muted: #555d68;
  --line: #d9dde4;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --blue: #0646ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

a {
  color: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.88rem;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero {
  padding: 64px 0 34px;
}

.hero-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: end;
}

.portrait {
  margin: 0;
  border: 1px solid currentColor;
  background: var(--soft);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
}

.portrait::after {
  display: block;
  padding: 8px 10px;
  border-top: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.78rem;
  content: "eugene.jpeg";
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.lede {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.actions,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid currentColor;
  text-decoration: none;
}

.button.primary,
.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: 34px 0;
  border-top: 1px solid currentColor;
}

.section h2 {
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid currentColor;
  background: currentColor;
}

.profile-card > div {
  padding: 18px;
  background: var(--paper);
}

.profile-label {
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.78rem;
}

.profile-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  letter-spacing: -0.06em;
}

.profile-card p:not(.profile-label) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.post-list {
  display: grid;
  border-top: 1px solid currentColor;
}

.post {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid currentColor;
}

.post span {
  color: var(--blue);
}

.post h3 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  letter-spacing: -0.06em;
}

.post p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.article {
  min-height: 152px;
  padding: 16px;
  border: 1px solid currentColor;
  text-decoration: none;
}

.article:hover {
  outline: 3px solid var(--blue);
}

.article span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

.article strong {
  display: block;
  line-height: 1.25;
}

.home-articles {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  border: 1px solid currentColor;
  background: currentColor;
}

.home-articles article {
  padding: 20px;
  background: var(--paper);
}

.home-articles h3 {
  max-width: 840px;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.home-articles p:not(.profile-label) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.home-articles p:last-child {
  margin-bottom: 0;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-cloud span {
  padding: 9px 11px;
  border: 1px solid currentColor;
  background: var(--soft);
}

.signal-list {
  display: grid;
  border-top: 1px solid currentColor;
}

.signal-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
}

.signal-list strong {
  color: var(--blue);
}

.signal-list span {
  color: var(--muted);
}

.consult-card {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1px;
  border: 1px solid currentColor;
  background: currentColor;
}

.consult-card > div {
  padding: 18px;
  background: var(--paper);
}

.consult-card h3 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.consult-card p:not(.profile-label) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.consult-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.footer {
  padding: 30px 0 42px;
  border-top: 1px solid currentColor;
  color: var(--muted);
}

.article-hero {
  padding-bottom: 28px;
}

.article-directory {
  grid-template-columns: repeat(4, 1fr);
}

.article-page {
  max-width: 860px;
  padding: 58px 0 80px;
}

.article-page h1 {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.article-page h2 {
  margin-top: 38px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-page p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.source-box {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  margin: 30px 0 36px;
  padding: 16px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.source-box a {
  color: var(--blue);
}

@media (max-width: 820px) {
  .top,
  .profile-card,
  .hero-with-image,
  .consult-card,
  .post {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 220px;
  }

  .top {
    display: grid;
  }

  .articles {
    grid-template-columns: 1fr;
  }

  .source-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .signal-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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