/* molva.md. Tokens copied from apps/web/src/styles/tokens.css (direction B «Prietenos»). */

/* Nunito, self-hosted (SIL OFL 1.1, /fonts/OFL.txt). Each weight in three subsets; the browser
   downloads only the subsets a page uses. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/nunito-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/nunito-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/nunito-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/nunito-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/nunito-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/nunito-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/nunito-cyrillic-900-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext-900-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/nunito-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f7f7fc;
  --card: #ffffff;
  --text: #23233a;
  --text-soft: #4a4966;
  --muted: #65648a;
  --accent: #5b57d9;
  --accent-press: #4340b8;
  --tint: #eeedff;
  --line: #e2e1f2;
  --line-soft: #eeedf6;
  --shadow: 0 6px 18px rgba(52, 50, 120, 0.08);
  --shadow-soft: 0 4px 12px rgba(52, 50, 120, 0.06);
  --r-card: 20px;
  --r-tile: 14px;
  --r-pill: 999px;
  --font: 'Nunito', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --page-x: 20px;
  --wide: 1080px;
  --text-col: 680px;
  --ease: 180ms ease;
}

/* Page-to-page fade where the browser supports it; a plain load elsewhere. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation-duration: 0.3s;
}
::view-transition-new(root) {
  animation-duration: 0.6s;
}
.site-header {
  view-transition-name: site-header;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(91, 87, 217, 0.35);
  transition:
    color var(--ease),
    text-decoration-color var(--ease);
}
a:hover {
  color: var(--accent-press);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--page-x);
}

/* Header: sticky, with a 1 px line so it stays readable over the page background. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 252, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(247, 247, 252, 0.82);
    backdrop-filter: blur(8px);
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  padding: 6px 4px;
  border-radius: 10px;
  transition: opacity var(--ease);
}
.brand:hover {
  opacity: 0.8;
}
.brand img {
  height: 38px;
  width: auto;
}
.header-link {
  font-size: 15px;
}

main {
  flex: 1 0 auto;
}

/* ---------- Home ---------- */

.hero {
  padding: 20px 0 36px;
}
.hero .wrap {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  margin-bottom: 14px;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 12px 0 0;
  border-radius: 50%;
  background: var(--tint);
}
.hero-art img {
  position: relative;
  height: 210px;
  width: auto;
}
.hero h1 {
  font-size: clamp(30px, 8.4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.lead {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 18px;
  color: var(--text-soft);
}
.soon {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 2.2;
}
.chip {
  display: inline-block;
  padding: 3px 13px;
  margin: 0 2px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
}

.facts {
  padding: 8px 0 36px;
}
.section-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
}
.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 18px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.fact-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent);
}
.fact-icon svg {
  width: 22px;
  height: 22px;
}
.fact h3 {
  font-size: 18px;
  font-weight: 800;
  padding-top: 8px;
}
.fact p {
  color: var(--text-soft);
  font-size: 16px;
}

.contact {
  padding: 0 0 48px;
}
.contact-box {
  padding: 22px 20px;
  border-radius: var(--r-card);
  background: var(--tint);
  text-align: center;
}
.contact-box h2 {
  font-size: 20px;
  font-weight: 900;
}
.contact-box p {
  margin-top: 6px;
  color: var(--text-soft);
}
.contact-mail {
  display: inline-block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
}

@media (min-width: 640px) {
  .fact-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero .wrap {
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-areas: 'text art';
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 40px;
  }
  .hero-text {
    grid-area: text;
  }
  .hero-art {
    grid-area: art;
    justify-self: center;
    width: 360px;
    height: 400px;
    margin: 0;
  }
  .hero-art::before {
    inset: 40px 0 0;
    height: 360px;
  }
  .hero-art img {
    height: 400px;
  }
  .lead {
    font-size: 20px;
  }
  .facts {
    padding-bottom: 56px;
  }
  .section-title {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .fact {
    padding: 22px;
  }
  .contact {
    padding-bottom: 72px;
  }
  .contact-box {
    padding: 32px;
  }
}

/* ---------- Text pages ---------- */

.doc {
  padding: 28px 0 48px;
}
.doc .wrap {
  max-width: calc(var(--text-col) + 2 * var(--page-x));
}
.doc h1 {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 900;
}
.doc-intro {
  margin-top: 10px;
  color: var(--text-soft);
}
.card {
  margin-top: 22px;
  padding: 22px 20px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.card section + section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.card h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}
.card p + p,
.card p + ul,
.card p + ol,
.card ul + p,
.card ol + p {
  margin-top: 10px;
}
.card ul,
.card ol {
  margin: 0;
  padding-left: 1.3em;
}
.card li + li {
  margin-top: 6px;
}
.card li::marker {
  color: var(--accent);
  font-weight: 800;
}
.path {
  font-weight: 800;
  color: var(--text);
}
.note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.mail-big {
  font-size: 22px;
  font-weight: 900;
}

@media (min-width: 900px) {
  .doc {
    padding: 48px 0 72px;
  }
  .card {
    padding: 30px 32px;
  }
}

/* ---------- 404 ---------- */

.lost {
  padding: 40px 0 64px;
  text-align: center;
}
.lost .wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.lost img {
  height: 220px;
  width: auto;
}
.lost h1 {
  font-size: 30px;
  font-weight: 900;
}
.lost p {
  color: var(--text-soft);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-press);
  transition:
    background-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}
.button:hover {
  color: #fff;
  background: var(--accent-press);
  transform: translateY(1px);
  box-shadow: 0 3px 0 #34319a;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  font-size: 15px;
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  gap: 14px;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-block;
  padding: 6px 0;
}
.footer-nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 900px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
