:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #5d6864;
  --line: #d9ded9;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --sage: #587b67;
  --clay: #b7623b;
  --blue: #285f74;
  --gold: #a87b25;
  --shadow: 0 16px 40px rgba(21, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

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

button {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.status-strip span,
.tag,
.filter,
.link-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.status-strip span {
  padding: 9px 12px;
  color: var(--muted);
  white-space: nowrap;
}

.status-strip strong {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.command-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  background: var(--ink);
  color: #f4f1e9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.command-copy p {
  color: #d8ded8;
  max-width: 54ch;
  line-height: 1.6;
}

.cloud-map {
  display: grid;
  gap: 10px;
}

.cloud-map div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.cloud-map span {
  display: block;
  margin-bottom: 4px;
  color: #f1c27b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cloud-map strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

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

.spotlight {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 34px;
}

.nav-button {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.05fr);
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.spotlight-card img,
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e6e8e4;
}

.image-fallback {
  display: grid;
  place-items: center;
  min-height: 100%;
  background: #e6e8e4;
  color: var(--sage);
  font-size: 2rem;
  font-weight: 900;
}

.spotlight-body {
  padding: 24px;
}

.spotlight-body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

.spotlight-body p {
  color: var(--muted);
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.tag {
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag.ivy {
  color: var(--blue);
}

.tag.savannah {
  color: var(--sage);
}

.tag.hostgator {
  color: var(--clay);
}

.tag.archive {
  color: var(--gold);
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
}

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

.project-card {
  display: grid;
  grid-template-rows: 148px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-body {
  padding: 14px;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.project-body p {
  min-height: 60px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.target {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .command-band,
  .spotlight-card,
  .grid {
    grid-template-columns: 1fr;
  }

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

  .nav-button {
    min-height: 44px;
  }
}

@media (max-width: 540px) {
  main {
    width: min(100% - 20px, 1180px);
    margin-top: 16px;
  }

  .topbar {
    padding: 18px 14px;
  }

  .command-band,
  .spotlight-body {
    padding: 18px;
  }

  .project-card {
    grid-template-rows: 128px 1fr;
  }
}
