/* PremierSoft. Form paper, blue-black ink, an approval stamp's violet, and green for a finished step. */
:root {
  --paper: #eef1f4;
  --ink: #172142;
  --ink-soft: #4a5373;
  --stamp: #5b3fc4;
  --done: #2c7a55;
  --rule: #c9cfda;
  --display: "Unbounded", "Noto Sans Armenian", system-ui, sans-serif;
  --text: "Golos Text", "Noto Sans Armenian", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* Armenian reads better in its own face, with a little more air. */
:lang(hy) {
  --display: "Noto Sans Armenian", "Unbounded", system-ui, sans-serif;
  --text: "Noto Sans Armenian", "Golos Text", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

html:lang(hy) body {
  line-height: 1.7;
}

a {
  color: var(--stamp);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 1;
}

.skip:focus {
  top: 1rem;
}

.site-header,
main,
.site-footer {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--ink);
  font: 600 1.15rem/1 "Unbounded", system-ui, sans-serif;
  text-decoration: none;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid var(--stamp);
  border-radius: 5px;
  color: var(--stamp);
  font-size: 1rem;
  rotate: -8deg;
}

.nav,
.langs,
.site-footer ul,
.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.langs a {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover,
.langs a:hover {
  color: var(--stamp);
  text-decoration: underline;
}

.langs {
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.langs a[aria-current] {
  color: var(--stamp);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 19ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.08;
}

html:lang(hy) .hero h1,
html:lang(ru) .hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

html:lang(hy) .hero h1 {
  max-width: 28ch;
  font-weight: 600;
  line-height: 1.2;
}

.lead {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.8em 1.35em;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--stamp);
  color: #fff;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button-quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

/* A product's steps, each stamped on the way; the last one is the finished state. */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  margin-right: 2.4rem;
  padding: 0.35em 0.8em;
  border: 1.5px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.step::after {
  content: "→" / "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 2.4rem;
  translate: 0 -50%;
  color: var(--ink-soft);
  text-align: center;
}

.step-final {
  margin-right: 0;
  border: 4px double var(--done);
  color: var(--done);
  rotate: -2deg;
}

.step-final::after {
  content: none;
}

.chain-hero {
  margin-top: 2.5rem;
}

.chain-hero .step {
  font-size: 1.05rem;
  animation: stamp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: calc(0.4s + var(--i) * 0.32s);
}

@keyframes stamp {
  from {
    opacity: 0;
    scale: 1.35;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .chain-hero .step {
    animation: none;
  }
}

/* Sections */
.products,
.company,
.contact {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.product {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.3fr;
  gap: 1rem 2.5rem;
  padding-block: 2.25rem;
  border-top: 1.5px solid var(--ink);
}

.product:last-child {
  border-bottom: 1.5px solid var(--ink);
}

.product h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.audience {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.product-body > p {
  max-width: 62ch;
  margin: 0;
}

.product-body > .product-link {
  margin-top: 1.25rem;
}

.company > p,
.contact > p {
  max-width: 62ch;
  margin: 0 0 2rem;
}

/* The company's registration details, laid out like the register extract they come from. */
.record {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  column-gap: 2.5rem;
  margin: 0;
  border-top: 1.5px solid var(--ink);
}

.record > div {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.record dt {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.record dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
}

/* Legal pages */
.legal {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.effective {
  margin: 0.75rem 0 2.5rem;
  color: var(--ink-soft);
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.legal p {
  margin: 0;
}

.home-links {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer::before {
  content: "";
  flex-basis: 100%;
  border-top: 1.5px solid var(--ink);
  margin-bottom: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink-soft);
}

@media (max-width: 44rem) {
  .product {
    grid-template-columns: 1fr;
  }
}
