/* www.konexios.io - plain static site.
   Font: Lato (SIL OFL 1.1). Icons: Font Awesome Free 5.15.4 (CC BY 4.0), inlined as SVG. */

@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(/assets/fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(/assets/fonts/lato-700.woff2) format("woff2"); }

:root {
  --cyan: #00bfd1;
  --ink: #333;
  --dark: #252b2d;
  --navy: #2b2d42;
  --light: #f5f5f5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; font: 400 18px/1.65 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* header */
.site-header { background: var(--dark); }
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: transparent; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.site-header nav a { color: #fff; padding: 8px 0; }
.site-header nav a:hover { color: var(--cyan); text-decoration: none; }

/* home: hero */
.hero { position: relative; height: 440px; background: linear-gradient(rgba(3, 9, 28, .92) 0, rgba(3, 9, 28, .6) 70px, rgba(3, 9, 28, 0) 190px), #103672 url(/assets/img/hero.svg?v=2) center / cover no-repeat; color: #fff; text-align: center; border-bottom: 1px solid #fff; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px 20px 0; opacity: 0; animation: hero 18s infinite; }
.hero .slide:nth-child(2) { animation-delay: 6s; }
.hero .slide:nth-child(3) { animation-delay: 12s; }
.hero h1, .hero h2 { font-size: 48px; margin-bottom: 24px; }
.hero .slide { text-shadow: 0 2px 14px rgba(10, 35, 85, .75); }
.hero p { font-size: 22px; font-weight: 700; margin: 0; }
@keyframes hero { 0% { opacity: 0; } 4%, 33% { opacity: 1; } 37%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slide { animation: none; }
  .hero .slide:first-child { opacity: 1; }
}

/* home: bands */
.band { padding: 60px 0; }
.band > .container > h2 { font-size: 35px; text-align: center; margin-bottom: 40px; }
.band-product { background: linear-gradient(#000 0%, var(--navy) 60%); color: var(--light); }
.band-product .lead { font-size: 22px; max-width: 1060px; margin: 0 auto 30px; }
.band-technology { background: var(--light); color: #444; }
.band-technology > .container > h2 { color: #000; }
.band-technology h3 { font-size: 35px; color: var(--cyan); margin: 30px 0 10px; }
.band-opensource { background: linear-gradient(var(--navy) 0, #000 120px); color: var(--light); text-align: center; padding-top: 120px; }

.features { display: grid; gap: 30px; padding: 30px 40px 20px; }
.features.two-col { grid-template-columns: 1fr 1fr; gap: 30px 60px; max-width: 1090px; margin: 0 auto; padding: 0 0 20px; }
.feature { display: flex; gap: 24px; align-items: flex-start; }
.feature .icon { font-size: 40px; color: var(--cyan); margin-top: 6px; width: 1.25em; }
.feature h3 { font-size: 30px; margin-bottom: 12px; }
.feature h4 { font-size: 25px; color: #515151; margin-bottom: 8px; }
.feature p { margin: 0; }
.two-col .feature .icon { font-size: 48px; }

.repos { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.repo { color: var(--light); display: block; overflow-wrap: anywhere; }
.repo:hover { text-decoration: none; color: var(--cyan); }
.repo .icon { font-size: 48px; color: var(--cyan); }
.repo h3 { font-size: 30px; margin: 14px 0 12px; }

/* blog */
.blog-hero { min-height: 440px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 110px 20px 60px;
  background: linear-gradient(120deg, rgba(49, 170, 226, .72) 20%, rgba(67, 72, 94, .8) 100%), #4f4f4f url(/assets/img/blog-header.jpg) center / cover no-repeat; }
.blog-hero > div { max-width: 694px; }
.blog-hero h1 { font-size: 56px; margin-bottom: 30px; }
.blog-hero p { margin: 0; line-height: 1.4; }
.blog-list { background: linear-gradient(180deg, #383b57 0%, #0c0507 100%); padding: 80px 30px 100px; }
.cards { columns: 2; column-gap: 30px; max-width: 1380px; margin: 0 auto; }
.card { background: #fff; break-inside: avoid; margin-bottom: 30px; }
.card img { display: block; width: 100%; }
.card-body { padding: 30px; }
.card h2 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.card-date { border-top: 1px solid #ddd; margin: 20px 0 0; padding-top: 20px; font-size: 13px; color: #777; }
.post-meta { font-size: 13px; color: #777; }

/* posts, privacy policy, 404 */
.post { padding-top: 60px; padding-bottom: 70px; }
.post h1 { font-size: 48px; color: var(--cyan); text-align: center; padding-bottom: 60px; border-bottom: 1px solid #ddd; margin-bottom: 40px; }
.post-body { max-width: 800px; margin: 40px auto 0; }
.post-body h2 { font-size: 28px; margin: 34px 0 12px; }
.post-body h3 { font-size: 22px; margin: 28px 0 10px; }
.post-body h4 { font-size: 20px; margin: 28px 0 10px; }
.post-body p { margin-bottom: 12px; }
.post-body a { overflow-wrap: anywhere; }
.post-mark { display: block; margin: 0 auto 30px; }
.post-hero { display: block; margin: 0 auto 30px; }
.notfound { text-align: center; min-height: 45vh; }
.notfound h1 { border: 0; padding-bottom: 20px; margin-bottom: 10px; }

/* footer */
.site-footer { background: #292e31; color: #d2d2d2; }
.site-footer a { color: #d2d2d2; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.site-footer p { margin: 12px 0 0 10px; font-size: 15px; }
.site-footer p .icon { vertical-align: -2px; margin-right: 6px; }
.site-footer h3 { font-size: 18px; font-weight: 400; color: #fff; margin-bottom: 24px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 8px 0 10px; }
.recent time { display: block; font-size: 12px; color: #8c8c8c; }
.footer-bar { background: #23272a; text-align: center; padding: 30px 15px 28px; }
.footer-bar .icon { vertical-align: -2px; }

@media (max-width: 800px) {
  .site-header .container { justify-content: center; }
  .site-header nav { justify-content: center; gap: 0 20px; font-size: 16px; }
  .hero { height: 420px; background-image: linear-gradient(rgba(3, 9, 28, .92) 0, rgba(3, 9, 28, .65) 120px, rgba(3, 9, 28, 0) 240px), url(/assets/img/hero.svg?v=2); }
  .hero .slide { padding-top: 120px; }
  .hero h1, .hero h2 { font-size: 32px; }
  .hero p { font-size: 18px; }
  .band { padding: 40px 0; }
  .band > .container > h2, .band-technology h3 { font-size: 28px; }
  .band-product .lead { font-size: 19px; }
  .features { padding: 20px 0 10px; }
  .features.two-col, .repos, .footer-cols { grid-template-columns: 1fr; }
  .feature { gap: 16px; }
  .feature h3 { font-size: 24px; }
  .feature h4 { font-size: 21px; }
  .repo h3 { font-size: 24px; }
  .blog-hero { padding-top: 150px; }
  .blog-hero h1 { font-size: 38px; }
  .blog-list { padding: 40px 15px 60px; }
  .cards { columns: 1; }
  .post { padding-top: 40px; }
  .post h1 { font-size: 32px; padding-bottom: 30px; }
}
