:root {
  color-scheme: dark;
  --charcoal: #1e2023;
  --ivory: #e7e5e0;
  --rule: #45464b;
  --header-height: 74px;
  --bottom-height: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-width: 280px; }
body {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: var(--ivory);
}
.masthead {
  flex: 0 0 var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px 0 36px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
}
.wordmark { display: block; width: 276px; height: auto; }
.brand:focus-visible { outline: 1px solid var(--ivory); outline-offset: 6px; }
.navigation ul {
  display: flex;
  align-items: center;
  gap: 50px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.landscape { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.scene { display: block; width: 100%; height: 100%; overflow: hidden; }
.scene-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) and (max-width: 1000px) and (min-height: 501px) {
  .masthead { padding-inline: 28px; }
  .wordmark { width: 240px; }
  .navigation ul { gap: 28px; }
  .navigation li { font-size: 10px; letter-spacing: 1.5px; }
}

@media (max-width: 767px), (max-height: 500px) {
  .scene-image { object-position: 50% 25%; }
  body { padding-bottom: calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px)); }
  .masthead {
    flex-basis: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    justify-content: center;
    padding: env(safe-area-inset-top, 0px) 24px 0;
  }
  .wordmark { width: 236px; max-width: 75vw; }
  .navigation {
    position: fixed;
    z-index: 1;
    inset: auto 0 0;
    height: calc(var(--bottom-height) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(12px, env(safe-area-inset-left, 0px));
    background: var(--charcoal);
    border-top: 1px solid var(--rule);
  }
  .navigation ul { height: var(--bottom-height); justify-content: space-around; gap: 8px; }
  .navigation li { font-size: clamp(9px, 2.5vw, 11px); letter-spacing: clamp(1px, .3vw, 1.6px); }
}

@media (max-height: 500px) {
  :root { --header-height: 58px; --bottom-height: 48px; }
  .wordmark { width: 210px; }
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.navigation a:hover { color: #fff; }
.navigation a:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

.login-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px;
}
.login-panel {
  width: min(100%, 360px);
  max-height: 100%;
  overflow: auto;
  padding: 32px;
  border: 1px solid rgb(154 170 188 / 45%);
  border-radius: 18px;
  background: rgb(37 46 57 / 94%);
  -webkit-backdrop-filter: blur(14px) saturate(0);
  backdrop-filter: blur(14px) saturate(0);
  box-shadow: 0 16px 48px rgb(0 0 0 / 22%);
  color: #edf0f3;
  font-family: Georgia, 'Times New Roman', serif;
}
.login-eyebrow {
  margin: 0 0 8px;
  color: #b5c0cc;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.login-panel h1 { margin: 0 0 20px; font-size: 28px; line-height: 1.2; font-weight: 400; }
.login-fields { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.login-fields label { display: grid; gap: 6px; font-size: 11px; line-height: 1.1; letter-spacing: 1px; }
.login-fields input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid #647283;
  border-radius: 5px;
  padding: 8px 12px;
  background: rgb(17 24 32 / 40%);
  color: inherit;
  font: inherit;
  font-size: 16px;
  opacity: 1;
}
.login-fields button {
  height: 42px;
  border: 1px solid #8c9aaa;
  border-radius: 5px;
  background: #69798a;
  color: #f0f2f5;
  font: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 1;
  cursor: not-allowed;
}

@media (max-height: 500px) {
  .login-layer { padding: 16px; }
  .login-panel { padding: 24px; }
}
