/* Antipatron Clean CSS - Optimized version */

/* CSS Variables */
:root {
  --black: black;
  --text-primary: #333;
  --text-gray: gray;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-primary);
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 20px;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2 {
  font-weight: normal;
}

h2 {
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 44px;
  font-weight: 900;
  line-height: 52px;
}

p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 300;
  line-height: 32px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navigation */
.navbar {
  background-color: transparent;
  width: 100%;
  padding: 5vh 5vw 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-nav {
  color: var(--text-gray);
  padding: 0 0 5px;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 2px solid transparent;
}

.link-nav:hover,
.link-nav.current {
  color: var(--black);
  border-bottom-color: rgba(0, 0, 0, 0.5);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--black);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 140px 5vw 10vh;
}

.wrapper-title {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

.heading-wrapper {
  overflow: hidden;
  margin-bottom: 20px;
}

.main-h1 {
  color: var(--black);
  font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
  font-size: clamp(60px, 14vh, 180px);
  font-weight: 400;
  line-height: 1.1;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.main-h1.bold {
  font-weight: 900;
  margin-top: -10px;
}

.main-h1.animate-in {
  animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.text-span {
  font-size: 0.6em;
}

.home-subhead {
  margin-top: 30px;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

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

.paragraph-3 {
  margin: 0;
  font-size: 20px;
}

/* Utility Pages (404, 401) */
.utility-page-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  padding: 20px;
}

.utility-page-content {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.utility-page-content h2 {
  margin-bottom: 20px;
  font-size: 32px;
  line-height: 1.2;
}

.utility-page-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.utility-page-form input[type="password"] {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.utility-page-form input[type="submit"] {
  padding: 12px 24px;
  font-size: 16px;
  background-color: var(--black);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.utility-page-form input[type="submit"]:hover {
  background-color: var(--text-primary);
}

.form-fail {
  color: #e74c3c;
  margin-top: 10px;
  display: none;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .hero {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .main-h1 {
    font-size: clamp(50px, 12vh, 120px);
  }

  .home-subhead {
    width: 60%;
  }
}

@media screen and (max-width: 767px) {
  .navbar {
    padding: 20px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .main-h1 {
    font-size: clamp(40px, 10vh, 80px);
  }
}

@media screen and (max-width: 479px) {
  h2 {
    font-size: 30px;
    line-height: 40px;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .main-h1 {
    font-size: clamp(35px, 8vh, 60px);
  }

  .text-span {
    font-size: 0.5em;
  }

  .home-subhead {
    width: 100%;
  }

  .paragraph-3 {
    margin-top: 40px;
    font-size: 18px;
  }

  .brand img {
    width: 140px;
  }
}