:root {
  --ink: #121417;
  --muted: #626a74;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --line: #d8dde3;
  --blue: #1f5c8b;
  --green: #28715c;
  --gold: #a97723;
  --red: #973b35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: rgba(247, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus {
  border-color: var(--ink);
}

main {
  padding: 52px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 42px;
  align-items: end;
  min-height: 54vh;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  max-width: 11ch;
}

.hero p,
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1rem);
}

.hero-panel {
  border-left: 3px solid var(--ink);
  padding-left: 24px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  padding: 11px 16px;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
}

.button:hover,
.button:focus {
  background: #f0f1f1;
}

section {
  padding-top: 54px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.section-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.framework-grid,
.link-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

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

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

.detail-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.card:hover,
.card:focus {
  border-color: var(--ink);
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card p,
.panel p,
.panel ul {
  margin-top: 0;
  color: var(--muted);
}

.card span {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.green {
  border-top-color: var(--green);
}

.gold {
  border-top-color: var(--gold);
}

.red {
  border-top-color: var(--red);
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}

.panel h3 {
  margin: 0 0 12px;
}

.panel ul {
  padding-left: 20px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
  font-size: 0.92rem;
}

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

  .framework-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    border-left: 0;
    border-top: 3px solid var(--ink);
    padding: 20px 0 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1140px);
  }

  .topbar,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .framework-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 34px;
  }

  .card {
    min-height: 180px;
  }
}
