/* ========================================
   CUSTOM FONTS
   ======================================== */

@font-face {
  font-family: 'ReformatBMono-Regular';
  src: url('../fonts/ReformatBMono-Regular.woff2') format('woff2'),
    url('../fonts/ReformatBMono-Regular.woff') format('woff'),
    url('../fonts/ReformatBMono-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ReformatB-Regular';
  src: url('../fonts/ReformatB-Regular.woff2') format('woff2'),
    url('../fonts/ReformatB-Regular.woff') format('woff'),
    url('../fonts/ReformatB-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'EKRoumald-Roman';
  src: url('../fonts/EKRoumald-Roman.woff2') format('woff2'),
    url('../fonts/EKRoumald-Roman.woff') format('woff'),
    url('../fonts/EKRoumald-Roman.otf') format('opentype');

  font-style: normal;
  font-weight: 100 400;
}

/* ========================================
   RESET & BASE STYLES (Mobile First)
   ======================================== */

:root {
  --body-padding: 18px;
}

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

body {
  width: 100%;
  padding: var(--body-padding);
  min-height: 100dvh;
  font-family: "ReformatBMono-Regular", sans-serif;
  background-image: url('../images/Mobile.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
  font-family: "EKRoumald-Roman", sans-serif;
  line-height: 1.25;
  font-weight: lighter;
  font-size: 24px;
  color: #EDEFE8;
  white-space: nowrap;
}


p {
  font-size: 16px;
  line-height: 20px;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav {
  padding: var(--body-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  width: 76px;
  height: 23px;
  display: block;
}

/* Main Content */
main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Hero Section */
.hero {
  text-align: center;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 2em;
}

/* Footer - Mobile First */
footer {
  position: fixed;
  bottom: var(--body-padding);
  left: var(--body-padding);
  right: var(--body-padding);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 100;
}

footer h1 {
  width: 100%;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.075em;
  font-family: "ReformatB-Regular", sans-serif;
}

.footer-links {
  display: flex;
  flex-direction: column;
  justify-items: baseline;
  align-items: flex-start;
  width: 100%;
  margin-top: 1em;
}

/* Canvas Background */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

/* ========================================
   BUTTONS & LINKS
   ======================================== */

button,
.nav-button {
  padding: 8px 12px;
  font-family: "ReformatBMono-Regular", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F7EDE8;
  background-color: rgba(247, 237, 232, 0.3);
  border: 1px solid #EDEFE8;
  border-radius: 8px;
  outline: none;
  backdrop-filter: blur(33px) brightness(0.84);
}

.mobile-br {
  margin-top: 1em;
}

/* ========================================
   EMAIL FORM (Mobile First)
   ======================================== */

.email-form {
  display: flex;
  flex-direction: row;
  
  gap: 1.5em;
  margin-top: 1em;
  width: 100%;
  min-width: 244px;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 0 0 0.25em 0;
  font-family: "ReformatBMono-Regular", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #EDEFE8;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #EDEFE8;
  outline: none;
  transition: all 0.3s ease;
  border-radius: 0px !important;
}

.email-form input[type="email"]::placeholder {
  color: rgba(237, 239, 232, 0.6);
}

.email-form button {
  max-width: 30%;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.email-form button:hover,
.nav-button:hover {
  background-color: transparent;
  color: #EDEFE8;
}

.email-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Messages */
.form-message {
  font-size: 14px;
  opacity: 0;
  text-align: left;
  transition: opacity 0.3s ease;
}

.form-message.show {
  opacity: 1;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #f87171;
}

/* ========================================
   TABLET & DESKTOP OVERRIDES
   ======================================== */

/* Tablet and up (768px+) */
@media (min-width: 768px) {
  .mobile-br {
    display: none;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0;
  }

  footer h1 {
    width: 40%;
  }

  .footer-links {
    justify-content: end;
    width: auto;

  }

  .email-form {
    flex-direction: row;
    align-items: baseline;
    width: auto;

  }

  .email-form button {
    width: auto;
  }

  .form-message {
    text-align: right;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  body {
    background-image: url('../images/Desktop.jpg');
  }

  h1 {
    font-size: 32px;
  }

  .logo-img {
    width: 95px;
    height: 29px;
    display: block;
  }


  p {
    font-size: 18px;
    line-height: 24px;
  }

  .email-form {
    min-width: 782px;
    margin-top: 0.25em;
  }

  main {
    top: 50%;
  }
}