:root {
  --font-color-text-headers: #461f28;
  --surface-color-primary: #fffdf6;
  --surface-color-secondary: #f0ebdf;
  --border-color-brand: #d0c9c2;
  --cta-color: rgba(17, 68, 65, 0.8);
  --controller-btn: #f3eeee;
  --footer-background-color: #461f28;
  --footer-link-color: #ffffff;
  --font-size-base: 16px;
  --font-size-h1-large: 58px;
  --font-size-h1-medium: 34px;
  --font-size-footer-link: 14px;
  --font-size-main-logo: 18px;
  --spacing-base: 32px;
  --spacing-small: 24px;
  --spacing-large: 40px;
  --radius-sm: 4px;
  --line-height-h1-large: 69.6px;
  --line-height-h1-medium: 44.2px;
  --line-height-button-mobile: 16.8px;
  --line-height-button-desktop: 18px;
}

/* FONTS */
/* Romie */
@font-face {
  font-family: "Romie";
  src: url("/the-maybourne-society/assets/fonts/romie/romie.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Commuters Sans */
@font-face {
  font-family: "Commuters Sans";
  src: url("/the-maybourne-society/assets/fonts/commuters-sans/CommutersSansRegular_normal_normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commuters Sans";
  src: url("/the-maybourne-society/assets/fonts/commuters-sans/CommutersSansSemiBold_normal_normal.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  display: flex;
  margin: 0;
  overflow-x: hidden;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  background: var(--surface-color-primary);

  /* Drop Shadow - Large Objects */
  box-shadow: 0 10px 30px 4px rgba(0, 0, 0, 0.08);
  background-color: var(--surface-color-primary);
  font-family: "Commuters Sans";
}

.topbar {
  display: flex;
  height: 70px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-bottom: 1px solid var(--border-color-brand);
}

.hero {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: stretch;
  position: relative;
}

img,
video {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

main .content {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--spacing-base);
  align-self: stretch;
}

h1 {
  font-family: "Romie";
  color: var(--font-color-text-headers);
  text-align: center;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 0;
  margin-bottom: 0;
}

main button {
  display: flex;
  padding: calc(var(--spacing-small) / 2) var(--spacing-base);
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  background: var(--cta-color);
  border: none;
  cursor: pointer;
  color: var(--footer-link-color);
  text-align: center;
  font-style: normal;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: "Commuters Sans";
  font-weight: 600;

  &:hover {
    color: rgb(0, 0, 0);
    background-color: rgb(44 213 196);
  }

  &:active {
    color: white;
    background: var(--cta-color);
  }
}

main p {
  color: var(--font-color-text-headers);
  text-align: center;
  font-size: var(--font-size-base);
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

a {
  color: var(--font-color-text-headers);
  text-decoration: none;
}

main a {
  word-break: break-all;
  text-align: center;
}

.contentLinks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

button#playPauseBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.video-controls {
  position: absolute;
  bottom: 0;
  gap: calc(var(--spacing-small) / 2);
  margin: calc(var(--spacing-small) / 2);
  display: flex;
  flex-direction: row;
  align-items: center;
}

button#muteBtn,
button#playPauseBtn {
  background-color: var(--controller-btn);
  border-radius: 50%;
  border: none;
  width: var(--spacing-base);
  height: var(--spacing-base);
}

.video-controls button svg {
  width: calc(var(--spacing-base) / 2);
  height: calc(var(--spacing-base) / 2);
  fill: currentColor;
  cursor: pointer;
}

.hidden {
  display: none;
}

.main-and-footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  height: auto;
  /* background-image: url("/the-maybourne-society/assets/texture.jpg"); */
  background-color: var(--surface-color-primary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Base Footer Layout */
.footer {
  width: 100%;
  padding: var(--spacing-base) var(--spacing-small);
  background: var(--footer-background-color);
  color: var(--footer-link-color);
  padding-top: var(--spacing-large);
}

/* Footer Links */
.footerLinks {
  width: 100%;
  margin-bottom: var(--spacing-large);
}

.footerLinks.desktop {
  height: 17px;
  display: none;
}

.footerLinks.mobile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
}

/* Footer link style */
.footerLink {
  color: var(--footer-link-color);
  text-decoration: none;
  font-size: var(--font-size-footer-link);

  &:hover {
    text-decoration: underline;
    color: var(--footer-link-color);
  }
}

/* Mobile rows */
.footerLinks.mobile .row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-small);
}

/* Logos Section */
.footerLogosContainer {
  width: 100%;
}

.footerLogosContainer.desktop {
  display: none;
}

.footerLogosContainer.desktop .mainLogo {
  justify-self: center;
}

.footerLogosContainer a {
  width: fit-content;
}

.footerLogosContainer.mobile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-large);
}

.footerLogosSecondRow {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-small);
}

.mainLogo {
  font-size: var(--font-size-main-logo);
  font-weight: bold;
}

.mainLogoMobileContainer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footerCopyright {
  font-size: var(--font-size-footer-link);
}

.mailto-link {
  text-decoration: underline;
}

.italic-romie {
  font-family: "Romie-italic";
}

@media (max-width: 420px) {
  .footerLinks.mobile .row {
    gap: var(--spacing-small);
  }
}

@media (max-width: 768px) {
  main button {
    font-size: calc(var(--font-size-base) - 2px);
    line-height: var(--line-height-button-mobile);
  }
  .hero {
    img, video {
      &.mobile {
        display: block;
      }
      &.desktop {
        display: none;
      }
    }
  }
}

@media (min-width: 768px) {
  .footerLinks.mobile .row {
    justify-content: space-between;
  }
  .hero {
    img, video {
      &.mobile {
        display: none;
      }
      & .desktop {
        display: block;
      }
    }
  }
  main button {
    font-size: calc(var(--font-size-base) - 1px);
    line-height: var(--line-height-button-desktop);
  }
}

@media (max-width: 1024px) {
  img,
  video {
    height: 692px;
  }
  h1 {
    font-size: var(--font-size-h1-medium);
    line-height: var(--line-height-h1-medium);
  }
}

@media (max-width: 768px) {
  main {
    padding: 96px var(--spacing-small);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  main {
    padding: 96px 55px;
  }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  main {
    padding-top: 168px;
    padding-bottom: 168px;
  }
  .content p {
    padding-left: 308px;
    padding-right: 308px;
  }
  h1 {
    line-height: var(--line-height-h1-large);
    font-size: var(--font-size-h1-large);
  }
  .footer {
    padding-left: 96px;
    padding-right: 96px;
  }

  .footerLinks.desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footerLinks.mobile {
    display: none;
  }

  .footerLogosContainer.desktop {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    align-items: center;
  }

  .footerLogosContainer.mobile {
    display: none;
  }

  .footerCopyright {
    display: flex;
    justify-content: flex-end;
  }
}

@media (min-width: 1199px) {
  .footerLogosContainer.desktop {
    grid-template-columns: 1fr auto 1fr;
  }
}