/* Brutalist Web Design CSS - Raw content true to its construction */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: serif;
  font-size: 16px;
  line-height: 1.5;
  color: black;
  background-color: white;
  margin: 0;
  padding: 20px;
  max-width: none;
}

/* Typography - Stay true to system fonts */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: sans-serif;
  font-weight: bold;
  margin: 1em 0 0.5em 0;
  line-height: 1.2;
}

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

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.2em;
}

/* Links must be underlined - brutalist principle */
a {
  color: blue;
  text-decoration: underline;
}

a:visited {
  color: purple;
}

a:hover {
  color: red;
}

/* Lists */
ul,
ol {
  margin: 1em 0;
  padding-left: 2em;
}

li {
  margin: 0.5em 0;
}

/* Navigation */
nav {
  margin: 1em 0;
  padding: 1em 0;
  border-bottom: 1px solid black;
}

/* Forms and buttons - must look like buttons */
button,
input[type="submit"],
input[type="button"] {
  font-family: sans-serif;
  font-size: 1em;
  padding: 0.5em 1em;
  border: 2px solid black;
  background-color: white;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: black;
  color: white;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  font-family: sans-serif;
  font-size: 1em;
  padding: 0.5em;
  border: 1px solid black;
  background-color: white;
}

/* Pre-formatted text */
pre,
code {
  font-family: monospace;
  background-color: #f0f0f0;
  padding: 0.2em;
}

pre {
  padding: 1em;
  overflow-x: auto;
  border: 1px solid black;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

th,
td {
  border: 1px solid black;
  padding: 0.5em;
  text-align: left;
}

th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* Main content */
main {
  margin: 2em 0;
}

/* Responsive design - content readable on all screens */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }
}

/* No unnecessary decoration */
/* No animations */
/* No custom fonts beyond system defaults */
/* No complex layouts */
/* Raw content, true to its construction */
