@import './components.css';
@import './utilities.css';
@import './exceptions.css';
@import './animations.css';

:root {
  --flow-space: 2rem;
  --header-height: 4rem;
}

:target {
  scroll-margin-block: 8rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15pt;
}

address {
  font-style: normal;
  & svg {
    opacity: .33;
  }
}

a, button {
  border-color: transparent;
  color: inherit;

  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-decoration-color: #0002;

  &:focus,
  &:hover {
    text-decoration-color: #0006;
  }


  &.button,
  &.btn {
    border-radius: 5rem;
    padding-inline: 1rem;
    padding-block: 1ex;
    text-decoration: none !important;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;

    min-width: 6rem;
    color: inherit;
    font-size: .9em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1ex;
    user-select: none;
  }

  &.cta {
    background-color: white;
    color: black;
    outline-color: currentColor;
    outline-offset: -2px;
    outline-width: 2px;
    outline-style: solid;
    transition-duration: .05s;

    &:hover, &:focus {
      outline-offset: 0;
    }

    &:active {
      outline-offset: 2px;
    }

  }
  &.dimmed {

    background-color: #0001;
    outline: 2px solid #0000;
    outline-offset: 0px;
    transition: all .15s;

    &:focus,
    &:hover {
      background-color: #0002;
    }

    &:active {
      outline-offset: 2px;
      outline-color: black;
      transition-duration: .05s;
    }
  }
}

h1 + * {
  font-weight: normal;
}

h2 {
  font-size: xxx-large;
  word-wrap: anywhere;
}

h4 {
  font-weight: 500;
}

hr {
  min-width: 10ch;
  max-width: 30ch;
  background: black;
  height: 5px;
  margin-block: calc(var(--flow-space)* 2);
}

li {
  color: #555;
}

p {
  color: #555;

  &:not(:first-of-type) {
    font-weight: 300;
  }
  & a {
    text-decoration: unset;
  }
}

.logo > * {
  --size: 3rem;
  width: var(--size);
  height: var(--size);
  filter: invert(1) grayscale(1);
  background-color: transparent;
}

svg {
  vertical-align: sub;

  & circle, path {
    fill: currentColor;
  }
}

table {
  width: 100%;
  overflow-y: auto;
  grid-column: breakout;

  & thead tr th {
    border-bottom: 1px solid #0002;
  }

  &:hover tbody td {
    color: #888;
  }

  & tr {
    line-height: 1.3;
    color: #555;


    & td, th {
      padding: 1rem 1ex;
      align-content: start;
    }

    & td {
      transition: all .2s;
      &:first-child {
        text-align: end;
      }
    }

    & th {
      color: #111;
      &:first-child {
        text-align: end;
      }
    }

    &:nth-child(even) {
      background-color: rgb(0 0 0 / 2%);
    }

    &:hover td {
      color: #000;
    }
  }
}

@media (orientation: portrait) {
  table {
    overflow: auto;
    display: block;
  }
}