/* Simple responsive layout for the How Everyday Objects Work site */
:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: #f7f6f4;
  color: #1f1f1f;
  line-height: 1.6;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fcfcfc, #f1f3f4);
}

.site-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  margin-bottom: 0.3rem;
  font-size: 2.8rem;
}

h2 {
  margin-top: 0;
  font-size: 1.8rem;
}

p {
  margin-top: 0;
}

.intro {
  background: #fff;
  padding: 1.65rem;
  border-radius: 1.25rem;
  border: 1px solid #e0dfdc;
  box-shadow: 0 20px 40px rgba(31, 31, 31, 0.08);
}

.grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.5rem;
  border: 1px solid #dedcd8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px rgba(31, 31, 31, 0.12);
}

.card p {
  min-height: 4.2rem;
}

.card a {
  margin-top: auto;
  font-weight: 600;
  color: #005ec2;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.9rem;
  color: #6c6b68;
  margin-bottom: 1rem;
}

.article-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.article-hero div {
  display: inline-block;
  font-size: 3rem;
  padding: 0.6rem;
}

.content-block {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.8rem;
  border: 1px solid #dedcd8;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(15, 15, 15, 0.07);
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }

  .article-hero div {
    font-size: 2.6rem;
  }
}
