:root {
  --bg: #f7f8fb;           /* background */
  --surface: #ffffff;      /* cards/sections */
  --ink: #0f172a;          /* Primary text (h1) */
  --muted: #475569;        /* secondary text (h2) */
  --accent: #334155;       /* headings / accents (h3)*/
  --ring: #3b82f6;         /* focus state */

  /* This is for Effects & layout */
  --radius: 14px;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.1);
  --maxw: 820px;
  /* This is a Typography scale */
  --fs-1: clamp(2rem, 4vw, 3rem);   /* h1 */
  --fs-2: clamp(1.1rem, 2.5vw, 1.35rem); /* h2 */
  --fs-3: 1.125rem;                 /* h3 */
  --fs-base: 1rem;
  --lh: 1.65;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/var(--lh) ui-sans-serif, system-ui, -apple-system,
        Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

header,main,footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.25rem;
}

header {
  padding-top: 2rem;
  text-align: right; /* This will make the name/date aligned right */
}

/* Pading to make it look like a card*/
main {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
}

h1 {
  font-size: var(--fs-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  text-align: center;
  color: var(--ink);
}

h2 {
  font-size: var(--fs-2);
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.25rem;
  text-align: center;
}

h3 {
  font-size: var(--fs-3);
  font-weight: 600;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem 1.25rem 2rem;
}
/*  Dark mode This is best for the night time */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #0f172a;
    --ink: #e5e7eb;
    --muted: #94a3b8;
    --accent: #cbd5e1;
    --ring: #60a5fa;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}