:root {
  --sans: 'IBM Plex Sans', sans-serif;
  --serif: 'Roboto Slab', serif;
  --bg: #d8d8d8;
  --text: #111;
  --accent: #315d63;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  padding: 1rem;
  overflow-x: hidden;
}

.grid-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

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

header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.25rem;
}

header .subtitle {
  font-size: 1rem;
  color: #555;
  font-weight: 400;
}

main p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

footer {
  font-size: 0.9rem;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  display: inline-block;
  padding: 0.25rem 0;
  min-height: 44px;
}

/* Responsive tweaks for narrow screens */
@media (max-width: 600px) {
  .grid-container {
    padding: 0.5rem;
  }

  header h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

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

  footer a {
    margin-bottom: 0.25rem;
  }
}
