@font-face {
  font-family: "Source Code Pro";
  src: url("assets/source-code-pro-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

:root {
  --gutter: 2vw;
  --header-height: calc(43px + 2vw);
  --grid-width: min(1500px, calc(100% - 2 * var(--gutter)));
  color-scheme: dark;
  font-family: "Source Code Pro", monospace;
  font-weight: 300;
  background: #000;
  color: #fafafa;
}

body { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.header {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1vw var(--gutter);
  color: #fff;
}

.skip-link { position: absolute; left: var(--gutter); top: 0; transform: translateY(-150%); }
.skip-link:focus { z-index: 3; transform: none; background: #000; padding: .75rem; }
.logo img { display: block; height: 20px; width: auto; }

.social-links {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
}
.social-links a {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  box-shadow: inset 0 0 0 1px currentColor;
}
.social-links svg { width: 23px; height: 23px; fill: currentColor; }

.hero {
  box-sizing: border-box;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: var(--header-height) 0 0;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  box-sizing: content-box;
  width: var(--grid-width);
  min-height: max(360.2px, calc(min(1500px, 100vw - 2 * var(--gutter)) * .215 + 99px));
  padding: 10svh 0;
  margin-inline: auto;
}

.player {
  display: block;
  width: calc((100% * 11 - 143px) / 24);
  height: 352px;
  border: 0;
  border-radius: 12px;
  color-scheme: normal;
}

.footer {
  display: grid;
  align-items: center;
  min-height: 26.4px;
  font-size: max(14.4px, calc(.9rem + (1vw - 12.8px) * .1042));
  line-height: 1.7;
}
.footer p { width: var(--grid-width); margin: 0 auto; }

button { font: inherit; cursor: pointer; }

.contact-link {
  justify-self: start;
  margin: 0 0 .35rem max(var(--gutter), calc((100% - 1500px) / 2));
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.contact-dialog {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid #888;
  background: #0b0b0b;
  color: #fafafa;
}

.contact-dialog::backdrop { background: rgb(0 0 0 / .75); }
.contact-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.contact-heading h1 { margin: 0; font-size: 1.5rem; font-weight: 300; }
.close-contact { border: 0; padding: .15rem .4rem; background: transparent; color: inherit; font-size: 1.5rem; }
.contact-form, .contact-form label { display: grid; gap: .5rem; }
.contact-form { gap: 1rem; }
.contact-form input:not([hidden]), .contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: .65rem;
  background: #151515;
  color: inherit;
  border: 1px solid #888;
  border-radius: 0;
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.send-contact { justify-self: start; padding: .6rem .85rem; border: 1px solid #fff; background: #fafafa; color: #000; }
body:has(.contact-dialog[open]) { overflow: hidden; }

@media (max-width: 767px) {
  :root { --gutter: 6vw; --header-height: calc(37px + 12vw); }
  .header { min-height: 37px; gap: .5rem; padding-block: var(--gutter); }
  .social-links { gap: clamp(3px, 1.1vw, 6px); }
  .social-links a { width: clamp(26px, 8.4vw, 43px); height: clamp(26px, 8.4vw, 43px); }
  .social-links svg { width: clamp(16px, 4.8vw, 23px); height: clamp(16px, 4.8vw, 23px); }
  .hero-content { min-height: 360.2px; }
  .player { width: 100%; }
  .footer { min-height: 94px; padding-block: .75rem; box-sizing: border-box; font-size: 15px; }
}
