/* akaengineering.pro: the look of the 2024–25 Zyro site (archived 8 March 2025),
   rebuilt as plain CSS. Colours and type sizes are the ones in the archived page. */

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --dark: #0d0d0d;
  --light: #fff;
  --primary: #e56057;
  --primary-dark: #cc564e;
  --grey-100: #f1f1f1;
  --grey-200: #dddddd;
  --grey-700: #747474;
  --font-primary: "Work Sans", system-ui, sans-serif;
  --font-secondary: "PT Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --width: 1224px;
  --gutter: 16px;
}

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

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

body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
h1 { font-size: 64px; }
h2 { font-size: 56px; }
h3 { font-size: 48px; }
h4 { font-size: 40px; }
h5 { font-size: 32px; }
h6 { font-size: 24px; }

p { margin: 0; }

.body-large { font-size: 18px; }
.body-small { font-size: 14px; }

.wrap {
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--dark);
  color: var(--light);
  padding: 8px 12px;
}

/* ---- header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--light);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.logo { display: block; flex: 0 1 auto; min-width: 0; }
.logo img { width: 350px; max-width: 100%; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 16px;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--primary); }

/* ---- hero ------------------------------------------------------------ */
.hero {
  background: var(--primary);
  color: var(--light);
  padding: 64px 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 64px; max-width: 30em; }
.hero h6.lead { font-size: 24px; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stats h5 { font-size: 32px; }
.hero figure {
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 382px;
}
.hero figure img {
  width: 100%;
  aspect-ratio: 382 / 571;
  object-fit: cover;
}

/* ---- services -------------------------------------------------------- */
.services { padding: 96px 0 48px; }
.services .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
}
.services h3 { margin-bottom: 32px; }
.services .body-large + .body-large { margin-top: 32px; }
.services .more a {
  color: var(--primary);
  text-decoration: none;
}
.services .more a:hover { text-decoration: underline; }
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  align-content: start;
}
.skills li {
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-200);
}
.skills li:first-child { padding-top: 0; }

/* ---- call to action -------------------------------------------------- */
.cta { padding: 48px 0 96px; }
.button {
  display: inline-block;
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.35;
  padding: 16px 32px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}
.button:hover { background: #1b1b1b; }

/* ---- page heading (inner pages) -------------------------------------- */
.page-head {
  background: var(--primary);
  color: var(--light);
  padding: 56px 0;
}
.page-head p { margin-top: 16px; max-width: 40em; }

/* ---- work ------------------------------------------------------------ */
.project { padding: 64px 0 16px; }
.project + .project { border-top: 1px solid var(--grey-200); }
.project h2 { font-size: 40px; margin-bottom: 16px; }
.project .summary { max-width: 46em; margin-bottom: 32px; }
.gallery {
  columns: 3 260px;
  column-gap: 16px;
}
.gallery a {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--grey-100);
}
.gallery a:hover img { opacity: 0.85; }

/* ---- legal pages ----------------------------------------------------- */
.legal { padding: 56px 0 96px; }
.legal .wrap > * { max-width: 46em; }
.legal h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 1.4em; margin: 0 0 12px; }

/* ---- footer ---------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--light);
  padding: 64px 0 48px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: end;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .contacts p + p { margin-top: 8px; }
.site-footer .contacts .title { margin-bottom: 16px; }
.site-footer .legal-line { text-align: right; }
.site-footer .legal-line p + p { margin-top: 8px; }

/* ---- small screens --------------------------------------------------- */
@media (max-width: 920px) {
  h1 { font-size: 40px; }
  h2 { font-size: 36px; }
  h3 { font-size: 32px; }
  h4, h5, h6 { font-size: 24px; }
  .hero h6.lead { font-size: 20px; }
  .stats h5 { font-size: 24px; }
  .project h2 { font-size: 28px; }

  .site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
  .logo img { width: 250px; }
  .nav ul { gap: 20px; }

  .hero { padding: 72px 0; }
  .hero .wrap,
  .services .wrap,
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { margin-bottom: 48px; }
  .hero figure { justify-self: start; }
  .services { padding: 48px 0 24px; }
  .cta { padding: 24px 0 64px; }
  .site-footer .legal-line { text-align: left; }
}

@media (max-width: 480px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats { grid-template-columns: 1fr; }
}
