* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f7f5;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

header {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.logo span {
  color: #2864d7;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #555;
}

nav a:hover {
  color: #111;
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 55px 25px 80px;
}

.intro {
  max-width: 720px;
  margin-bottom: 65px;
}

.intro h1 {
  margin: 0 0 15px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 700;
}

.intro p {
  margin: 0;
  max-width: 650px;
  color: #666;
  font-size: 17px;
}

section {
  margin-bottom: 65px;
}

.section-title {
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.section-title h2 {
  display: inline;
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.5px;
}

.section-title p {
  display: inline;
  margin-left: 12px;
  color: #888;
  font-size: 14px;
}

.tutorials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tutorial {
  background: white;
  border: 1px solid #ddd;
  padding: 23px;
  transition: border-color 0.15s, transform 0.15s;
}

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

.tutorial h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.tutorial p {
  margin: 0 0 14px;
  color: #666;
  font-size: 14px;
  max-width: 500px;
}

.read {
  color: #2864d7;
  font-size: 13px;
  font-weight: bold;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.featured {
  background: #20252b;
  color: white;
  padding: 30px;
  margin-bottom: 65px;
}

.featured .label {
  color: #aeb6c0;
}

.featured h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

.featured p {
  margin: 0 0 18px;
  color: #c4c9cf;
  max-width: 650px;
}

.featured a {
  display: inline-block;
  padding: 9px 15px;
  background: white;
  color: #20252b;
  font-size: 13px;
  font-weight: bold;
}

.network-list {
  background: white;
  border: 1px solid #ddd;
}

.network-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.network-item:last-child {
  border-bottom: none;
}

.network-item:hover {
  background: #fafafa;
}

.network-name {
  font-weight: bold;
}

.network-description {
  color: #777;
  font-size: 13px;
  margin-top: 2px;
}

.arrow {
  color: #2864d7;
  font-size: 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-links a {
  background: white;
  border: 1px solid #d8d8d8;
  padding: 9px 14px;
  font-size: 13px;
  color: #444;
}

.quick-links a:hover {
  border-color: #aaa;
  color: #111;
}

footer {
  border-top: 1px solid #ddd;
  background: white;
  padding: 28px 25px;
  color: #777;
  font-size: 13px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

article.lesson {
  max-width: 760px;
}

article.lesson h1 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 0 0 6px;
}

article.lesson .label {
  margin-bottom: 14px;
}

article.lesson h2 {
  font-size: 23px;
  margin: 40px 0 10px;
  letter-spacing: -0.3px;
}

article.lesson p {
  color: #333;
  margin: 0 0 16px;
}

article.lesson ul {
  color: #333;
  margin: 0 0 16px;
}

article.lesson li {
  margin-bottom: 6px;
}

article.lesson pre {
  background: #20252b;
  color: #e6e6e6;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 6px;
  font: 13px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  margin: 0 0 18px;
}

article.lesson code {
  background: #ececea;
  padding: 1px 5px;
  border-radius: 4px;
  font: 13px "SFMono-Regular", Consolas, Menlo, monospace;
}

article.lesson pre code {
  background: none;
  padding: 0;
}

.lesson-nav {
  margin: 44px 0 0;
  padding-top: 18px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}

.lesson-nav a {
  color: #2864d7;
  font-weight: bold;
}

@media (max-width: 700px) {
  header {
    padding: 0 18px;
  }

  nav {
    display: none;
  }

  main {
    padding: 40px 18px 60px;
  }

  .intro h1 {
    font-size: 34px;
  }

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

  .section-title p {
    display: block;
    margin: 3px 0 0;
  }

  .network-item {
    gap: 15px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 5px;
  }

  article.lesson h1 {
    font-size: 29px;
  }
}
