:root {
  color-scheme: light;
  --landing-white: #ffffff;
  --landing-navy: #06283b;
  --landing-navy-hover: #0b354d;
  --landing-gold: #c9982f;
  --landing-focus: #d8a73a;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--landing-white);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  border-top: 4px solid var(--landing-gold);
  background-color: var(--landing-white);
  background-image: url("/assets/landing-construction.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--landing-navy);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.site-header {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 36px 40px;
}

.site-header::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto auto;
  width: min(360px, 50vw);
  height: 128px;
  background: linear-gradient(270deg, var(--landing-white) 0%, rgba(255, 255, 255, 0.98) 68%, rgba(255, 255, 255, 0) 100%);
  content: "";
}

.admin-link {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 198px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--landing-navy);
  border-radius: 0;
  padding: 0 22px;
  background: var(--landing-navy);
  color: var(--landing-white);
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--landing-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.admin-link:hover {
  border-color: var(--landing-navy-hover);
  background: var(--landing-navy-hover);
  transform: translateY(-1px);
}

.admin-link:focus-visible {
  outline: 3px solid var(--landing-focus);
  outline-offset: 3px;
}

.landing-main {
  min-height: calc(100vh - 4px);
  min-height: calc(100svh - 4px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  body {
    background-position: center 54%;
    background-size: auto 64svh;
  }

  body::after {
    pointer-events: none;
    position: absolute;
    z-index: 1;
    top: calc(19.44svh - 6px);
    right: 0;
    left: 0;
    height: 14px;
    background: var(--landing-white);
    content: "";
  }

  .site-header {
    padding: 20px;
  }

  .site-header::before {
    width: 250px;
    height: 104px;
  }

  .admin-link {
    min-width: 0;
    min-height: 44px;
    padding: 0 17px;
    font-size: 14px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  body {
    background-position: center;
    background-size: cover;
  }

  .site-header {
    padding: 14px 18px;
  }

  body::after {
    display: none;
  }

  .site-header::before {
    width: 260px;
    height: 84px;
  }

  .admin-link {
    min-width: 0;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-link {
    transition: none;
  }
}
