/* === Minimal Classless Base CSS === */

/* Reset / basic box model */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base typography & body */
html {
  font-size: 100%;
  line-height: 1.5;
}
body {
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #000;
  padding: 1rem;
  /* max-width container centre */
  max-width: 60rem;
  margin: auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs, lists, blockquotes */
p, ul, ol, dl, blockquote {
  margin-top: 1em;
  margin-bottom: 1em;
}
ul, ol {
  padding-left: 1.5em;
}
blockquote {
  padding-left: 1em;
  border-left: 0.25em solid #ccc;
  color: #555;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* Images / media */
img, video, figure, pre, table {
  max-width: 100%;
}
figure {
  margin: 1em 0;
}
figcaption {
  font-size: 0.9em;
  color: #555;
  text-align: center;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5em 1em;
  text-align: left;
}
th {
  background: #f8f8f8;
  font-weight: bold;
}

/* Forms: inputs, buttons, selects, textareas */
button, input, select, textarea {
  font: inherit;
  border: 1px solid #666;
  padding: 0.4em 0.6em;
  background: #fff;
  color: inherit;
  border-radius: 0; /* hard corners */
}
button, input[type="button"], input[type="submit"] {
  cursor: pointer;
}
input:focus, select:focus, textarea:focus, button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Pre/code formatting */
pre, code {
  font-family: monospace, monospace;
  background: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 0; /* hard corners */
}
pre {
  padding: 1em;
  overflow: auto;
}

/* Utility: horizontal rule */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}
