/* Low Pressure Studio landing page, built from Figma file 2627_LPS_Style (frame "Desktop - 1") */

:root {
  --white: #fff;
  --black: #000;
  --gutter: 42px;
  --font: "DM Serif Text", Georgia, serif;
}

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

html,
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Page */

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.page__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Header */

.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 28px var(--gutter) 0;
}

.header__logo {
  justify-self: start;
  display: block;
}

.header__logo img {
  display: block;
}

.header__tagline,
.header__contact {
  margin: 9px 0 0;
}

.header__contact {
  justify-self: end;
}

.header__contact:hover,
.header__contact:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Brand cards */

.brands {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 248px;
  padding: 104px var(--gutter) 48px;
}

.brand {
  display: flex;
  flex-direction: column;
  width: 334px;
  height: 530px;
  padding: 0 38.5px 31px;
  border: 2px solid var(--white);
  border-radius: 12px;
}

.brand__logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
}

.brand__logo > img {
  display: block;
}

.brand__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 37px;
  border-radius: 18.5px;
  background: var(--white);
  color: var(--black);
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

/* Rome logo is three separate vector groups in Figma, positioned inside a 225x110 box */

.rome-logo {
  position: relative;
  width: 225px;
  height: 110px;
}

.rome-logo img {
  position: absolute;
  display: block;
}

.rome-logo__wordmark {
  top: 0;
  left: 0;
}

.rome-logo__snowboards {
  top: 72.41%;
  left: 0.05%;
}

.rome-logo__est {
  top: 91.35%;
  left: 7.55%;
}

/* Contact pop-up */

.contact {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-family: var(--font);
}

.contact::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 38.5px 31px;
}

.contact__title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 400;
}

.contact__close {
  position: absolute;
  top: 14px;
  right: 18px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--white);
  font: 28px/1 var(--font);
  cursor: pointer;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 9px 18px;
  border: 0;
  border-radius: 18.5px;
  background: var(--white);
  color: var(--black);
  font: 16px var(--font);
}

.contact__field textarea {
  border-radius: 12px;
  resize: vertical;
}

.contact__field input:focus-visible,
.contact__field textarea:focus-visible,
.contact__close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.contact__trap {
  position: absolute;
  left: -9999px;
}

.contact__status {
  min-height: 1.2em;
  margin: 0;
}

.contact__status--error {
  color: #ffb4a8;
}

.contact__submit {
  border: 0;
  font: 16px var(--font);
  cursor: pointer;
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 0 var(--gutter) 30px;
}

.footer__office {
  font-style: normal;
}

.footer__office--right {
  text-align: right;
}

.footer__region {
  display: block;
}

/* Smaller screens */

@media (max-width: 1100px) {
  .brands {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .header {
    grid-template-columns: 1fr auto;
    row-gap: 16px;
    padding-top: 20px;
  }

  .header__tagline {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    text-align: center;
  }

  .header__contact {
    margin-top: 14px;
  }

  .brands {
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .brand {
    width: 100%;
    max-width: 334px;
    height: 420px;
  }

  .footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 24px;
  }

  .footer__office--right {
    text-align: left;
  }
}
