* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #202124;
  --muted: #667085;
  --border: #e4e7ec;
  --accent: #344054;
  --content-width: 980px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* HEADER */

header {
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: var(--content-width);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-block;
  flex-shrink: 0;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;

  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

/* CONTENT */

main {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 52px 24px 0;
}

.hero {
  margin: 0 0 38px;
}

h1 {
  margin: 0 0 12px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;

  color: var(--text);
}

h2 {
  margin: 0 0 12px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;

  color: var(--text);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.subtitle {
  max-width: 720px;
  margin: 0;

  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.section-title {
  margin-top: 48px;
  margin-bottom: 18px;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

/* CARD */

.card {
  display: block;

  min-height: 100%;
  padding: 24px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;

  color: inherit;
  text-decoration: none;

  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);

  transition:
    transform .15s ease,
    border-color .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cfd4dc;
}

.card h2 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
}

/* STATUS */

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 18px;

  font-size: 14px;
  color: var(--muted);
}

.status-dot {
  width: 9px;
  height: 9px;

  background: #32a852;
  border-radius: 50%;
}

/* BADGES */

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  margin-bottom: 12px;

  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-block;

  padding: 4px 9px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: #eef2f6;
  color: #475467;

  font-size: 12px;
  font-weight: 600;
}

/* LINKS */

.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  margin-top: 16px;
}

.project-links a,
.project-links span,
.small-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.project-links a:hover,
.small-link:hover {
  text-decoration: underline;
}

/* UPDATES */

.updates {
  margin-top: 24px;

  overflow: hidden;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.update-row {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.update-row:last-child {
  border-bottom: 0;
}

.update-date {
  display: block;

  margin-bottom: 5px;

  color: #98a2b3;
  font-size: 13px;
}

.update-title {
  margin-bottom: 4px;
  font-weight: 600;
}

.update-text {
  margin: 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* INFO */

.info-box {
  margin-top: 26px;
  padding: 24px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.info-box h2 {
  margin-top: 0;
}

/* FOOTER */

footer {
  width: 100%;
  max-width: var(--content-width);

  margin: 60px auto 24px;
  padding: 0 24px;

  color: #98a2b3;
  font-size: 13px;
}

/* MOBILE */

@media (max-width: 760px) {

  .header-inner {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 18px;

    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    gap: 12px 16px;
  }

  main {
    padding-top: 38px;
  }

  h1 {
    font-size: 30px;
  }

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