@layer foundation {
  html { font-size: 100%; }
  html, body { padding: 0; margin: 0; height: 100%; }
  *, *::before, *::after { box-sizing: border-box; }

  /* Typography baseline (previously from Metro) */
  body {
    font-family: var(--font-family-sans-serif);
    font-weight: normal;
    font-size: var(--font-size-base);
    line-height: 1.5;
    letter-spacing: .02em;
    color: #000;
  }

  /* Links */
  a { text-decoration: none; color: var(--primary-500); }
  a:hover { color: var(--primary-600); }

  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 10px 0;
  }

  h1 {
    font-weight: 500;
    font-size: 3em;
    line-height: 1.1;
  }

  h2 {
    font-weight: 500;
    font-size: 1.5625em;
    line-height: 1.2;
    letter-spacing: .01em;
  }

  h3 {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.375em;
    line-height: 1.2;
    font-weight: bold;
  }

  h4 {
    font-weight: bold;
    font-size: 1em;
    line-height: 1.3;
    letter-spacing: .02em;
  }

  h5 {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875em;
    line-height: 1.3;
  }

  h6 {
    font-weight: bold;
    font-size: var(--font-size-sm);
  }

  /* Lists */
  ul, ol {
    margin-left: 5px;
    padding-left: 15px;
  }

  ul li, ol li {
    line-height: 20px;
  }

  /* Tables */
  table {
    max-width: 100%;
    background-color: #fff;
    border-collapse: collapse;
    border-spacing: 0;
  }

  .table {
    width: 100%;
    margin-bottom: 14pt;
  }

  .table th,
  .table td {
    padding: 8px;
    font-size: 14px;
    line-height: 14pt;
    vertical-align: top;
    border-bottom: 1px #eaeaea solid;
  }

  .table thead th {
    vertical-align: bottom;
  }

  .table tbody tr:last-child td {
    border-bottom: 0;
  }

  .table.striped tbody tr:nth-child(odd) {
    background: #eee;
  }

  .table.bordered {
    border: 1px #eaeaea solid;
    border-left: 0;
  }

  .table.bordered td,
  .table.bordered th {
    border-left: 1px #eaeaea solid;
    border-bottom: 1px #eaeaea solid;
  }

  .table.hovered tbody tr:hover {
    background-color: rgba(28, 183, 236, 0.1);
  }

  .table.condensed th,
  .table.condensed td {
    padding: 4px 5px;
  }

  .table tr.info td { background-color: var(--primary-50); }
  .table tr.success td { background-color: var(--success-color); }
  .table tr.warning td { background-color: var(--warning); }
  .table tr.error td { background-color: var(--error-50); }

  /* Code */
  code, pre {
    font-family: Consolas, 'Courier New', Courier, monospace;
    font-size: 90%;
  }

  code {
    padding: 2px 4px;
    background-color: #f5f5f5;
    border: 1px solid #e1e1e8;
    border-radius: 3px;
    color: #d14;
  }

  pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
  }

  pre code {
    padding: 0;
    background-color: transparent;
    border: 0;
    color: inherit;
  }

  /* Form element resets */
  button, input, select, textarea {
    margin: 0;
    font-size: 100%;
    vertical-align: middle;
  }

  button, input {
    line-height: normal;
  }

  label {
    display: block;
    margin-bottom: 5px;
  }
}
