@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #111213;
  --paper: #e1dcd9;
  --cyan: #10ace1;
  --focus: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.landing {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.landing__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
}

.landing__art--base {
  z-index: -3;
}

.landing__art--overlay {
  z-index: -2;
}

.site-header,
.hero,
.energybank,
.site-footer {
  position: absolute;
  z-index: 1;
}

.oceanbrain-mark {
  display: flex;
  align-items: center;
  min-height: 1.58em;
  padding: 0 0.18em 0.03em;
  color: var(--paper);
  background: #000000;
  font-size: clamp(2.9rem, 3.75vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.hero h1,
.hero p {
  margin: 0;
}

.hero h1 {
  max-width: 15em;
  font-size: clamp(1.5rem, 1.875vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 22em;
  margin-top: 0.16em;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.026em;
}

.hero__links {
  display: flex;
  align-items: center;
  gap: 0.9rem 1rem;
  margin-top: clamp(0.7rem, 1.2vh, 0.95rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 2.75rem;
  padding: 0.65rem 0.95rem;
  border: 2px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(0.78rem, 0.85vw, 0.98rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
}

.email-link {
  font-size: clamp(0.78rem, 0.82vw, 0.95rem);
  line-height: 1.3;
  text-underline-offset: 0.2em;
}

.energybank a,
.energybank img {
  display: block;
  width: 100%;
}

.site-footer {
  font-size: clamp(0.66rem, 0.66vw, 0.78rem);
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (min-width: 900px) {
  .landing {
    height: 100svh;
  }

  .site-header {
    top: 7.05vh;
    left: 2.4vw;
  }

  .oceanbrain-mark {
    justify-content: center;
    width: 24.65vw;
  }

  .hero {
    left: 3.125vw;
    bottom: clamp(1.6rem, 3.1vh, 2.1rem);
    width: min(31vw, 37.5rem);
  }

  .energybank {
    right: 2.4vw;
    bottom: 3.25vh;
    width: min(16vw, 19.25rem);
  }

  .site-footer {
    right: 2.4vw;
    bottom: 1.1vh;
  }
}

@media (min-width: 700px) and (max-width: 899px) {
  .landing {
    height: 100svh;
  }

  .landing__art {
    object-position: 51% 50%;
  }

  .site-header {
    top: 3.5rem;
    left: 2.5rem;
  }

  .oceanbrain-mark {
    font-size: 3.05rem;
  }

  .hero {
    left: 2.5rem;
    bottom: 4.2rem;
    width: min(54vw, 28rem);
    padding: 1.35rem 1.45rem 1.4rem;
    border: 2px solid var(--ink);
    background: rgb(225 220 217 / 94%);
    box-shadow: 0.9rem 0.9rem 0 var(--ink);
  }

  .hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.25rem);
  }

  .hero p {
    font-size: clamp(0.98rem, 2.1vw, 1.15rem);
    line-height: 1.2;
  }

  .hero__links {
    align-items: flex-start;
    flex-direction: column;
  }

  .energybank {
    right: 2.5rem;
    bottom: 5.2rem;
    width: 11.5rem;
  }

  .site-footer {
    right: 2.5rem;
    bottom: 1.35rem;
  }
}

@media (max-width: 699px) {
  .landing {
    height: 100svh;
    min-height: 41.5rem;
  }

  .landing::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgb(225 220 217 / 0%) 0 34%,
        rgb(16 172 225 / 8%) 48%,
        rgb(16 172 225 / 28%) 100%
      );
    content: "";
    pointer-events: none;
  }

  .landing__art {
    object-position: 50% 50%;
  }

  .site-header {
    top: 1.25rem;
    left: 1.25rem;
  }

  .oceanbrain-mark {
    min-height: 1.5em;
    font-size: clamp(2.15rem, 10.8vw, 2.8rem);
  }

  .energybank {
    display: none;
  }

  .hero {
    right: 1.25rem;
    bottom: 3.35rem;
    left: 1.25rem;
    padding: clamp(1rem, 4.8vw, 1.35rem);
    border: 2px solid var(--ink);
    background: rgb(225 220 217 / 95%);
    box-shadow: 0.55rem 0.55rem 0 var(--ink);
  }

  .hero h1 {
    max-width: 10.5em;
    font-size: clamp(1.75rem, 8vw, 2.1rem);
    line-height: 1.02;
  }

  .hero p {
    max-width: 31em;
    margin-top: 0.65rem;
    font-size: clamp(0.9rem, 3.9vw, 1rem);
    line-height: 1.24;
    letter-spacing: -0.018em;
  }

  .hero__links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.9rem;
  }

  .button {
    width: 100%;
    min-height: 2.9rem;
    font-size: 0.88rem;
  }

  .email-link {
    font-size: 0.78rem;
  }

  .site-footer {
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
    color: var(--ink);
    font-size: 0.68rem;
    text-align: center;
  }
}

@media (max-width: 699px) and (max-height: 46rem) {
  .landing {
    min-height: 100svh;
  }

  .hero {
    bottom: 2.6rem;
    padding: 0.85rem 1rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    margin-top: 0.4rem;
    font-size: 0.84rem;
  }

  .hero__links {
    flex-direction: row;
    align-items: center;
    margin-top: 0.55rem;
  }

  .button {
    width: auto;
    min-height: 2.45rem;
    padding: 0.5rem 0.75rem;
  }

  .email-link {
    font-size: 0.7rem;
  }

  .site-footer {
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
