/* modylight.com teaser. Brand colours: Project A D59. Dark only (D28). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #3D5A70;
  --glow: #F4B942;
  --frost: #EDE8DF;
  --obsidian: #1C1C1E;

  --bg: var(--obsidian);
  --text: var(--frost);
  --muted: #a8a49c;
  --tile: #000;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Logo: horizontal lockup, above the 120 px screen minimum. */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  padding: clamp(20px, 3vw, 36px) var(--gutter);
}

.logo { display: block; width: clamp(140px, 14vw, 180px); height: auto; }

/* First screen: the darkened Datarod as backdrop (D28). The picture is
   near-black; "lighten" lets its black melt into Obsidian, so only the glow
   shows. */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg);
}

.backdrop { margin: 0; }

.backdrop img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78svh;
  margin: 0 auto;
  mix-blend-mode: lighten;
  animation: rise 2.4s ease-out both;
}

.backdrop figcaption,
.lamps span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.backdrop figcaption {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
}

.pitch {
  position: relative;
  margin-top: -10svh;
  padding: 0 var(--gutter) 72px;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h1 span { display: inline-block; }

.lead {
  max-width: 32rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  text-wrap: pretty;
}

.domain { color: var(--text); font-weight: 600; white-space: nowrap; }

@media (min-width: 1000px) {
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
  }

  .backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--bg); /* the layer the picture lightens against */
  }

  .backdrop img {
    width: auto;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
  }

  .pitch {
    margin: 0;
    padding-bottom: clamp(56px, 10vh, 112px);
    max-width: 44rem;
  }

  h1 span { display: block; }
}

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop img { animation: none; }
}

/* The other lamps, two columns (D29). */
.lamps {
  list-style: none;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.lamps li { margin: 0; text-align: center; }

.lamps img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--tile);
}

.lamps span { display: block; margin-top: 0.75rem; }

@media (max-width: 560px) {
  .lamps { grid-template-columns: 1fr; }
}

.hint {
  margin: clamp(48px, 8vh, 80px) var(--gutter) 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.links { margin: 2.5rem var(--gutter) 0; text-align: center; }

.links p {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.links div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  font-weight: 600;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover { text-decoration-color: var(--glow); text-decoration-thickness: 2px; }

a:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

footer {
  margin-top: clamp(64px, 12vh, 120px);
  padding: 24px var(--gutter) 32px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer p { margin: 0.2rem 0; }

/* 404 */
.lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.lost p { color: var(--muted); }
