:root {
  --red:        #a81c13;
  --red-dark:   #6e100b;
  --gold:       #e0a63c;
  --cream:      #fbf6ec;
  --cream-deep: #efe0c2;
  --ink:        #2e120e;
  --ink-soft:   #6b4a42;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 44px);
  padding: 40px 24px 28px;
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", "DejaVu Sans", system-ui, -apple-system, sans-serif;
  text-align: center;
}

/* subtle warm glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 38%, #fff8ea 0%, var(--cream) 70%);
  z-index: -1;
}

.logo {
  width: min(78vw, 46vh, 460px);
  /* The width/height attributes on the img give the browser the aspect ratio
     up front (no layout shift while it loads), but they also set a used height
     of 900px, which would beat aspect-ratio and leave a tall empty box. */
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  animation: rise .7s cubic-bezier(.22, .9, .3, 1) both;
}

/* the red pill, used for both "Pasūtīt" and "Paziņot man" */
.pill {
  font: inherit;
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--red);
  border: none;
  border-radius: 999px;
  padding: 18px 54px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--red-dark), 0 14px 28px rgba(110, 16, 11, .22);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .2s ease;
  animation: rise .7s .12s cubic-bezier(.22, .9, .3, 1) both;
}
.pill:hover  { background: #bb2018; }
.pill:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--red-dark), 0 6px 14px rgba(110, 16, 11, .2);
}
.pill:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.pill[disabled] { opacity: .55; cursor: default; }
.pill[disabled]:hover { background: var(--red); }

.socials {
  margin-top: auto;
  display: flex;
  gap: 18px;
  padding-top: 24px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--red);
  background: transparent;
  border: 2px solid var(--cream-deep);
  transition: color .15s ease, background .15s ease,
              border-color .15s ease, transform .15s ease;
}
.socials a:hover {
  color: var(--cream);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}
.socials a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

.legal {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .65;
}

@media (max-width: 460px) {
  .legal   { font-size: 10.5px; letter-spacing: 1px; }
  .pill    { padding: 16px 40px; letter-spacing: 2px; }
  .socials { gap: 12px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
