/* Omarchy Design homepage. Figma: "Omarchy Design" frame 106:5. */
@import "tokens.css";
@import "base.css";

html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  background: var(--brand-surface);
  color: #fff;
}

.home {
  position: relative;
  min-height: 100%;
  overflow: hidden; /* clips the guide lines' overhang */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero {
  width: min(885px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.logobox {
  position: relative;
}
.hero .logo {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 885/203;
}

/* guide lines from the Figma frame: 1px #2A2E30, running the full page.
   Positions are percentages of the 885×203 logo box so they follow the logo. */
.guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
} /* behind the logo and the nav */
.guides i {
  position: absolute;
  display: block;
  background: #2a2e30;
}
.guides .v {
  top: -100vh;
  bottom: -100vh;
  width: 1px;
  margin-left: -0.5px;
}
.guides .h {
  left: -100vw;
  right: -100vw;
  height: 1px;
  margin-top: -0.5px;
}
/* through the "o": columns at 573 / 583 / 594 / 605 of the 1900 frame */
.guides .v:nth-child(1) {
  left: 7.34%;
}
.guides .v:nth-child(2) {
  left: 8.47%;
}
.guides .v:nth-child(3) {
  left: 9.72%;
}
.guides .v:nth-child(4) {
  left: 10.96%;
}
/* through the "h": columns at 1151 / 1173 / 1206 / 1239 */
.guides .v:nth-child(5) {
  left: 72.66%;
}
.guides .v:nth-child(6) {
  left: 75.14%;
}
.guides .v:nth-child(7) {
  left: 78.87%;
}
.guides .v:nth-child(8) {
  left: 82.6%;
}
/* baseline rows: 508 / 518 / 529 */
.guides .h:nth-child(9) {
  top: 78.3%;
}
.guides .h:nth-child(10) {
  top: 83.3%;
}
.guides .h:nth-child(11) {
  top: 88.7%;
}
/* top line: the bottom one mirrored about the logo's centre */
.guides .h:nth-child(12) {
  top: 6%;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(56px, 15.6vw, 138px);
  padding: 0 10px;
  font-weight: 700;
  font-size: clamp(18px, 3.6vw, 32px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 6px 4px;
}
/* hover: a guide-like line grows from the link out to both page edges */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 200vw;
  height: 1px;
  background: var(--neutral-600);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: var(--grain);
}
