/* Ylide Labs — compact poster-style landing page */

:root {
  --ink: #0b0b0b;
  --paper: #f4f1e9;
  --paper-soft: #fbfaf6;
  --line: rgba(11, 11, 11, 0.22);
  --line-heavy: rgba(11, 11, 11, 0.86);
  --muted: rgba(11, 11, 11, 0.64);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "OCR A Std", "OCR-A", "OCR A Extended", "Courier New", monospace;
  letter-spacing: -0.02em;
}

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

.page-shell {
  width: min(var(--max), calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  border: 1px solid var(--line-heavy);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(rgba(244, 241, 233, 0.90), rgba(244, 241, 233, 0.90)),
    url("assets/ylide-background.png") center top / cover no-repeat;
}

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line-heavy);
  background: rgba(244, 241, 233, 0.72);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  filter: contrast(1.25);
}

.brand-name {
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  font-size: clamp(14px, 1.5vw, 18px);
}

.nav a {
  opacity: 0.78;
}

.nav a:hover {
  opacity: 1;
}

.orb {
  width: 42px;
  height: 42px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  transform: rotate(-10deg);
}

.orb::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid var(--ink);
  border-radius: 44% 56% 58% 42% / 46% 41% 59% 54%;
}

.orb::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 86px - 132px - 24px);
  display: grid;
  align-items: center;
  position: relative;
  padding: clamp(48px, 7vw, 82px) clamp(22px, 8vw, 124px) clamp(42px, 7vw, 76px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.display-wordmark {
  width: min(720px, 100%);
  display: block;
  margin: 0 0 clamp(28px, 4vw, 42px);
  filter: contrast(1.22);
}

.fallback-title {
  display: none;
  margin: 0 0 clamp(28px, 4vw, 42px);
  font-size: clamp(72px, 13vw, 156px);
  line-height: 0.82;
  letter-spacing: -0.1em;
}

.kicker {
  margin: 0 0 24px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.copy {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 28px;
  border: 1px solid var(--line-heavy);
  background: rgba(251, 250, 246, 0.48);
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: 0.02em;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.footer-band {
  height: 132px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(24px, 6vw, 82px);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-heavy);
  position: relative;
  overflow: hidden;
}

.footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(circle at 20% 40%, transparent 0 28px, rgba(244,241,233,0.45) 29px 30px, transparent 31px 54px, rgba(244,241,233,0.3) 55px 56px, transparent 57px),
    radial-gradient(circle at 70% 60%, transparent 0 32px, rgba(244,241,233,0.35) 33px 34px, transparent 35px 62px, rgba(244,241,233,0.22) 63px 64px, transparent 65px),
    radial-gradient(rgba(244,241,233,0.7) 0.5px, transparent 0.7px);
  background-size: auto, auto, 19px 19px;
}

.footer-copy {
  position: relative;
  z-index: 1;
}

.footer-words {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.35;
}

.footer-copy a {
  color: var(--paper);
  font-size: clamp(15px, 1.5vw, 20px);
}

.footer-logo {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: invert(1) contrast(1.25);
  opacity: 0.94;
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 16px);
    min-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 10px;
  }

  .site-header {
    height: 72px;
    padding-inline: 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 17px;
  }

  .nav {
    gap: 16px;
  }

  .orb {
    width: 32px;
    height: 32px;
  }

  .orb::after {
    width: 10px;
    height: 10px;
  }

  .hero {
    min-height: auto;
    padding: 48px 22px 56px;
  }

  .footer-band {
    height: 112px;
    min-height: 0;
    grid-template-columns: 1fr auto;
    padding: 16px 22px;
    gap: 16px;
  }

  .footer-words {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.25;
  }

  .footer-copy a {
    font-size: 14px;
  }

  .footer-logo {
    width: 58px;
    height: 58px;
    justify-self: end;
    align-self: center;
  }
}
