/* Import Google Fonts at the top of the file */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+Pro:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  min-width: 1000px;
  max-width: 1400px;
}

/* Layout */
section {
  float: left;
  width: 50%;
}

aside {
  float: left;
  width: 30%;
}

nav {
  float: left;
  width: 20%;
}

footer {
  clear: both;
}

header, section, aside, nav, footer {
  padding: 20px;
}

/* header and footer */
header, footer {
  border-top: 5px solid #a66;
  border-bottom: 5px solid #a66;
}

/* General text styling */
body {
  font-family: 'Libre Baskerville', serif;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.5px;
  word-spacing: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans Pro', sans-serif;
  letter-spacing: 1px;
}

h1 {
  font-size: 3.2rem;
  text-align: center;
}

h2 {
  font-size: 2.4rem;
}

p, li {
  font-size: 1.6rem;
}

section h2 + p {
  text-indent: 1.25rem;
}

/* Links styling */
a {
  color: #a66;
  text-decoration: underline;
}

a:visited {
  color: #833;
}

a:focus, a:hover {
  color: #a66;
  text-decoration: none;
}

a:active {
  color: #fff;
  background-color: #a66;
  padding: 2px;
}

a:focus {
  outline: none;
}

/* External links styling - square box with arrow inside exactly as shown in the reference */
a[href^="https"] {
  padding-right: 13px;
  position: relative;
}

a[href^="https"]::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0;
  width: 10px;
  height: 10px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><rect width="10" height="10" fill="black" /><path d="M2,2 L8,2 L8,8 L7,8 L7,3 L2,8 L1,7 L6,2 L2,2 Z" fill="white" /></svg>');
  background-size: cover;
}

/* Lists styling */
ul, ol {
  margin: 1.6rem 0;
}

/* Bullet styling for section and aside */
section ul, aside ul {
  list-style-type: none;
  padding-left: 1.5rem;
}

section ul li, aside ul li {
  position: relative;
  margin-bottom: 0.8rem;
}

section ul li::before, aside ul li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #a66;
  border-radius: 50%;
  position: absolute;
  left: -15px;
  top: 8px;
}

ol {
  padding-left: 2rem;
}

ol li {
  padding-left: 0.5rem;
  margin-bottom: 0.8rem;
}

/* Navigation menu styling to match example exactly */
nav {
  padding-top: 0;
  padding-bottom: 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0;
  padding: 0;
}

nav a {
  display: block;
  padding: 1.2rem;
  margin-bottom: 0.5rem;
  border: 1px solid #a66;
  color: #a66;
  text-decoration: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.6rem;
  text-align: center;
}

nav a:hover, nav a:focus {
  background-color: #f5e1e1;
  color: #a66;
}

nav a:active {
  background-color: #a66;
  color: white;
}

/* Aside styling */
aside {
  background-color: #f9f9f9;
}

aside h2 {
  color: #333;
}

aside p {
  margin-top: 2rem;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 2rem;
}

footer p {
  font-size: 1.4rem;
  color: #666;
}