/* ASTROKODS — kopējais stils
   Krāsas un šrifti no zīmola vadlīnijām (27.11.2026). */

:root {
  --papirs: #FAF7F0;
  --zilonkauls: #F2EBDD;
  --tinte: #0B2B22;
  --tinte-maiga: #3B4A44;
  --zelts: #D4A857;
  --smaragds: #1E6B5A;
  --linija: rgba(11, 43, 34, 0.15);
  --linija-vaja: rgba(11, 43, 34, 0.08);
  --balts: #FFFFFF;

  --f-virsraksts: "Marcellus", Georgia, serif;
  --f-teksts: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-logo: "Marcellus", Georgia, serif;

  --atkape: clamp(80px, 12vw, 150px);
  --mala: clamp(16px, 5vw, 120px);
}

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

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

body {
  margin: 0;
  background: var(--papirs);
  color: var(--tinte-maiga);
  font-family: var(--f-teksts);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* bez mākslīgi treknota vai slīpa Marcellus */
  overflow-x: hidden;
}

/* papīra graudainums */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--f-virsraksts);
  font-weight: 400; /* Marcellus ir tikai viens biezums */
  color: var(--tinte);
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}

h1 { font-size: clamp(42px, 7vw, 80px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 26px); }

p { margin: 0 0 1em; }

a { color: var(--smaragds); }

.etikete {
  font-family: var(--f-teksts);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smaragds);
}

/* ---------- logotips ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--tinte);
}
.logo .logo-zime { width: 22px; flex: none; display: block; }
.logo .logo-zime svg { display: block; width: 100%; height: auto; }
.logo span {
  font-family: var(--f-logo);
  font-size: 20px;
  letter-spacing: 0.28em;
}

/* ---------- pogas ---------- */
.poga {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 34px;
  text-align: center;
  line-height: 1.3;
  border: 0;
  border-radius: 999px;
  background: var(--zelts);
  color: var(--tinte);
  font-family: var(--f-teksts);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.poga:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -10px rgba(212, 168, 87, 0.9); }
.poga:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; }
.poga[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.poga-teksts {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--tinte-maiga);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--linija);
}
.poga-teksts:hover { color: var(--tinte); }

/* ---------- neironu fons ---------- */
.neironi {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- smaragds ---------- */
.smaragds {
  position: relative;
  display: grid;
  place-items: center;
}
.smaragds::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(closest-side, rgba(250, 247, 240, 1) 30%, rgba(250, 247, 240, 0.85) 55%, rgba(242, 235, 221, 0) 100%);
  border-radius: 50%;
}
.smaragds svg {
  position: relative;
  width: 100%;
  height: auto;
  animation: elpo 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(11, 43, 34, 0.18));
}
.smaragds .spidums { animation: spidums 6s ease-in-out infinite; }

@keyframes elpo {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes spidums {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.75; }
}

/* ---------- parādīšanās ---------- */
.paradas {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.paradas.redzams { opacity: 1; transform: none; }

/* ---------- vilnis ---------- */
.vilnis {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  margin-top: -1px;
}

/* ---------- atruna ---------- */
.atruna {
  font-size: 13px;
  line-height: 1.5;
  color: var(--tinte-maiga);
  opacity: 0.8;
}

/* ---------- kustības ierobežošana ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .paradas { opacity: 1; transform: none; }
}
