:root {
    --bg_color: #07080c;
    --text_color: #A6BED1;
}

* {
  box-sizing: border-box; /* Ensures padding doesn't break layout widths */
  color: #333c50;
}

html {
  font-size: 15px;
  font-family: "Inter";
  background-color: var(--bg_color);
}

body {
  margin: 0; 
  padding: 0; 
  background-image: url("images/bg.jpg");
}

/* --- HEADER & NAVIGATION --- */
header {
  min-height: 60px;
  margin: 0;
  padding: 10px 0;
  background-color: #cad9f5;
  border-bottom: 5px solid #546282;
  position: sticky;
  top: 0;
}

.abtmecard {
  font-family: "Instrument Serif";
  font-size: clamp(1.5rem, 2vw, 4.5rem);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Wraps links neatly on tiny screens */
  gap: 15px;
}
.abtme {
  font-weight:lighter;
  font-size: clamp(1.5rem, 2vw, 4.5rem);
  font-style:italic;
  margin-left: 30px;
  margin-top: 0;
  color: #07080c;
}
.logo {
  font-family: "Inter";
  padding: 5px 10px;
  color: #333c50;
  text-shadow: 2px 2px 1px #07080c;
  text-decoration: none;
  font-size: 20px; /* Sized down slightly for universal fit */
  font-weight: bold;
}

/* --- RESPONSIVE CONTAINER (ARTICLE) --- */
article {
  width: 90%;
  max-width: 1350px; /* Prevents it from getting too wide on huge monitors */
  margin: 30px auto;
  background-color: #0C121D;
  padding: 20px;
  border: 5px solid black;
  border-radius: 10px;
}

/* --- TYPOGRAPHY & LAYOUT CONSTRAINTS --- */
.headliner {
  color: #07080c;
  font-size: clamp(2.5rem, 6vw, 5.5rem); /* Dynamically scales between mobile and desktop sizes */
  margin: 40px 0 0 30px;
  text-shadow: 4px 4px 2px black;
  text-align: left; /* Centers the massive title for better balance */
}

h2 {
  color: #07080c; 
  margin-top: 30px;
  padding-left: 0; /* Handled by container margins now */
}

.ref {
  color: #4b6387;
}

p, .ref {
  color: #546282;
  font-size: 1.15rem;
  line-height: 1.6; /* Improves readability */
  margin: 10px 0;
}

/* Catch-all adjustments for other classes used on your site */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
}

.me {
  max-width: 250px;
}

button {
  margin-left:30px;
  padding: 20px 20px 20px 20px;
}

/* --- MEDIA QUERIES (For Specific Devices) --- */

/* Desktop and Tablets (Screens broader than 768px) */
@define-mixin desktop { }
@media (min-width: 768px) {
  article {
    padding: 40px; /* Extra breathing room inside the container on big screens */
  }
  
  h2, p, .ref {
    padding-left: 40px; /* Elegant indents on desktop */
    padding-right: 40px;
  }
  
  .logo {
    font-size: 25px;
  }
}

/* Smartphones (Screens smaller than 480px) */
@media (max-width: 600px) {
  html {
    font-size: 14px; /* Slightly shrinks text baseline */
  }
  
  article {
    width: 95%; /* Maximizes available reading screen space */
    border-width: 3px; 
  }
}