:root {
  --bg: #f9f9fb;
  --text: #1a1c1d;
  --muted: #474747;
  --surface: #ffffff;
  --surface-alt: #f3f3f5;
  --accent: #005cba;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(198 198 198 / 20%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 1px solid rgb(198 198 198 / 35%);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
}

.nav a.active {
  color: var(--text);
  background: var(--surface-alt);
  font-weight: 700;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero.compact {
  padding-bottom: 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

h1 {
  margin: 0.6rem 0 1rem;
  line-height: 1.1;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 68ch;
  color: var(--muted);
}

.section {
  padding: 2rem 0 3rem;
}

.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.stack {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  padding: 1rem;
  border-radius: 12px;
}

.panel h3 {
  margin: 0 0 0.35rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.meta {
  font-size: 0.84rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  background: #e2e2e4;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.36rem 0.6rem;
}

.grid.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.card-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.card-links a {
  color: var(--accent);
  font-weight: 600;
}

.thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  border: 1px solid rgb(198 198 198 / 30%);
}

.thumb-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.card-summary {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Subtle expand/collapse: nearly invisible until hover; chevron hints interactivity */
.expand-details {
  margin: 0 0 0.65rem;
}

.expand-details-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0.15rem 0;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  font: inherit;
  cursor: pointer;
  user-select: none;
  color: color-mix(in srgb, var(--muted) 32%, transparent);
  transition: color 0.18s ease;
}

.expand-details-trigger::-webkit-details-marker {
  display: none;
}

.expand-details-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.expand-details-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  margin-top: 0.05em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.expand-details-trigger:hover {
  color: var(--accent);
}

.expand-details-trigger:hover .expand-details-label {
  border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.expand-details-trigger:hover::after {
  opacity: 0.95;
}

.expand-details-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  color: var(--accent);
}

.expand-details[open] > .expand-details-trigger {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
}

.expand-details[open] > .expand-details-trigger::after {
  transform: rotate(-135deg);
  margin-top: 0.2em;
  opacity: 0.65;
}

.expand-details[open] > .expand-details-trigger:hover {
  color: var(--accent);
}

.expand-details-panel {
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgb(198 198 198 / 16%);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.expand-details-body {
  margin: 0 0 0.5rem;
}

.expand-details-body:last-child {
  margin-bottom: 0;
}

.expand-section {
  margin-top: 0.75rem;
}

.expand-section:first-child {
  margin-top: 0;
}

.expand-section-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}

.expand-section-text {
  margin: 0;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid rgb(198 198 198 / 20%);
  background: #eeeef0;
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 4%;
    background: var(--surface);
    border-bottom: 1px solid rgb(198 198 198 / 25%);
  }

  .nav.open {
    display: flex;
  }
}

@media (min-width: 761px) {
  .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
