/* prifly-home public pages: "Laminar". Dark only, on purpose. Served as /assets/site.css, with blocks.css and home.css.
   Geologica and Martian Mono are SIL OFL fonts, kept beside the files in /assets/fonts/. */
@font-face {
  font-family: "Geologica";
  src: url(/assets/fonts/geologica.woff2) format("woff2");
  font-weight: 100 600;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url(/assets/fonts/martian-mono.woff2) format("woff2");
  font-weight: 300 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #06070c;
  --ink: #eceef4;
  --soft: #cdd1de;
  --mute: #a9aebf;
  --hair: rgba(226, 230, 245, 0.17);
  --hot: #ffc36b;
  --a: #a6b0ff;
  --err: #ff9b86;
  --m: clamp(16px, 4.4vw, 88px);
  --gap: clamp(16px, 1.6vw, 28px);
  --body: clamp(16px, 1.06vw, 19px);
  --sans: "Geologica", system-ui, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font: 350 var(--body) / 1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
p,
h1,
h2,
h3,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
}

/* the flow field (laminar.js draws into it) and the depth marker on the right edge */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#live {
  display: block;
}
.bar,
main,
footer {
  position: relative;
  z-index: 1;
}
#depth {
  position: fixed;
  top: 0;
  right: 0;
  width: 22px;
  height: 2px;
  background: var(--hot);
  z-index: 6;
  pointer-events: none;
}

/* type */
h1 {
  font-weight: 200;
  font-size: clamp(45px, 6.75vw, 132px);
  line-height: 1;
  letter-spacing: -0.035em;
}
h2 {
  font-weight: 200;
  font-size: clamp(38px, 4.9vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 {
  font-weight: 300;
  font-size: clamp(23px, 1.95vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.eye,
.cap,
.nav a,
.mark,
.tag,
.ix,
.src,
.small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(11.5px, 0.72vw, 13px);
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.eye {
  color: var(--a);
}
.eye .no {
  color: var(--hot);
  margin-right: 0.8em;
}
.cap {
  color: var(--mute);
  margin-top: 14px;
}
.lede {
  color: var(--mute);
}
.small {
  color: var(--mute);
  margin-top: 14px;
}

/* square buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font: 400 var(--body) / 1.1 var(--sans);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn:hover {
  border-color: var(--ink);
}
.btn.go {
  background: var(--hot);
  border-color: var(--hot);
  color: #0a0a10;
  font-weight: 500;
}
.btn.go:hover {
  background: #ffe0ad;
  border-color: #ffe0ad;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* footer */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  padding: 24px var(--m);
  border-top: 1px solid var(--hair);
  background: var(--ground);
  color: var(--mute);
}
footer p {
  margin-right: auto;
  font-size: 0.92em;
}
footer a.fl {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92em;
}
footer a.fl:hover {
  color: var(--hot);
}

/* header */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 var(--m);
  background: var(--ground);
  border-bottom: 1px solid var(--hair);
}
.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo .tag {
  padding: 2px 7px;
  border: 1px solid var(--hot);
  color: var(--hot);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: clamp(16px, 2vw, 36px);
  margin-left: auto;
  align-items: center;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover {
  color: var(--hot);
}
.bar .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  flex: none;
}

/* crop marks instead of cards */
.plate {
  position: relative;
  display: block;
}
.plate::after {
  content: "";
  position: absolute;
  inset: -9px;
  pointer-events: none;
  --c: rgba(236, 238, 244, 0.75);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 15px 1px,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px 15px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 15px 1px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px 15px,
    linear-gradient(var(--c), var(--c)) 0 100% / 15px 1px,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px 15px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 15px 1px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px 15px;
  background-repeat: no-repeat;
}
.plate img {
  width: 100%;
}
/* the slot of a screenshot that has not been taken yet: a quiet frame, nothing drawn in it */
.blank {
  display: block;
  width: 100%;
  border: 1px solid var(--hair);
  background: rgba(236, 238, 244, 0.02);
}
.r16-10 {
  aspect-ratio: 16 / 10;
}
.r16-11 {
  aspect-ratio: 16 / 11;
}
.r16-7 {
  aspect-ratio: 16 / 7;
}

/* layout */
.g {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--m);
}
.sec {
  padding-top: clamp(120px, 18vw, 340px);
}
.head {
  grid-column: 1 / 9;
}
.head h2 {
  margin-top: 14px;
}
.head .lede {
  margin-top: 26px;
  max-width: 34em;
}

/* narrow desktop: the nav takes its own row */
@media (max-width: 1099px) {
  .bar {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 4px;
    justify-content: space-between;
    gap: 0 12px;
  }
  .nav {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
    justify-content: space-between;
  }
}

/* under 900: one column, and the stream becomes a rail on the left edge */
@media (max-width: 899px) {
  :root {
    --rail: 30px;
  }
  html {
    scroll-padding-top: 16px;
  }
  #depth {
    width: 14px;
  }
  .bar {
    position: relative;
    padding: 12px 16px 4px;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 0 10px;
  }
  .g {
    display: block;
    padding: 0 16px 0 calc(var(--rail) + 8px);
  }
  .sec {
    padding-top: 130px;
  }
  footer {
    padding: 20px 16px 20px calc(var(--rail) + 8px);
  }
  footer p {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
