/* The Kids 3D Lab blog: bright, roomy and easy to read, like the tutorial. */
:root {
  --sky: #fff7f1;
  --card: #ffffff;
  --ink: #13203a;
  --soft: #5b5f73;
  --line: #f1ddd0;
  --violet: #ff6a2b;
  --violet-soft: #ffe5d6;
  --yellow-soft: #fff5dc;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 500 20px/1.65 var(--body);
}

a {
  color: #c9460f;
  font-weight: 800;
}

a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}


.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font: 800 20px var(--display);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 106, 43, 0.3);
  transition: transform 0.12s;
}

.button:hover {
  transform: translateY(-2px);
}

/* ---------- the list of posts ---------- */
.index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.intro {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.2;
}

.intro h1 {
  margin: 0 0 10px;
  font-size: 52px;
}

.intro p {
  margin: 0;
  color: var(--soft);
  font-size: 22px;
}

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: 0 16px 34px rgba(60, 60, 140, 0.14);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1a1d28;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

.card b {
  font: 800 23px/1.2 var(--display);
}

.card-text span {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.45;
}

.card small {
  color: var(--violet);
  font-size: 15px;
  font-weight: 800;
}

/* ---------- one post ---------- */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.crumbs {
  margin: 0;
  font-size: 17px;
}

.post h1 {
  margin: 6px 0 8px;
  font-size: 46px;
}

.meta {
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 17px;
}

.hero {
  display: block;
  width: 100%;
  margin-bottom: 26px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(40, 40, 110, 0.18);
}

article h2 {
  margin: 38px 0 10px;
  font-size: 32px;
}

article h3 {
  margin: 26px 0 8px;
  font-size: 25px;
}

article p {
  margin: 0 0 16px;
}

article ul,
article ol {
  margin: 0 0 18px;
  padding-left: 28px;
}

article li {
  margin-bottom: 8px;
}

article li::marker {
  color: var(--violet);
  font-weight: 800;
}

article figure {
  margin: 22px 0 26px;
}

article figure img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(40, 40, 110, 0.14);
}

article figcaption {
  margin-top: 8px;
  color: var(--soft);
  font-size: 16px;
  text-align: center;
}

.tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 24px;
  padding: 16px 20px;
  border: 2px solid #f3d489;
  border-radius: 16px;
  background: var(--yellow-soft);
  font-size: 19px;
}

kbd {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #fff;
  font: 800 17px var(--body);
}

.cta {
  margin: 30px 0;
  text-align: center;
}

.more {
  margin-top: 50px;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}

.more h2 {
  font-size: 30px;
}

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

.more .card b {
  font-size: 19px;
}

.more .card-text span {
  display: none;
}


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

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  .cards,
  .more .cards {
    grid-template-columns: 1fr;
  }

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

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

}

/* ---------- the guide: tables and a list of parts ---------- */
.table {
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--violet-soft);
  font-family: var(--display);
  font-size: 19px;
}

tr:last-child td {
  border-bottom: 0;
}

.toc {
  margin: 0 0 28px;
  padding: 18px 22px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.toc b {
  font-family: var(--display);
  font-size: 22px;
}

.toc ol {
  columns: 2;
  margin: 8px 0 0;
  padding-left: 24px;
  font-size: 17px;
}

.guide-link {
  margin-top: 18px !important;
}

@media (max-width: 600px) {
  .toc ol {
    columns: 1;
  }

  table {
    font-size: 16px;
  }
}

.tip .i {
  margin-top: 4px;
  font-size: 24px;
  color: #c98a12;
}
