:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #243b35;
  --muted: #68736e;
  --sage: #e3e9df;
  --sage-deep: #dce5da;
  --focus: #243b35;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--paper);
  scrollbar-gutter: stable;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: "";
  pointer-events: none;
  background: url("/branding/lookven-background.png") center / contain no-repeat;
  opacity: 0.9;
}

.site-shell::before {
  top: 34%;
  left: -40vw;
  width: min(78vw, 1050px);
  aspect-ratio: 1;
}

.site-shell::after {
  top: 18%;
  right: -40vw;
  width: min(82vw, 1100px);
  aspect-ratio: 1;
}

.site-header,
.site-footer {
  width: min(100% - 3rem, 1510px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: clamp(1.5rem, 3.2vw, 3.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
}

.brand img {
  width: clamp(7rem, 10vw, 9.4rem);
  height: auto;
}

.status {
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-size: clamp(0.66rem, 0.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.hero {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 8vh, 7rem) 1.5rem 0;
  text-align: center;
  transform: translateY(-2vh);
}

.hero-icon {
  width: clamp(7rem, 13vw, 10.5rem);
  height: auto;
  margin-bottom: clamp(1.7rem, 3.5vw, 3.2rem);
  border-radius: 24%;
}

h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.5vw, 5.35rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.lede {
  max-width: 30rem;
  margin: clamp(1.8rem, 3.5vw, 3rem) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  text-wrap: balance;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  margin-top: 0.65rem;
  padding: 0.85rem 1.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.cta:active {
  transform: translateY(0);
}

.site-footer {
  position: relative;
  margin-top: clamp(1rem, 2.5vh, 2rem);
  padding-bottom: 1.55rem;
  text-align: center;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.site-footer a {
  min-height: 2.25rem;
  padding-block: 0.55rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.language-switcher {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 0.84rem;
}

.language-switcher summary {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  position: relative;
  top: -0.08rem;
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: top 180ms ease, transform 180ms ease;
}

.language-switcher[open] summary::after {
  top: 0.08rem;
  transform: rotate(225deg);
}

.language-menu {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  width: max-content;
  min-width: 12rem;
  padding: 0.4rem;
  transform: translateX(-50%);
  border: 1px solid var(--sage-deep);
  border-radius: 0.9rem;
  background: var(--paper);
}

.language-menu ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-menu a {
  display: block;
  min-height: 2.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.55rem;
  color: var(--ink);
  text-align: left;
}

.language-menu a[aria-current="page"] {
  background: var(--sage);
  font-weight: 700;
}

.language-menu a:hover {
  background: var(--sage-deep);
  color: var(--ink);
}

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

.site-footer .copyright {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.skip-link:focus-visible,
.brand:focus-visible,
.cta:focus-visible,
.back-link:focus-visible,
.site-footer a:focus-visible,
.language-switcher summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.placeholder-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.placeholder-header {
  padding-bottom: 1rem;
}

.placeholder {
  display: flex;
  width: min(100% - 3rem, 48rem);
  flex: 1;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
  text-align: left;
}

.placeholder h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.markdown-content {
  width: 100%;
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  margin: 2rem 0 0.65rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

.markdown-content h2 {
  font-size: 1.55rem;
}

.markdown-content h3 {
  font-size: 1.3rem;
}

.markdown-content h4 {
  font-size: 1.1rem;
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol {
  margin: 0.85rem 0 0;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5rem;
}

.markdown-content li + li {
  margin-top: 0.45rem;
}

.markdown-content strong {
  font-weight: 700;
}

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

.placeholder .back-link {
  align-self: flex-start;
}

.placeholder > p {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    width: min(100% - 2rem, 1510px);
  }

  .site-header {
    padding-top: 1.1rem;
  }

  .placeholder {
    width: min(100% - 2rem, 48rem);
    padding-top: 1rem;
  }

  .site-footer .copyright {
    position: static;
    margin-top: 0.5rem;
    transform: none;
  }

  .status {
    margin-top: 0.65rem;
    font-size: 0.6rem;
  }

  .hero {
    padding-top: clamp(2rem, 5vh, 3.6rem);
    padding-bottom: 0;
    transform: translateY(-1rem);
  }

  .hero-icon {
    margin-bottom: 1.7rem;
  }

  h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.65rem);
    letter-spacing: -0.07em;
    line-height: 0.92;
  }

  .lede {
    max-width: 20rem;
    font-size: 1rem;
  }

  .site-shell::before {
    top: 27%;
    left: -62vw;
    width: 140vw;
    aspect-ratio: 1;
  }

  .site-shell::after {
    top: 24%;
    right: -64vw;
    width: 145vw;
    aspect-ratio: 1;
  }
}

@media (max-height: 760px) {
  .site-header {
    padding-top: clamp(1rem, 3.2vh, 1.5rem);
  }

  .hero {
    padding-top: clamp(1.5rem, 4vh, 2.5rem);
  }

  .hero-icon {
    width: clamp(6rem, 18vw, 8rem);
    margin-bottom: 1.25rem;
  }

  .lede {
    margin-top: 1.2rem;
  }

  .site-footer {
    margin-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

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

  .language-switcher summary::after {
    transition: none;
  }

  .cta {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}
