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

@view-transition {
  navigation: auto;
}

:root {
  --flow-space: 2rem;
  --header-height: 4rem;
  --scrim-gradient: hsl(0, 0%, 0%) 0%, hsla(0, 0%, 0%, 0.738) 19%, hsla(0, 0%, 0%, 0.541) 34%, hsla(0, 0%, 0%, 0.382) 47%, hsla(0, 0%, 0%, 0.278) 56.5%, hsla(0, 0%, 0%, 0.194) 65%, hsla(0, 0%, 0%, 0.126) 73%, hsla(0, 0%, 0%, 0.075) 80.2%, hsla(0, 0%, 0%, 0.042) 86.1%, hsla(0, 0%, 0%, 0.021) 91%, hsla(0, 0%, 0%, 0.008) 95.2%, hsla(0, 0%, 0%, 0.002) 98.2%, hsla(0, 0%, 0%, 0) 100%;
  --text-color: #555;
}

:target {
 
}

*, *::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;
    outline: 2px solid rgb(from currentColor r g b / .5);
    transition: all .15s;

    &:hover {
      outline-color: rgb(from currentColor r g b / 1);
    }
  }

  &.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 #0003;
    outline-offset: 0px;
    

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

    &: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: var(--text-color, #555);
  &::marker{
    font-size: smaller;
    color: #999;
  }
}

p {
  color: var(--text-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;
}

@media (max-width: 500px) {
  .logo {display: none;}
}

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: var(--text-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, &:focus-within td {
      color: #000;
    }
  }
}

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