/* Here are some starter styles
You can edit these or replace them entirely 
It's showing you a common way to organise CSS 
And includes solutions to common problems 
As well as useful links to learn more */

/* ====== Design Palette ======
 This is our "design palette".
 It sets out the colours, fonts, styles etc to be used in this design 
 At work, a designer will give these to you based on the corporate brand, but while you are learning
 You can design it yourself if you like
 Inspect the starter design with Devtools
 Click on the colour swatches to see what is happening
 I've put some useful CSS you won't have learned yet
 For you to explore and play with if you are interested
 https://web.dev/articles/min-max-clamp
 https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
:root {
  --paper: oklch(7 0 0);
  --ink: color-mix(in oklab, var(--color) 5%, black);
  --font: 100%/1.5 system-ui;
  --space: clamp(6px, 6px + 2vw, 15px);
  --line: 1px solid;
  --container: 1280px;
}
/* ====== Base Elements ======
 General rules for basic HTML elements in any context */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  padding-bottom: 4rem; 
}

header {
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin-bottom: 0.5rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.featured {
  grid-column: span 2;
}

article {
  border: 1px solid #000;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #000;
}

a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #000;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #000;
  background: #fff;
  text-align: center;
  padding: 0.75rem;
}

