/* Typography */
@font-face {
    font-family: "allo";
    src: url("../fonts/AlloVariableFriendly.woff2");
    font-weight: 100 900;
    font-display: swap; 
}

/* Font and Variables */
body {
  font-family: "allo", sans-serif;
  background-color: var(--bg-color);
  color: var(--fg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* -------- Margins -------- */
body {
  margin-inline-start: 5rem;
  margin-inline-end: 5rem;
  text-align: justify;
}

/* -------- Themes and Theme Toggle -------- */

:root {
  --bg-color: #121212;
  --fg-color: #e5e7eb;
}

html.light {
  --bg-color: #ffffff;
  --fg-color: #0f0f1a;
}

.theme-toggle {
  display: inline-block;
  padding: 0.50rem 1rem;
  background-color: #ff3131;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s, transform 0.1s;
}

.theme-toggle:hover {
  background-color: #d92626;
  transform: translateY(-2px);
}

.theme-toggle:active {
  transform: translateY(0);
}


/* ------------------ header ------------------ */
header {
  font-weight: 900;
  font-size: clamp(2rem, 1vw, 4rem);
}

/* ---- sections in header ---- */
.column {
  display: flex;
  width: 100%;
}

.right-header-column {
  flex: 1;
  text-align: right;
}



/* ------------------ text per section ------------------ */

/* for section headers */
.section-header {
  display: inline-block;
  padding: 0.05rem 1rem;
  background-color: #ff3131;
  color: white;
  text-decoration: none;
  border-radius: 20px;
}

.hello h1 {
  font-weight: 900;
  font-size: clamp(20rem, 4vw + 8rem, 48rem);
  line-height: 0.82; /* to close the line gap between hello and there */ 
  
  margin-block-start: 0.5rem;
  margin-block-end: 2rem;
}

.intro h2 {
  font-weight: 700;
  font-size: clamp(2.25rem, 3vw + 1.5rem, 6rem);
  line-height: 0.99;
  
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

.intro h3,
.stack h3 {
  font-weight: 600;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 5rem);
  line-height: 0.99;
  
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

footer p {
  font-weight: 600;
  font-size: clamp(1.25rem, 1vw + 0.8rem, 2rem);
  
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

footer small {
  font-weight: 400;
  font-size: clamp(1.25rem, 1vw + 0.8rem, 2rem);
  
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}