@font-face {
  font-family: "Open Sans Local";
  src: url("./fonts/open-sans-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans Local";
  src: url("./fonts/open-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans Local";
  src: url("./fonts/open-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111;
  --panel: rgba(10, 10, 10, 0.74);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: #c8c8c8;
  --accent: #a7d43b;
  --logo-width: 210px;
  --content-width: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  font-family: "Open Sans Local", Arial, sans-serif;
  font-weight: 300;
  background: var(--bg) url("./images/bg_bolts.jpg") center center / cover fixed no-repeat;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

.language-switch {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 5;
  color: #428BCA;
  font-family: "Open Sans Local", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.language-switch a {
  color: #428BCA;
  transition: color 160ms ease;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: orange;
  outline: 0;
}

.page {
  display: flex;
  min-height: 100vh;
  padding: 48px 24px 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand {
  width: min(100%, var(--content-width));
  margin-bottom: clamp(28px, 5vh, 64px);
}

.brand img {
  display: block;
  width: min(var(--logo-width), 72vw);
  height: auto;
}

.intro {
  width: min(100%, var(--content-width));
  margin: 0;
  padding: clamp(30px, 5vw, 48px) clamp(22px, 6vw, 68px);
  text-align: center;
  background: var(--panel);
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
}

.quote {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.34;
  font-weight: 300;
}

.quote-source {
  position: relative;
  display: inline-grid;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.2em;
  color: var(--accent);
  place-items: center;
  font-size: 0.42em;
  cursor: help;
  vertical-align: super;
}

.quote-source::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: 170px;
  padding: 7px 10px;
  color: #161616;
  font-size: 0.75rem;
  line-height: 1.2;
  pointer-events: none;
  content: attr(aria-label);
  background: #f4f4f4;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.quote-source:hover::after,
.quote-source:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rule {
  width: min(75%, 800px);
  height: 1px;
  margin: 28px auto;
  background: rgba(255, 255, 255, 0.74);
}

.summary {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  margin-top: 34px;
  gap: clamp(26px, 7vw, 62px);
  align-items: center;
  justify-content: center;
}

.icon-link,
.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #f7f7f7;
  background: transparent;
  border: 0;
  place-items: center;
  cursor: pointer;
  transition: color 160ms ease;
}

.material-icon {
  width: 2em;
  height: 2em;
  filter: invert(49%) sepia(45%) saturate(794%) hue-rotate(165deg) brightness(86%) contrast(89%);
  transition: filter 160ms ease;
}

.material-icon-white {
  filter: none;
}

.network-intel-icon {
  width: 3em;
  height: 3em;
}

.icon-link:hover,
.icon-link:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  color: var(--accent);
  outline: 0;
}

.intro .quote-source,
.intro .icon-link,
.intro .icon-button,
.contact-row .fa-solid,
.contact-row .fa-regular,
.contact-row .fa-brands {
  color: #428bca;
}

.intro .quote-source:hover,
.intro .quote-source:focus-visible,
.intro .icon-link:hover,
.intro .icon-link:focus-visible,
.intro .icon-button:hover,
.intro .icon-button:focus-visible,
.contact-row a:hover .fa-solid,
.contact-row a:focus-visible .fa-solid,
.contact-row a:hover .fa-regular,
.contact-row a:focus-visible .fa-regular,
.contact-row a:hover .fa-brands,
.contact-row a:focus-visible .fa-brands {
  color: orange;
}

.intro .icon-link:hover .material-icon,
.intro .icon-link:focus-visible .material-icon {
  filter: invert(55%) sepia(98%) saturate(1830%) hue-rotate(360deg) brightness(103%) contrast(106%);
}

.icon-link:hover .material-icon-white,
.icon-link:focus-visible .material-icon-white {
  filter: invert(55%) sepia(98%) saturate(1830%) hue-rotate(360deg) brightness(103%) contrast(106%);
}

.tax-link {
  position: fixed;
  left: 50%;
  top: var(--tax-link-top, 78vh);
  margin-top: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.site-footer {
  position: fixed;
  left: 50%;
  top: var(--footer-top, auto);
  bottom: var(--footer-bottom, 18px);
  color: #fff;
  font-size: 1.13rem;
  font-weight: 600;
  z-index: 2;
  transform: translateX(-50%);
}

.site-footer a {
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: orange;
  outline: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  padding: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.66);
}

.modal:target {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(100%, 360px);
  padding: 26px 24px 22px;
  color: #f1f1f1;
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.54);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: #bbb;
  font-size: 1.6rem;
  line-height: 28px;
  text-align: center;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff;
  outline: 0;
}

.modal-logo {
  display: block;
  width: 180px;
  max-width: 72%;
  height: auto;
  margin: 0 0 18px;
}

.modal hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.contact-list {
  display: grid;
  margin: 0;
  gap: 13px;
}

.contact-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-row strong {
  color: #fff;
  font-weight: 600;
}

.vcard-title {
  margin: 18px 0 9px;
  color: #888;
  font-size: 0.92rem;
  text-align: center;
}

.vcard-image {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .page {
    padding: 30px 16px 96px;
  }

  .actions {
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .quote {
    font-size: clamp(1.8rem, 2.35vw, 1.95rem);
  }

  .quote-line {
    white-space: nowrap;
  }
}
