/* ROOT */
@charset "utf-8";
:root {
  --bg: #f2f2f2;
  --mg: #bfbfbf;
  --fg: #0d0d0d;
}
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

/* LAYOUT */
html {
  background: var(--bg);
  color: var(--fg);
  cursor: default;
  font: 16pt/1.5 system-ui, sans-serif;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  & > body {
    height: 100%;
    position: relative;
    padding: 2rem 1rem 0;
  }
}
header, footer, details, blockquote, ul, ol, fieldset, pre, table, nav {
  display: block;
  margin: 0.5rem 0 1rem;
  width: 100%;
  overflow: auto hidden;
  text-align: left;
}

/* IMAGES */
img, svg {
  max-width: 100%;
  vertical-align: text-top;
}
svg {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: currentColor;
  fill: none;
}

/* INPUT */
button, input, ::file-selector-button, select, summary, textarea {
  color: inherit;
  font: inherit;
  line-height: inherit;
  touch-action: manipulation;
  padding: 0.25em 0.375em;
  max-width: 100%;
}
textarea, select[multiple] {
  vertical-align: top;
  overflow: auto;
}
label {
  display: inline-flex;
  gap: 0.5em;
}
hr {
  margin: 2em 0;
  border: 1.5px solid var(--fg);
}
details {
  border: 2px solid;
  > * {
    padding: 0.375rem;
  }
}
a, button, input[type="submit"], ::file-selector-button, select, summary {
  cursor: pointer;
  text-transform: none;
}
button, input[type="submit"], ::file-selector-button, summary {
  background: var(--fg);
  color: var(--bg);
  border: 0;
}
input:not([type="submit"], [type="file"]), textarea, select {
  border: 1px solid;
}
a {
  touch-action: manipulation;
  background-color: transparent;
  text-decoration: none;
}

/* TYPOGRPAHY */
h1, h2, h3, h4 {
  line-height: 1.2em;
  text-wrap: balance;
}
h1 {
  font-size: 2.75em;
  margin: 0 0 1em;
}
h2 {
  font-size: 2em;
  margin: 2em 0 1em;
}
h3 {
  font-size: 1.5em;
  margin: 1.625em 0 0.75em;
}
h4 {
  font-size: 1.25em;
  margin: 1.5em 0 0.5em;
}
code, kbd {
  background: var(--mg);
  padding: 0.125em;
  font-family: monospace, monospace;
}
blockquote {
  border-left: 0.5rem solid var(--mg);
  padding: 1rem 1.5rem;
}
ol, ul {
  padding: 0.5em 0 0.5em 2em;
  list-style-position: outside;
  & > li {
    margin: 1em 0;
  }
}
table {
  table-layout: fixed;
  border-collapse: collapse;
}
b, strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
