@font-face {
  font-family: Michroma;
  src: url("../assets/Michroma-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../assets/Inter_18pt-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #073b77;
  --navy-deep: #06264b;
  --sky: #b9e1f5;
  --white: #fff;
  --muted: #d0e6f6;
  --rule: rgb(185 225 245 / 22%);
  --gutter: clamp(1.25rem, 6vw, 6rem);
  background: var(--navy-deep);
  color: var(--white);
  font: 300 100%/1.5 Inter, system-ui, sans-serif;
}

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

.page {
  min-block-size: 100vh;
  min-block-size: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-inline: var(--gutter);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 88% 48%, #145d99 0%, transparent 51%),
    linear-gradient(125deg, #04172e 6%, var(--navy-deep) 52%, var(--navy) 100%);
}

.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .21;
  background: url("../assets/trama-celeste.svg") no-repeat right center / auto 105%;
  mask-image: linear-gradient(to right, transparent 46%, #000);
  pointer-events: none;
}

.frame {
  inline-size: min(100%, 82rem);
  margin-inline: auto;
  min-inline-size: 0;
}

.brand {
  display: block;
  inline-size: clamp(9.25rem, 14vw, 12.25rem);
  block-size: auto;
  margin-inline-start: clamp(-.75rem, -.85vw, -.55rem);
  margin-block-end: clamp(1.25rem, 2.1vw, 2rem);
  filter: brightness(0) invert(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 5.25rem);
}

.copy { min-inline-size: 0; }

h1 {
  margin: 0;
  font: 400 clamp(2.25rem, 4.9vw, 4.75rem)/1.19 Michroma, system-ui, sans-serif;
  letter-spacing: -.062em;
  overflow-wrap: anywhere;
}

h1 span { display: block; }
h1 span + span { color: var(--sky); }

.copy p {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.schematic {
  display: block;
  inline-size: 100%;
  block-size: auto;
  max-inline-size: 38rem;
  justify-self: center;
  margin: 0;
}

.schematic img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.1rem, 2vw, 1.7rem);
  border-block-start: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}

.site-footer::after {
  content: "";
  flex: none;
  inline-size: 3.5rem;
  block-size: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #1194e8, var(--sky));
}

@media (forced-colors: active) and (prefers-color-scheme: light) {
  .brand { filter: brightness(0); }
}

@media (max-width: 50rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.8rem, 6vw, 3rem);
    align-content: center;
  }

  h1 { font-size: clamp(2rem, 7.25vw, 3.8rem); }
  .copy p { margin-block-start: 1rem; }
  .schematic { max-inline-size: 28rem; }
  .page::before {
    background-position: right bottom;
    background-size: auto 67%;
    mask-image: linear-gradient(155deg, transparent 43%, #000);
  }
}
