/* The public pages of jarica.ro (parents, topics, privacy, media; tools/site/pages.mjs).
   Brand colours: assets/brand/README.md. */

@font-face {
  font-family: 'Baloo 2';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/baloo-2-latin-600.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/baloo-2-latin-ext-600.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/baloo-2-latin-800.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/baloo-2-latin-ext-800.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Andika';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/andika-latin-400.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
@font-face {
  font-family: 'Andika';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/andika-latin-ext-400.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Andika';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/andika-latin-700.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
@font-face {
  font-family: 'Andika';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/andika-latin-ext-700.woff2') format('woff2');
  unicode-range:
    U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --purple: #8a4fd8;
  --flame: #f28c28;
  --blue: #1e63c6;
  --gold: #ffd873;
  --ink: #3a1c71;
  --pale: #eaf1fd;
  --text: #2b2440;
  --muted: #5d5878;
  --radius: 24px;
  --shadow: 0 6px 0 var(--gold), 0 18px 40px rgba(31, 20, 70, 0.12);
  --title: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Andika', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 6%, #dde8fb 0 140px, transparent 141px),
    radial-gradient(circle at 4% 40%, #e0eafc 0 180px, transparent 181px), var(--pale);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
}
h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
}
h3 {
  font-size: 24px;
}

/* The top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(234, 241, 253, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 28, 113, 0.08);
}
.bar-logo img {
  height: 44px;
  width: auto;
}
.bar-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.bar-links a {
  font-family: var(--title);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.bar-links a:hover {
  background: #fff;
}

/* The opening */
.hero {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(32px, 7vw, 88px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.hero-emblem {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(30, 99, 198, 0.25));
  animation: land 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes land {
  from {
    transform: translateY(-24px) rotate(-8deg) scale(0.8);
    opacity: 0;
  }
}
.eyebrow {
  font-family: var(--title);
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
}
.lead {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 40em;
  margin: 0 0 20px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.pills li {
  font-family: var(--title);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--gold);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  font-family: var(--title);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #c9d6ef;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #c9d6ef;
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c9d6ef;
}
.btn-main {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 5px 0 var(--ink);
}
.btn-main:hover {
  box-shadow: 0 7px 0 var(--ink);
}
.btn-main:active {
  box-shadow: 0 2px 0 var(--ink);
}

/* Sections */
main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.section {
  padding: clamp(32px, 6vw, 72px) 0 8px;
}
.sub {
  color: var(--muted);
  margin: -6px 0 22px;
}
.small {
  font-size: 15px;
}
.after-swatches {
  margin: 14px 0 0;
}
.note {
  font-family: var(--title);
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
}
.h3-gap {
  margin-top: 44px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prose {
  padding: clamp(20px, 3vw, 32px);
}
.prose p {
  margin: 0 0 0.9em;
}
.prose p:last-child {
  margin-bottom: 0;
}
.two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.story img {
  border-radius: 16px;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* Films */
.film {
  margin: 0;
  overflow: hidden;
}
.film video {
  display: block;
  width: 100%;
  background: var(--ink);
}
.film-wide {
  margin-bottom: 28px;
}
.film-wide video {
  aspect-ratio: 16 / 9;
}
.film-tall video {
  aspect-ratio: 9 / 16;
}
figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  font-size: 15px;
  color: var(--muted);
}
figcaption strong {
  color: var(--ink);
  font-family: var(--title);
  font-size: 18px;
}
.dl,
.logo-meta a {
  font-family: var(--title);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue);
  text-decoration: none;
  background: var(--pale);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.dl:hover,
.logo-meta a:hover {
  background: #d9e6fb;
}

/* Pictures */
.shot {
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s;
}
.shot:hover {
  transform: translateY(-3px);
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.grid-3 .shot img {
  aspect-ratio: 4 / 3;
}
.shot span {
  display: block;
  padding: 12px 18px 14px;
  font-family: var(--title);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.shot span::after {
  content: ' ↓';
  color: var(--blue);
}

/* Logos */
.grid-logos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.logo-wide {
  grid-column: span 2;
}
.logo {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.logo-art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 28px;
  background:
    linear-gradient(45deg, #f4f7fd 25%, transparent 25%, transparent 75%, #f4f7fd 75%) 0 0 / 24px
      24px,
    linear-gradient(45deg, #f4f7fd 25%, transparent 25%, transparent 75%, #f4f7fd 75%) 12px 12px /
      24px 24px,
    #fff;
}
.logo-art.dark {
  background: var(--ink);
}
.logo-art img {
  max-height: 150px;
  width: auto;
}
.logo-wide .logo-art img {
  max-height: 110px;
}
.logo-art .app-icon {
  border-radius: 22%;
  max-height: 130px;
}
.logo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px 14px;
}
.logo-meta strong {
  font-family: var(--title);
  color: var(--ink);
}
.logo-meta span {
  display: flex;
  gap: 6px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.swatch {
  font: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: #fff;
  border-radius: 18px;
  padding: 10px 10px 12px;
  box-shadow: 0 4px 0 #dbe4f4;
  display: grid;
  gap: 2px;
}
.swatch i {
  display: block;
  height: 64px;
  border-radius: 12px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(58, 28, 113, 0.1);
  margin-bottom: 6px;
}
.swatch strong {
  font-family: var(--title);
  color: var(--ink);
  font-size: 16px;
}
.swatch code {
  font-size: 14px;
  color: var(--muted);
}
.swatch.copied code::after {
  content: ' · copiat';
  color: var(--purple);
}
.rules {
  margin-top: 28px;
}
.rules ul {
  margin: 0;
  padding-left: 1.2em;
}
.rules li {
  margin-bottom: 0.4em;
}

/* Contact and footer */
.contact .mail {
  font-family: var(--title);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 36px);
  text-decoration: none;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 56px 16px 40px;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Shared by every page of the site ---- */
.bar-links a[aria-current='page'] {
  background: #fff;
}
.bar-links .bar-play {
  color: #fff;
  background: var(--purple);
  margin-left: 4px;
}
.bar-links .bar-play:hover {
  background: var(--ink);
}
.crumbs {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 48px) 0;
  font-size: 15px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
}
.hero-plain {
  grid-template-columns: 1fr;
  padding-top: clamp(20px, 4vw, 48px);
}
.hero-plain .hero-text {
  max-width: 52em;
}
.hero-plain h1 {
  font-size: clamp(36px, 5.2vw, 60px);
}
.topic {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s;
}
.topic:hover {
  transform: translateY(-3px);
}
.topic img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.topic-text {
  display: block;
  padding: 16px 20px 20px;
}
.topic-text strong {
  display: block;
  font-family: var(--title);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 4px;
}
.topic-text strong::after {
  content: ' →';
  color: var(--blue);
}
.check,
.steps {
  margin: 0 0 0.9em;
  padding-left: 0;
  list-style: none;
}
.check li,
.steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 0.55em;
}
.check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 rgba(58, 28, 113, 0.18);
}
.check li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: calc(0.3em + 4px);
  width: 6px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.steps {
  counter-reset: step;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-family: var(--title);
  font-weight: 800;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
}
.prose h3 {
  margin-top: 0.4em;
}
.prose h3:not(:first-child) {
  margin-top: 1.1em;
}
.faqs {
  display: grid;
  gap: 14px;
}
.faq {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 0 #dbe4f4;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--title);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  padding: 16px 32px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 28px;
  color: var(--purple);
}
.faq[open] summary::after {
  content: '–';
}
.faq p {
  margin: 0 0 18px;
}
.callout {
  border: 3px solid var(--gold);
}
.cta {
  text-align: center;
}
.cta .actions {
  justify-content: center;
}
.shot-figure {
  margin: 0;
  overflow: hidden;
}
.shot-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.legal .section {
  padding-top: clamp(24px, 4vw, 40px);
}
.legal h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}
.legal h3 {
  font-size: 21px;
}
.foot {
  text-align: center;
}
.foot p {
  margin: 4px 0;
}
.foot-links a {
  color: var(--ink);
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-emblem {
    width: 180px;
    margin: 0 auto;
  }
  .pills,
  .actions {
    justify-content: center;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .logo-wide {
    grid-column: auto;
  }
  .bar-logo img {
    height: 36px;
  }
  /* On a phone the links scroll sideways: "Joacă" comes first so it is always in sight. */
  .bar-links .bar-play {
    order: -1;
    margin: 0 4px 0 0;
  }
  .bar-links a {
    font-size: 16px;
    padding: 8px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-emblem {
    animation: none;
  }
}
