:root {
  --bg: #f3f0e8;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: #11161d;
  --muted: #5a6472;
  --line: rgba(17, 22, 29, 0.12);
  --line-strong: rgba(17, 22, 29, 0.2);
  --accent: #1f4d7a;
  --accent-soft: rgba(31, 77, 122, 0.08);
  --shadow: 0 20px 55px rgba(30, 38, 48, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 77, 122, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(153, 136, 98, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f4ed 0%, var(--bg) 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

p,
li {
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 700;
}

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(243, 240, 232, 0.72);
  border-bottom: 1px solid rgba(17, 22, 29, 0.07);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.site-mark {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--text);
}

.hero,
.page-intro,
.section,
.about-shell,
.writing-list,
.article-shell {
  padding-top: 40px;
}

.hero {
  padding-top: 104px;
}

.hero-copy-centered {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero h1,
.page-intro h1 {
  font-size: clamp(2.35rem, 5vw, 4.1rem);
}

.hero-statement {
  max-width: 46rem;
  margin: 0 auto;
  color: #24303d;
  font-size: clamp(1.06rem, 1vw, 1.16rem);
  line-height: 1.76;
  text-wrap: pretty;
}

.hero-statement + .hero-statement {
  margin-top: 14px;
}

.hero-break {
  display: none;
}

.eyebrow,
.card-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede,
.article-lede {
  margin: 22px 0 0;
  max-width: 700px;
  color: #3e4a59;
  font-size: 1.08rem;
  line-height: 1.78;
}

.narrow {
  max-width: 720px;
}

.profile-card,
.article-card,
.writing-row,
.article-page,
.empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.profile-card {
  padding: 24px;
  border-radius: 24px;
}

.profile-text {
  margin: 0 0 18px;
  color: #34404f;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  justify-content: center;
}

.link-list a,
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.link-list a:hover,
.section-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.section {
  padding-top: 48px;
  padding-bottom: 72px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.article-card {
  padding: 24px;
  border-radius: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.article-card h3 {
  margin: 10px 0 12px;
  font-size: 1.5rem;
  font-family: "Newsreader", Georgia, serif;
}

.empty-state {
  padding: 32px 28px;
  border-radius: 24px;
}

.empty-state h2,
.empty-state h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.empty-state code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(17, 22, 29, 0.06);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px;
  border-radius: 999px;
  background: rgba(17, 22, 29, 0.26);
  vertical-align: middle;
}

.page-intro {
  padding-top: 84px;
  padding-bottom: 24px;
}

.page-intro-centered {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.page-intro-centered h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.page-intro-centered .lede {
  margin: 18px auto 0;
  max-width: 40rem;
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.about-shell {
  min-height: calc(100vh - 260px);
  padding-bottom: 88px;
}

.writing-list {
  padding-bottom: 80px;
}

.writing-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border-radius: 24px;
  margin-bottom: 16px;
}

.writing-row-meta p {
  margin: 0 0 16px;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text);
}

.writing-row-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-shell {
  padding-bottom: 96px;
}

.article-page {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 42px;
  border-radius: 28px;
}

.article-page h1 {
  margin-top: 8px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.article-page h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 2rem;
}

.article-page p {
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.reveal {
  animation: riseIn 650ms ease both;
}

.reveal-delay-1 {
  animation-delay: 120ms;
}

.reveal-delay-2 {
  animation-delay: 220ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 72px;
  }

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

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .writing-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (min-width: 721px) {
  .hero-break {
    display: block;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 28px, 1120px);
  }

  .header-row {
    padding: 16px 0;
  }

  .site-nav {
    gap: 14px;
  }

  .hero h1,
  .page-intro h1,
  .article-page h1 {
    max-width: none;
  }

  .profile-card,
  .article-card,
  .writing-row,
  .article-page,
  .empty-state {
    border-radius: 20px;
  }

  .article-page {
    padding: 28px 20px;
  }

  .link-list a,
  .section-link {
    width: 100%;
    justify-content: center;
  }
}
