:root {
  /* Colors */
  --color-background: #142b49;
  --color-surface: #0d1f36;
  --color-border: #294363;

  --color-text-primary: #ffffff;
  --color-text-secondary: #c5d1e0;

  --color-accent: #ff973c;
  --color-accent-hover: #ff8419;

  /* Typography */
  --line-height-base: 1.6;

  /* Borders */
  --border-width: 1px;
  --border-radius: 8px;
}

@font-face {
  font-family: "CalSans";
  src: url("/fonts/CalSans-Regular.ttf") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "InterBold";
  src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}


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

a {
  color: #fff;
}

body {
  font-family: "Inter", sans-serif;
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

/* Header */
header {
  background-color: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;

  @media (max-width: 700px) {
    font-size: 14px;
  }
}

/* Main content */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-family: "CalSans", sans-serif;
  letter-spacing: 1.5px;
}

h1 {
  font-size: clamp(6rem, 5vw, 3.5rem);
  margin-bottom: 1rem;

  @media (max-width: 700px) {
    font-size: 44px;
  }
}

h2 {
  position: relative;
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: .5em;

  @media (max-width: 700px) {
    font-size: 22px;
  }
}

h2::after {
  content: "";
  position: absolute;
  height: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  box-shadow: inset 0 -0.08em 0.1em -0.04em rgba(255, 255, 255, .5);
  mask-image: linear-gradient(to top, white 30%, transparent 100%);
}

p, ul {
  margin: 1rem auto 2rem;
  color: var(--color-text-secondary);

  @media (max-width: 700px) {
    font-size: 14px;
  }
}

ul {
  list-style: none;

  @media (max-width: 700px) {
    list-style: initial;
  }
}

.section {
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  text-align: center;

  @media (max-width: 700px) {
    height: calc(100vh - 70px);
    text-align: left;
  }
}

/* Section Specific */
.section.about {
  flex-direction: row;
  max-width: 100%;

  .inner {
    padding: 2rem;
  }

  .building {
    max-height: 90%;
    max-width: 60%;
    transform: translateY(-20px);
  }

  @media (max-width: 700px) {
    flex-direction: column;

    .inner {
      order: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 1rem;
    }

    .button {
      margin: 0 auto;
    }
  }
}

@media (max-width: 700px) {
  .section.services p,
  .section.contact ul {
    margin: 0 auto 1rem;
  }
  .section.contact p {
    margin: 1rem auto;
  }
  .section.services h3 {
    margin-top: 1rem;
  }
}
/* End Section Specific */

/* Buttons */
.button {
  display: inline-block;
  padding: .5rem 1.5rem;
  font-family: "InterBold", sans-serif;
  font-size: 18px;
  color: var(--color-background);
  background-color: var(--color-accent);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: var(--color-accent-hover);
}

/* Footer */
footer {
  padding: var(--spacing-md);
  color: var(--color-text-secondary);
  text-align: center;
  border-top: var(--border-width) solid var(--color-border);
}

.footnote {
  font-size: 10px;
  margin: 1em;
}
