/*---- Tokens ----*/

:root {
    /* Colors */
    --neutral-100: hsl(0, 0%, 98%);
    --neutral-200: hsl(0, 0%, 96%);
    --neutral-300: hsl(0, 0%, 94%);
    --neutral-400: hsl(0, 0%, 88%);
    --neutral-500: hsl(0, 0%, 80%);
    --neutral-600: hsl(0, 0%, 60%);
    --neutral-700: hsl(0, 0%, 40%);
    --neutral-800: hsl(0, 0%, 20%);
    --neutral-900: hsl(0, 0%, 10%);

    /* Color Palette */
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --background-color: var(--neutral-100);
    --text-color: var(--neutral-800);

    /* Typography */
    --font-family-sans: 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Georgia', serif;
    --line-height-base: 1.6;
    --font-size-base: 16px;
    --font-size-large: 24px;
    --font-size-small: 12px;

    /* Spacing */
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;

    /* Border Radius */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;

    /* Shadows */
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.16);
    --shadow-large: 0 10px 20px rgba(0, 0, 0, 0.19);
}

/*---- normalize.css v8.0.1 ----*/

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}


h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}
/*---- Reset some default browser styles ----*/

* {
    box-sizing: border-box;
}

/*---- Basic typography ----*/

body {
    font-family: var(--font-family-serif);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-sans);
    font-weight: bold;
}

h2 + p, h3 + h4, h3 + ul, h4 + ul {
    margin-top: 0rem;
}

h2:has(+ p), h3:has(+ h4), h3:has(+ ul), h4:has(+ ul) {
    margin-bottom: 0rem;
}

pre {
    white-space: pre-wrap;
}

header,
footer {
    text-align: center;
}

aside, main {
    margin: .5rem;
}

/*---- Grid layout ----*/

body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

body>*>* {
  max-width: 100ch;
  margin: 0 auto;
}

@media screen and (min-width: 600px) {
  #main-content>div {
    display: flex;
    gap: 2rem;
  }
  
  aside {
    flex-grow: 1
  }

  main {
    flex-grow: 3;
  }

}

/*---- Navigation ----*/

nav a {
    color: var(--gray-600);
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

[aria-label=Primary] ul,
[aria-label=Footer] ul {
    flex-direction: row;
    justify-content: space-evenly;
}

nav ul {
    display: flex;
    flex-direction: column;
    padding: 0;
}

nav li {
    list-style-type: none;
}

nav a[aria-current] {
    font-weight: bold;
}

/*---- Wireframe ----*/

header, footer {
    background-color: var(--neutral-300);
}

#main-content {
    background-color: var(--neutral-100);
}

header>div, #main-content>div, footer>div {
    border: 1px dotted var(--neutral-600);
}

nav {
    border: 1px solid var(--neutral-600);
}