:root {
  /* --- Base Colors --- */
  --color-red: #FE3939;
  --color-black: #0E0E0E;
  --color-cream: #F4F0E8;
  --color-blue: #0C1B33;

  /* --- Current Theme --- */
  --theme-bg: var(--color-cream);
  --theme-text: var(--color-red);
  --theme-accent: var(--color-red);
  --theme-surface: var(--color-black);

  /* --- font family --- */
  --ff-header: 'Manrope', sans-serif;
  --ff-body: 'Geist', sans-serif;

  /* --- Spacing (8px System) --- */

  --space-8:   clamp(6px, 0.5vw + 4px, 8px);
  --space-16:  clamp(12px, 1vw + 8px, 16px);
  --space-24:  clamp(18px, 1.5vw + 12px, 24px);
  --space-32:  clamp(24px, 2vw + 16px, 32px);
  --space-40:  clamp(30px, 2.5vw + 20px, 40px);
  --space-48:  clamp(36px, 3vw + 24px, 48px);
  --space-64:  clamp(48px, 4vw + 32px, 64px);
  --space-80:  clamp(60px, 5vw + 40px, 80px);
  --space-96:  clamp(72px, 6vw + 48px, 96px);

  /* --- Section Spacing --- */

  --section-space-sm: clamp(80px, 10vw + 40px, 160px);  /* Scales to 160px */
  --section-space-md: clamp(120px, 15vw + 60px, 200px); /* Scales to 200px */
  --section-space-lg: clamp(160px, 20vw + 80px, 256px); /* Scales to 256px (32*8) */

  /* --- Typography --- */

  --fs-xs: clamp(0.8rem, 0.78rem + 0.1vw, 0.95rem);

  --fs-16: 1rem;

  --fs-20: clamp(1rem, 0.98rem + 0.2vw, 1.25rem);

  --fs-25: clamp(1.1rem, 1.05rem + 0.3vw, 1.56rem);

  --fs-31: clamp(1.25rem, 1.15rem + 0.5vw, 1.94rem);

  --fs-39: clamp(1.4rem, 1.25rem + 0.8vw, 2.44rem);

  --fs-49: clamp(1.6rem, 1.4rem + 1.2vw, 3.06rem);

  --fs-61: clamp(1.9rem, 1.6rem + 1.6vw, 3.81rem);

  --fs-76: clamp(2.2rem, 1.8rem + 2.2vw, 4.75rem);

  --fs-91: clamp(2.6rem, 2rem + 3vw, 5.69rem);

  /* --- Border Radius --- */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* --- Shadows --- */
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-big: 0 12px 24px rgba(0, 0, 0, 0.12);

  /* --- Layout Widths --- */
  
  /* 1. Full Screen */
  --width-full: 100%;

  /* 2. Contained */
  --width-contained: calc(100% - 128px);
  
  /* 3. Standard Max-Width */ 
  --max-site-width: 1440px; 

  /* Responsive Margin (Mobile safety) */
  --inline-margin: calc(100% - 64px);
}

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

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
}

text {
  word-break: normal;
  overflow-wrap: break-word;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-16);
  line-height: 1.5;
  margin: 0;
  position: relative;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

ul {
  list-style: none;
}

a, button {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.cell-wide {
  grid-column: 1 / -1;
  cursor: none;
}

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.theme-white {
  --theme-bg: var(--color-cream);
  --theme-text: var(--color-red);
  --theme-accent: var(--color-red);
  --theme-surface: var(--color-black);
}

.theme-white-alt {
  --theme-bg: var(--color-cream);
  --theme-text: var(--color-black);
  --theme-accent: var(--color-red);
  --theme-surface: var(--color-black);
}

.theme-blue {
  --theme-bg: var(--color-blue);
  --theme-text: var(--color-cream);
  --theme-accent: var(--color-cream);
  --theme-surface: var(--color-blue);
}

.theme-black {
  --theme-bg: var(--color-black);
  --theme-text: var(--color-cream);
  --theme-accent: var(--color-red);
  --theme-surface: var(--color-black);
}

.svg-wrapper {
  background-color: var(--theme-accent);
  color: var(--theme-bg);
}

/* --- header --- */

.hamburger {
  display: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 10dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav {
    width: 100%;
    max-width: var(--width-contained);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: var(--fs-31);
}

nav ul {
    display: flex;
    gap: var(--space-32);
}

nav li, nav a:hover {
    transition: all 0.3s ease-in-out;
}

nav li:hover, nav a:hover {
    transform: translateY(-5px) scale(1.02);
}

.nav-menu li:last-child {
    border-bottom: 2px solid;
}

.mobile-menu-only {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 21;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    width: 3rem;
  }

  .hamburger span {
    border-bottom: 2px solid;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--theme-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    font-size: var(--fs-49);
    padding: var(--space-80) 0;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
  }

  .nav-menu ul {
    width: 100%;
    max-width: var(--inline-margin);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
  }
  
  nav {
    max-width: var(--inline-margin);
  }

  .mobile-menu-only {
    display: flex;
    align-items:end;
    margin-top: auto;
    gap: var(--space-64);
  }

  .svg-email {
    width: 2rem;
    height: 2rem;
  }

  .email-card div {
    width: 3rem;
    height: 3rem;
    padding: var(--space-8);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .email-card p {
    font-family: var(--ff-body);
    font-size: var(--fs-20);
    font-weight: 200;
    border-bottom: 2px solid var(--theme-text);
  }

  .email-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-16);
  }

  .mobile-menu-only .img-wrapper {
    width: 120px;
    height: 170px;
  }

  .mobile-menu-only .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: var(--section-space-sm);
  overflow: hidden;
}

.footer-container {
  width: 100%;
  max-width: var(--width-contained);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
  padding-bottom: var(--space-16);
}

footer .svg-email {
  width: 1rem;
  height: auto;
  color: var(--theme-text);
}

footer .instagram-icon {
  width: 1rem;
  height: auto;
  color: var(--theme-text);
}

footer .svg-wrapper {
  background-color: var(--theme-bg);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: var(--space-24);
  width: 100%;
}

.contact-text {
  font-size: var(--fs-20);
  font-family: var(--ff-body);
  font-weight: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.contact-text p {
  width: 50%
}

.contact-text h3 {
  opacity: .75;
  font-size: var(--fs-16)
}

.contact-link {
  display: flex;
  gap: var(--space-24);
  width: 35%;
}

.email {
  display: flex;
  gap: var(--space-8);
  border-bottom: 2px solid var(--theme-text);
}

.insta-dm {
  display: flex;
  gap: var(--space-8);
  border-bottom: 2px solid var(--theme-text);
}

footer h2 {
  font-size: clamp( .5rem, 13vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  font-family: var(--ff-header);
  -webkit-text-stroke: 2px;
  padding-bottom: var(--space-40);
  padding-top: var(--space-80);
}

.copyright-links {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--theme-text);
  border-radius: 8px;
  padding-bottom: var(--space-16);
}

.footer-links {
  display: flex;
  gap: var(--space-24)
}

@media (max-width: 768px) {
  .footer-container {
    max-width: var(--inline-margin);
  }

  .contact-text p {
    width: 80%
  }

  .footer-contact{
    gap: var(--space-40)
  }

  .contact-link {
    display: flex;
    gap: var(--space-24);
    width: fit-content;
  }

  .copyright-links {
    flex-direction: column-reverse;
    gap: var(--space-16);
  }
}
