:root {
  --ink: #16201d;
  --muted: #5d6965;
  --line: #d9ded9;
  --paper: #fbfaf6;
  --soft: #f0f4ef;
  --teal: #0e6868;
  --coral: #c76f58;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(22, 32, 29, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.text-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topbar,
.footer {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 850;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.94);
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--coral);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
}

h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

p,
li {
  color: var(--muted);
  font-size: 1.04rem;
}

.summary-card,
.article-card,
.cta-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 24px;
}

.profile-photo {
  overflow: hidden;
  padding: 0;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  object-position: 50% 34%;
}

.profile-photo figcaption {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card {
  padding: clamp(24px, 4vw, 44px);
}

.article-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

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

.post-card {
  min-height: 250px;
  display: grid;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--white);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: rgba(14, 104, 104, 0.45);
  box-shadow: 0 16px 34px rgba(22, 32, 29, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.post-card span {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card .card-link {
  align-self: end;
  color: var(--teal);
  font-weight: 850;
}

.cta-card {
  margin-top: 36px;
  padding: 28px;
  color: var(--white);
  background: var(--ink);
}

.cta-card p {
  color: rgba(255, 255, 255, 0.76);
}

.related-links {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.related-links h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.related-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--teal);
  background: var(--paper);
  font-weight: 800;
}

.footer {
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .article-hero,
  .grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 48px 0;
  }

  .footer {
    flex-direction: column;
  }
}
