/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
*{
	box-sizing: border-box;
}

/*====== MY STYLES BELOW ======*/


/* 1) Universal box sizing so padding/borders don’t break widths */
* { box-sizing: border-box; }

/* 2) Base text setup for the whole page */
body {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif; /* readable body font */
  line-height: 1.7;                     /* relaxed line-height = easier long-form reading */
  color: #2a2a2a;                        /* softer than pure black to reduce glare - found in best practices */
  background: #fdfdfd;                   /* very light off-white (the screenshot isn’t pure white) */
}

/* =========================
   HEADER (red banner)
   ========================= */

/* Big red band with centered text, like the screenshot */
header {
  background: #c74444;                   /* the main red tone */
  color: #fff;                            /* white text on red for strong contrast */
  text-align: center;                     /* title sits in the middle */
  padding: 48px 16px 28px;                * tall top padding = impact */
  border-bottom: 4px solid #8e2e2e;       /* darker red strip under the banner */
}

/* First line in the header = BIG uppercase title */
header p:first-of-type {
  font-family: "Roboto Condensed", sans-serif;  /* condensed = tall, bookish headline look */
  font-weight: 700;                              /* bold like the screenshot */
  text-transform: uppercase;                     /* all caps */
  letter-spacing: 0.06em;                        /* extra tracking for that poster feel */
  font-size: clamp(2.2rem, 6vw, 3.2rem);         /* scales a bit on small screens */
  line-height: 1.1;                               /* tight, but not touching */
  margin: 0;                                      /* no default gaps */
}

/* Second line in the header = byline */
header p + p {
  margin-top: 8px;                         /* small gap under the title */
  font-weight: 400;                        /* lighter weight than the title */
  opacity: 0.95;                           /* tiny fade to soften it */
}

/* The author’s name is slightly brighter, like the screenshot */
header p { color: #ffffff; }

/* =========================
   MAIN CONTENT (article)
   ========================= */

/* Constrain line length and center the column */
main {
  max-width: 860px;                        /* ~70–80 characters per line */
  margin: 0 auto;                  /* center the block with top/bottom space */
  padding: 0 1em;                         /* side padding so text doesn’t touch edges */
}

h1,h2,h3,h4,h5,h6, header p: first-of-type{

  font-family: "Robotoo Condensed", Arial, Helvetca, sans-serif;
  font-weight: 400;
  text-wrap: balance;
}

h1,h2,h3,h4,h5,h6{
  color: 222;
  margin-top: 1.5em;
}

h1{
  font-size: 3.0em;
}

h2{
  font-size: 2.4em;
}

 h3{
  font-size: 1.8em;
 }

 p{
  font-size: 1.1em;
  line-height: 1.45;
  margin-top: 0.5em;
 }

 p+p{
  margin-top: 1.25em;
 }

 main p: last-of-type{ 
  font-style: italic;
  }

header{
  text-align: center;
  color: #fff;
  background-color: #cd3c3c;
  padding: 3em 2.5em 3em;
  border-bottom: 3px solid #8e2a2a;
  }
header p:first-of-type {
  font-size: 4.5em;
  line-height: 1.1
  text-transform: uppercase; 
}

header p:nth-of-type(2) { 
  font-size: 1.8em;
  margin-top: 0.3em;
 }


footer{
  text-align: center;
  padding: 0.8em;
}
/* H1: chapter title (“How type works”) */
h1 {
  font-family: "Roboto Condensed", sans-serif;   /* contrast vs body text */
  font-weight: 300;
  font-size: 2rem;                               /* slightly smaller than the banner */
  line-height: 1.2;
  color: #222;
  margin: 16px 0 6px;                            /* small gap below, like the screenshot */
}

/* H2: section titles */
h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  margin: 34px 0 10px;                           /* bigger gap before each section */
  color: #222;
}

/* H3: sub-section titles */
h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  margin: 28px 0 8px;
  color: #2a2a2a;
}

/* Paragraphs: calm grey and consistent spacing */
p {
  font-size: 1rem;
  font-weight: 200;
  color: #444;                                   /* slightly lighter body colour like screenshot */
  margin: 0 0 1rem;                              /* even rhythm between paragraphs */
}

/* Links: accessible blue, underlined on hover */
a {
  color: #0a63c9;                                /* readable blue on light background */
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* =========================
   FOOTER (thin bar + small text)
   ========================= */

footer {
  max-width: 720px;                              /* align with the main column */
  margin: 40px auto 16px;
  padding: 14px 16px 18px;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  border-top: 1px solid #d0d0d0;                 /* subtle rule like screenshot */
  border-bottom: 4px solid #c74444;              /* red line at the very bottom */
}

/* =========================
   SMALL SCREEN TWEAKS
   ========================= */

@media (max-width: 520px) {
  /* Slightly smaller headings for narrow screens */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  header { padding: 40px 14px 24px; }
}
