@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap");

:root {
  --color-bg: #fcfcfc;
  --color-grid: #f3f3f399;
  --color-text: #1d1616;
  --color-accent: #fc24bc;

  --font-main: "JetBrains Mono", monospace;

  --spacing-s: 10px;
  --spacing-m: 20px;
  --spacing-l: 42px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--font-main);
  color: var(--color-text);
  background-image:
    repeating-linear-gradient(to right, var(--color-bg), var(--color-grid) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(to bottom, var(--color-bg), var(--color-grid) 1px, transparent 1px, transparent 30px);
}

header,
footer {
  flex-shrink: 0;
  padding: var(--spacing-m);
  background: var(--color-bg);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-s);
  padding: var(--spacing-m);
}

.row {
  display: flex;
  flex-direction: row;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__inner .right {
  list-style: none;
  display: flex;
  gap: 15px;
}

footer {
  display: flex;
  justify-content: center;
}

.redish {
  color: var(--color-accent);
}

h1 {
  font-size: var(--spacing-l);
  text-align: center;
}

h2 {
  text-align: center;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
  transition: background-position 370ms ease;
}

.right li a,
.contact-table .contact-anchor {
  font-weight: bold;
  background: linear-gradient(to right,
      var(--color-accent),
      var(--color-accent) 50%,
      var(--color-text) 50%);
  background-size: 200% 100%;
  background-position: 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.right li a:hover,
.contact-table .contact-anchor:hover {
  background-position: 0 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.logo__mark {
  margin-right: 5px;
}

.logo__text {
  font-size: 1.125rem;
  white-space: nowrap;
}

.logo__cursor {
  display: inline-block;
  width: 10px;
  height: 1.125rem;
  margin-left: 5px;
  background: var(--color-accent);
  border-radius: 1px;
  animation: blink 1s linear infinite;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.contact-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
}

.contact-table td:first-child,
.contact-table th:first-child {
  white-space: nowrap;
  padding-right: var(--spacing-m);
}

.contact-table td:last-child,
.contact-table th:last-child {
  width: 100%;
}

.contact-table tr td {
  padding: var(--spacing-s) 0;
}

.contact-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 700px) {
  .header__inner {
    flex-direction: column;
    align-items: center;
  }

  .header__inner .right {
    margin-top: var(--spacing-s);
    flex-wrap: wrap;
    gap: var(--spacing-m);
  }

  footer p {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer .redish {
    display: none;
  }

  .contact-table,
  .contact-table tbody,
  .contact-table tr,
  .contact-table td,
  .contact-table th {
    display: block;
    width: 100%;
  }

  .contact-table tr {
    margin-bottom: var(--spacing-m);
  }

  .contact-table td:first-child {
    font-weight: bold;
    margin-bottom: .25rem;
  }

  .contact-table tr td {
    padding: 0;
  }
}