:root {
  --ink: #1d1c19;
  --muted: #6f6a60;
  --paper: #f7f2ea;
  --panel: #fffaf2;
  --line: #ded3c2;
  --terracotta: #ad5f45;
  --terracotta-dark: #7e3f30;
  --olive: #536647;
  --teal: #2f6d70;
  --gold: #c08a2f;
  --shadow: 0 20px 50px rgba(38, 30, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 242, 234, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 211, 194, 0.78);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-logo {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  height: calc(88svh - 72px);
  max-height: 760px;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 15, 13, 0.84) 0%, rgba(28, 24, 18, 0.68) 38%, rgba(28, 24, 18, 0.1) 76%),
    linear-gradient(0deg, rgba(16, 15, 13, 0.48), rgba(16, 15, 13, 0.08) 42%);
}

.hero-content {
  color: #fff8ed;
  max-width: 760px;
  padding: clamp(92px, 16vh, 160px) clamp(20px, 6vw, 80px) 80px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--terracotta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2b26f;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6.1vw, 5rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-copy {
  color: rgba(255, 248, 237, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 620px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--terracotta);
  color: #fffaf3;
}

.button.primary:hover {
  background: var(--terracotta-dark);
}

.button.secondary {
  border-color: rgba(255, 248, 237, 0.52);
  color: #fff8ed;
}

.intro-band {
  align-items: center;
  background: var(--ink);
  color: #fff8ed;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(120px, 220px) minmax(0, 820px);
  padding: clamp(24px, 5vw, 46px) clamp(20px, 6vw, 80px);
}

.metric {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
}

.metric-label {
  color: #cfc4b3;
  font-weight: 800;
}

.intro-band p {
  color: #eee4d5;
  font-size: clamp(1.06rem, 2vw, 1.45rem);
  line-height: 1.55;
  margin: 0;
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(20px, 6vw, 80px);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 1180px;
}

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

.topic-grid,
.post-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card,
.post-card,
.newsletter-panel {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.topic-card {
  min-height: 220px;
  padding: 22px;
}

.topic-icon {
  align-items: center;
  border-radius: 8px;
  color: #fffaf3;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 22px;
  width: 42px;
}

.topic-card:nth-child(1) .topic-icon {
  background: var(--teal);
}

.topic-card:nth-child(2) .topic-icon {
  background: var(--olive);
}

.topic-card:nth-child(3) .topic-icon {
  background: var(--gold);
  color: #2f2412;
}

.topic-card p,
.post-card p,
.about-copy p,
.newsletter-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.posts-section {
  background: #efe7d9;
}

.search input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  min-width: min(320px, 72vw);
  padding: 0 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 1180px;
}

.filter-button {
  background: transparent;
  border: 1px solid #cfc1ad;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff8ed;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
}

.post-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 18px;
}

.post-tag {
  border-radius: 999px;
  color: #fffaf3;
  padding: 5px 9px;
}

.post-tag.java {
  background: var(--teal);
}

.post-tag.engineering {
  background: var(--olive);
}

.post-tag.leadership {
  background: var(--gold);
  color: #2f2412;
}

.post-card h3 {
  margin-bottom: 14px;
}

.post-card p {
  margin: 0;
}

.post-link {
  color: var(--terracotta-dark);
  font-weight: 900;
  margin-top: auto;
  padding-top: 22px;
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
  margin: 24px auto 0;
  max-width: 1180px;
}

.about-band {
  align-items: center;
  display: grid;
  gap: clamp(24px, 6vw, 78px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  padding: clamp(58px, 9vw, 112px) clamp(20px, 6vw, 80px);
}

.about-copy {
  max-width: 780px;
}

.about-copy p {
  font-size: 1.08rem;
}

.newsletter-panel {
  box-shadow: var(--shadow);
  padding: 28px;
}

.newsletter-panel .button {
  margin-top: 8px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #efe7d9;
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(20px, 6vw, 80px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f2b26f;
  font-weight: 800;
  text-decoration: none;
}

.sr-only {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

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

  .about-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    height: auto;
    min-height: 680px;
  }

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

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

  .intro-band {
    grid-template-columns: 1fr;
  }

  .topic-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .search,
  .search input {
    width: 100%;
  }
}
