/* ====== Design Palette ====== */
:root {
  --paper: oklch(7 0 0);
  --ink: color-mix(in oklch, var(--color) 5%, black);
  --font: 100%/1.5 system-ui;
  --space: clamp(6px, 2px + 2vw, 15px);
  --line: 1px solid;
  --container: 1200px;
}

/* ====== Base Elements ====== */
body {
  font: var(--font);
  color: var(--ink);
  background: #f9f9f9;
  margin: 0;
  padding: 0;
  padding-bottom: 80px;
  font-family: system-ui, sans-serif;
}

h1, h2 {
  margin: 0 0 8px 0;
}

a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #333;
  color: #333;
  text-decoration: none;
  margin-top: 8px;
}

a:hover {
  background: #333;
  color: white;
}

a:focus {
  outline: 3px solid blue;
}

img,
svg {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ====== Header ====== */
header {
  text-align: center;
  padding: 24px 16px;
  border-bottom: 1px solid #ccc;
  background: white;
}

/* ====== Site Layout ====== */
main {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* First article spans full width */
main > article:first-child {
  grid-column: span 2;
}

/* ====== Article Layout ====== */
article {
  border: 1px solid #ccc;
  padding: 16px;
  background: white;
  text-align: left;
}

article h2 {
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

article p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ====== Footer ====== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 16px;
  background: #333;
  color: white;
  font-size: 0.9rem;
}
