@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --glasshaven-black: #050606;
  --glasshaven-white: #f4f3ee;
  --glasshaven-muted: rgba(244, 243, 238, 0.72);
  --glasshaven-secondary: rgba(244, 243, 238, 0.8);
  --glasshaven-content-width: 70rem;
}

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

html {
  min-height: 100%;
  background: var(--glasshaven-black);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--glasshaven-white);
  background: var(--glasshaven-black);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--glasshaven-white);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--glasshaven-black);
  background: var(--glasshaven-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

/* Full-screen front page. */

html.glasshaven-front-page-root {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html.glasshaven-front-page-root::-webkit-scrollbar,
html.glasshaven-front-page-root body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.glasshaven-front-page,
body.glasshaven-elementor-canvas {
  overflow-x: clip;
}

.elementor-glasshaven-page,
.elementor-widget-glasshaven_header,
.elementor-widget-glasshaven_hero,
.elementor-widget-glasshaven_hero > .elementor-widget-container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.elementor-widget-glasshaven_header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 0;
  overflow: visible;
}

.elementor-widget-glasshaven_header > .elementor-widget-container {
  width: 100%;
  height: 0;
  overflow: visible;
}

.typographic-experience {
  min-height: 100%;
  background: var(--glasshaven-black);
}

.scroll-track {
  position: relative;
  height: 300svh;
  background: var(--glasshaven-black);
}

.sticky-stage {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: var(--glasshaven-black);
}

.stage-frame {
  isolation: isolate;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--glasshaven-black);
}

.background-video {
  position: absolute;
  inset: -2px;
  z-index: 0;
  display: block;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.56) saturate(0.78) contrast(1.04);
  pointer-events: none;
}

.top-menu {
  position: absolute;
  top: 6.5%;
  right: 5.1%;
  z-index: 2;
  color: var(--glasshaven-muted);
  font-size: clamp(0.34rem, 0.51vw, 0.66rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
  will-change: transform, opacity;
}

.glasshaven-elementor-header {
  position: fixed;
}

body.elementor-editor-active .glasshaven-elementor-header {
  position: absolute;
}

.top-menu__list {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.65vw, 2rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.top-menu a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.top-menu a:hover,
.top-menu a:focus-visible {
  color: var(--glasshaven-white);
}

.main-title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 91%;
  margin: 0;
  color: var(--glasshaven-white);
  font-family: "Arial Black", "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3rem, 10.45vw, 12.8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.078em;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: transform, opacity;
}

.lower-statement,
.lower-location {
  position: absolute;
  bottom: 7.5%;
  z-index: 1;
  margin: 0;
  text-transform: uppercase;
  will-change: transform, opacity;
}

.lower-statement {
  left: 5.1%;
  font-size: clamp(0.44rem, 0.78vw, 1rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.lower-location {
  right: 5.1%;
  color: var(--glasshaven-secondary);
  font-size: clamp(0.34rem, 0.49vw, 0.63rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: 0.07em;
}

html.js body.glasshaven-front-page .top-menu,
html.js body.glasshaven-front-page .lower-statement,
html.js body.glasshaven-front-page .lower-location,
html.js body.glasshaven-elementor-canvas .top-menu,
html.js body.glasshaven-elementor-canvas .lower-statement,
html.js body.glasshaven-elementor-canvas .lower-location {
  visibility: hidden;
  opacity: 0;
}

html.glasshaven-animation-disabled body.glasshaven-front-page .top-menu,
html.glasshaven-animation-disabled body.glasshaven-front-page .lower-statement,
html.glasshaven-animation-disabled body.glasshaven-front-page .lower-location,
html.glasshaven-animation-disabled body.glasshaven-elementor-canvas .top-menu,
html.glasshaven-animation-disabled body.glasshaven-elementor-canvas .lower-statement,
html.glasshaven-animation-disabled body.glasshaven-elementor-canvas .lower-location,
body.elementor-editor-active .top-menu,
body.elementor-editor-active .lower-statement,
body.elementor-editor-active .lower-location {
  visibility: visible;
  opacity: 1;
  transform: none;
}

body.elementor-editor-active .scroll-track {
  height: 100svh;
}

body.admin-bar.glasshaven-front-page .sticky-stage,
body.admin-bar.glasshaven-elementor-canvas .sticky-stage {
  top: 32px;
  height: calc(100svh - 32px);
}

/* Standard WordPress content templates. */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(244, 243, 238, 0.16);
}

.site-header__inner,
.site-footer__inner,
.content-shell {
  width: min(calc(100% - 3rem), var(--glasshaven-content-width));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.5rem;
}

.site-title {
  font-family: "Arial Black", "Geist", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 3rem;
}

.site-navigation__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation a {
  color: var(--glasshaven-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation .current-menu-item > a {
  color: var(--glasshaven-white);
}

.content-shell {
  min-height: 70vh;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.page-header,
.entry-header,
.entry-content,
.entry-thumbnail,
.comments-area,
.post-navigation {
  width: min(100%, 50rem);
  margin-inline: auto;
}

.page-title,
.entry-title {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.entry-title a {
  text-decoration: none;
}

.entry-meta,
.eyebrow {
  margin-top: 1.25rem;
  color: var(--glasshaven-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entry-thumbnail {
  margin-top: 3rem;
  margin-bottom: 0;
}

.entry-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-content,
.archive-description {
  margin-top: 2.5rem;
  color: rgba(244, 243, 238, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.entry-content blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--glasshaven-white);
  font-size: 1.25em;
}

.alignwide {
  width: min(80vw, 75rem);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.post-list {
  display: grid;
  gap: 4rem;
  margin-top: 4rem;
}

.post-list .entry {
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(244, 243, 238, 0.16);
}

.post-list .entry-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.nav-links,
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
}

.nav-links a {
  color: var(--glasshaven-white);
  text-decoration: none;
}

.post-navigation__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--glasshaven-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comments-area {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(244, 243, 238, 0.16);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  list-style: none;
}

input:not([type="submit"]),
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  color: var(--glasshaven-white);
  background: rgba(244, 243, 238, 0.06);
  border: 1px solid rgba(244, 243, 238, 0.3);
  border-radius: 0;
}

button,
input[type="submit"],
.wp-element-button {
  padding: 0.85rem 1.25rem;
  color: var(--glasshaven-black);
  background: var(--glasshaven-white);
  border: 1px solid var(--glasshaven-white);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(244, 243, 238, 0.16);
}

.site-footer__inner {
  padding-block: 2rem;
  color: var(--glasshaven-muted);
  font-size: 0.75rem;
}

@media (max-aspect-ratio: 1/1) {
  .top-menu {
    font-size: clamp(0.25rem, 1.15vw, 0.42rem);
  }

  .top-menu__list {
    gap: clamp(0.3rem, 1.2vw, 0.75rem);
  }

  .main-title {
    font-size: 10.2vw;
  }

  .lower-statement {
    font-size: clamp(0.3rem, 1.4vw, 0.5rem);
  }

  .lower-location {
    font-size: clamp(0.24rem, 1.05vw, 0.38rem);
  }
}

@media (max-width: 782px) {
  body.admin-bar.glasshaven-front-page .sticky-stage,
  body.admin-bar.glasshaven-elementor-canvas .sticky-stage {
    top: 46px;
    height: calc(100svh - 46px);
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.25rem;
  }

  .site-navigation__list {
    gap: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-track {
    height: 100svh;
  }

  .background-video {
    animation-play-state: paused;
  }

  html.js body.glasshaven-front-page .top-menu,
  html.js body.glasshaven-front-page .lower-statement,
  html.js body.glasshaven-front-page .lower-location,
  html.js body.glasshaven-elementor-canvas .top-menu,
  html.js body.glasshaven-elementor-canvas .lower-statement,
  html.js body.glasshaven-elementor-canvas .lower-location {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
}
