@font-face {
  font-family: "Real Pro Head";
  src: url("/assets/fonts/RealProHead-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Real Pro Head";
  src: url("/assets/fonts/RealProHead-Extralight.otf") format("opentype");
  font-weight: 250;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Real Pro Head";
  src: url("/assets/fonts/RealProHead-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-padding: 48px;
  --font-body: "Real Pro Head", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-menu: "Real Pro Head", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --footer-logo-left-width: 140px;
  --footer-logo-right-width: 120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 300; /* Light */
  background: #ffffff;
  color: #2d3849;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page {
  min-height: 100vh;
  padding: var(--page-padding);
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  .main-text {
    animation: none;
    opacity: 1;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.main-text {
  grid-column: 2 / span 5; /* column 2, width 5 columns */
  line-height: 1.6;
  font-size: 0.85rem;
  opacity: 0;
  animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav {
  grid-column: 8 / span 3; /* column 8, width 3 columns */
  justify-self: end;
  text-align: right;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li + li {
  margin-top: 1px;
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-menu);
  font-weight: 200; /* Ultralight */
}

.nav a[aria-current="page"] {
  font-weight: 250; /* Extralight */
  text-decoration: none;
}

.site-footer {
  margin-top: auto;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}

.footer-logo {
  grid-column: 2 / span 3; /* aligns with main text column */
  width: var(--footer-logo-left-width);
  height: auto;
  display: block;
  justify-self: start;
}

.footer-logo--right {
  grid-column: 10 / span 2; /* aligns with menu column */
  width: var(--footer-logo-right-width);
  justify-self: end;
  transform: rotate(-90deg);
  transform-origin: left;
}