/* DATA123 journal (/blog/, /en/blog/). Same look as the articles section on data123.lt
   (assets/data123.css): light, petrol ink, teal accents, cards with a picture on top. */
:root { --navy: #0b303b; --ink: #102e3a; --teal: #087c75; --teal-2: #158377; --mint: #a7efce; --muted: #5c737b; --line: #dce8e4; --soft: #f2f7f5; --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #20a78b; outline-offset: 4px; }
::selection { background: var(--mint); color: var(--navy); }
h1, h2, h3, p, figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 8px 16px; background: var(--navy); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.header-inner, .journal-wrap, .article-wrap, .footer-inner { max-width: 1330px; margin: 0 auto; padding: 0 36px; }

/* top line, header, footer: as on data123.lt */
.topline { background: var(--navy); color: #b9d1d4; font-size: 11px; letter-spacing: .45px; }
.topline .header-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topline span:last-child { color: #93dbbe; }
.topline a { color: inherit; text-decoration: none; }
.topline a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(15px); border-bottom: 1px solid #e2eae7; }
.site-header .header-inner { height: 78px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 23px; font-weight: 850; letter-spacing: -1.05px; color: var(--ink); }
.brand strong { color: #108b7d; }
.brand-mark { width: 36px; height: 36px; }
.site-header nav { display: flex; gap: 28px; margin-left: auto; }
.site-header nav a { font-size: 13px; font-weight: 700; color: #375461; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--teal); }
.lang-switch { font-size: 12px; font-weight: 750; color: #375461; padding: 6px 2px; }
.lang-switch:hover { color: var(--teal); }
.nav-contact { font-size: 12px; font-weight: 800; background: var(--navy); color: #fff; padding: 15px 18px; border-radius: 8px; white-space: nowrap; transition: background .2s; }
.nav-contact:hover { background: #165465; }
.preview-banner { background: var(--mint); color: var(--navy); padding: 8px; text-align: center; font: 12px var(--mono); }
footer { background: #08252e; color: #a5c4c6; margin-top: 100px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 29px; font-size: 12px; }
footer .brand { font-size: 17px; color: #fff; gap: 0; }
footer .brand strong { color: #93dbbe; }
footer .footer-inner > div { margin-left: auto; }
footer .footer-inner > div { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: #fff; }

/* shared bits */
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--teal-2); font-size: 11px; font-weight: 800; letter-spacing: 1.65px; text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--teal-2); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.meta > span + span::before { content: "·"; margin-right: 8px; color: #8fb5ad; }
.button { display: inline-flex; align-items: center; gap: 17px; background: var(--navy); color: #fff; padding: 16px 21px; border-radius: 8px; font-size: 13px; font-weight: 800; }
.button:hover { background: #145261; }

/* index: heading */
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 90px 0 40px; }
.intro h1 { font-size: clamp(35px, 3.2vw, 49px); line-height: 1.11; letter-spacing: -2.2px; font-weight: 790; margin: 15px 0 0; }
.intro h1 em { font-style: normal; color: #158579; }
.intro-lede { max-width: 375px; color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 4px; }

/* index: stories, the same cards as the front page */
.stories { padding-top: 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 26px; }
.section-heading h1, .section-heading h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.11; letter-spacing: -2px; font-weight: 790; }
.section-heading h1 span, .section-heading h2 span { color: #158579; }
.story-count { color: var(--muted); font-size: 13px; font-weight: 650; }
.browse-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 27px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { background: var(--soft); border: 1px solid #dfeae6; padding: 10px 15px; border-radius: 6px; color: #49666a; font-size: 12px; font-weight: 750; }
.filter:hover { background: #e7f4ee; }
.filter.active { background: #0c3c45; border-color: #0c3c45; color: #fff; }
.search { display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid #dfeae6; border-radius: 6px; padding: 0 12px; min-width: 240px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: #6a8586; stroke-width: 2; flex: 0 0 auto; }
.search input { border: 0; background: transparent; padding: 10px 0; width: 100%; font-size: 13px; color: var(--ink); outline: none; }
.search:focus-within { border-color: var(--teal); background: #fff; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.story-card { border: 1px solid #dbe7e4; border-radius: 11px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px #12373c13; }
.card-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #e7f5ee; overflow: hidden; }
/* the illustrations are 4:3 and fill the panel; other shapes stay whole on the soft background */
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.story-card:nth-child(3n+2) .card-image { background: #e6edf4; }
.story-card:nth-child(3n) .card-image { background: #edf3ef; }
.card-content { padding: 24px 23px 26px; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.75px; margin: 13px 0 12px; }
.card-content h3 a:hover { color: var(--teal); }
.card-content > p { font-size: 13px; line-height: 1.7; color: #658086; margin-bottom: 23px; }
.story-link { margin-top: auto; font-weight: 800; color: #08796c; font-size: 13px; align-self: flex-start; }
.story-link:hover { color: var(--navy); }
.empty { border: 1px solid var(--line); border-radius: 11px; padding: 34px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty button { margin-top: 16px; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 10px 15px; font-size: 12px; font-weight: 750; }

/* index: Kilmo strip, like the front page's dark work section */
.about-strip { margin-top: 90px; display: flex; align-items: center; gap: 34px; background: #f1f6f4; border: 1px solid #dce8e4; border-radius: 12px; padding: 30px 36px; }
.mini-kilmo { font-size: 30px; font-weight: 850; letter-spacing: -1.4px; color: var(--teal); white-space: nowrap; }
.mini-kilmo span { font-size: 20px; margin-left: 3px; }
.about-strip > div { flex: 1; }
.about-strip h2 { font-size: 24px; letter-spacing: -.7px; line-height: 1.2; margin-bottom: 6px; }
.about-strip p { color: var(--ink); font-size: 16px; line-height: 1.6; }
.about-strip > a { color: var(--teal); border-bottom: 1px solid #8ac7b5; padding-bottom: 5px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.about-strip > a:hover { color: var(--navy); }

/* article */
.article-wrap { max-width: 860px; padding-top: 50px; }
.back-link { display: inline-block; color: var(--teal); font-size: 13px; font-weight: 800; border-bottom: 1px solid #8ac7b5; padding-bottom: 3px; }
.article-heading { margin: 38px 0 30px; }
.draft-label { display: inline-block; background: var(--mint); color: var(--navy); font: 700 11px var(--mono); padding: 4px 9px; border-radius: 4px; margin-bottom: 14px; }
.article-heading h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -2.6px; font-weight: 820; margin: 16px 0 16px; }
.article-deck { color: var(--muted); font-size: 18px; line-height: 1.7; }
.article-art { background: #e7f5ee; border: 1px solid #dbe7e4; border-radius: 12px; padding: 24px; display: flex; justify-content: center; }
.article-art img { border-radius: 8px; max-height: 720px; width: auto; }
.article-body { margin-top: 40px; font-size: 17px; line-height: 1.8; color: #2c4a54; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 { font-size: 30px; letter-spacing: -1px; line-height: 1.2; color: var(--ink); margin-top: 38px; }
.article-body h3 { font-size: 22px; letter-spacing: -.6px; color: var(--ink); margin-top: 30px; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul { padding-left: 22px; }
.article-body li + li { margin-top: 6px; }
.article-body code { font: .88em var(--mono); background: #e7f5ee; color: #0e645b; padding: 1px 6px; border-radius: 5px; }
.article-body pre { background: var(--navy); color: #def4ec; padding: 18px 20px; border-radius: 10px; overflow-x: auto; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.share-row { margin-top: 46px; padding: 22px 24px; background: var(--soft); border: 1px solid #dfeae6; border-radius: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.share-row p { flex: 1; min-width: 220px; font-weight: 700; font-size: 14px; }
.share-row > div { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row button, .share-row a { background: #fff; border: 1px solid #c9dcd6; color: var(--navy); border-radius: 6px; padding: 10px 14px; font-size: 12px; font-weight: 750; }
.share-row button:hover, .share-row a:hover { border-color: var(--navy); }
#share-status { width: 100%; font-size: 12px; color: var(--teal); }
#share-status:empty { display: none; }
.related { margin-top: 80px; }
.related h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.4px; line-height: 1.15; margin-bottom: 24px; }
.related .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .site-header .header-inner { gap: 20px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner, .journal-wrap, .article-wrap, .footer-inner { padding: 0 21px; }
  .topline span:last-child { display: none; }
  .site-header .header-inner { height: 66px; gap: 14px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 12px; }
  .nav-contact { display: none; }
  .stories { padding-top: 40px; }
  .section-heading { display: block; }
  .story-count { display: block; margin-top: 8px; }
  .search { min-width: 0; width: 100%; }
  .story-grid, .related .story-grid { grid-template-columns: 1fr; }
  .about-strip { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 24px; margin-top: 64px; }
  .article-wrap { padding-top: 34px; }
  .article-heading h1 { letter-spacing: -1.6px; }
  .article-art { padding: 12px; }
  .article-body { font-size: 16px; }
  footer { margin-top: 70px; }
}
@media (max-width: 560px) {
  .site-header nav a:first-child { display: none; }
  .site-header nav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* The last line of the page: copyright and the privacy link. */
footer .footer-legal { max-width: 1330px; margin: 0 auto; padding: 12px 36px 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #7fa3a8; }
footer .footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) { footer .footer-legal { padding: 12px 21px 20px; } }
