:root {
  --ink: #111317;
  --paper: #faf9f6;
  --blue: #304cff;
  --line: #d5d5d2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(100%, 1580px);
  height: 100svh;
  min-height: 420px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 78px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.site-header {
  min-height: clamp(78px, 14vh, 116px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(19px, 1.7vw, 28px);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.spring-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(1) contrast(4.5) brightness(1.7);
  mix-blend-mode: multiply;
  transform: scale(1.8);
}

.catalog-id {
  align-self: end;
  margin: 0 0 13px;
  color: #8b8d91;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-id span {
  margin-left: 8px;
  color: var(--blue);
}

.contact-link {
  justify-self: end;
  min-width: 154px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 14px;
  font-size: 15px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.contact-link span {
  color: var(--blue);
  font-size: 24px;
  line-height: 0.7;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
  transform: translateY(-2px);
}

main {
  min-height: 0;
  padding: clamp(34px, 6vh, 64px) clamp(0px, 2.2vw, 34px);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, clamp(116px, 12vw, 156px));
  align-items: start;
  gap: clamp(24px, 3vw, 42px);
}

.app-tile {
  position: relative;
  width: clamp(116px, 12vw, 156px);
  display: grid;
  justify-items: center;
  gap: 14px;
  border-radius: 32px;
}

.app-icon {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(17, 19, 23, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.app-icon svg {
  width: 77%;
  height: 77%;
}

.icon-orbit {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.35;
  stroke-dasharray: 172 62;
  transform: rotate(-62deg);
  transform-origin: center;
}

.icon-wave {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.3;
  stroke-linecap: round;
}

.app-label {
  opacity: 0;
  color: var(--ink);
  font-size: 12px;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-label span {
  color: var(--blue);
}

.app-tile:hover .app-icon,
.app-tile:focus-visible .app-icon {
  border-color: var(--ink);
  box-shadow: 0 18px 40px rgba(17, 19, 23, 0.17);
  transform: translateY(-5px);
}

.app-tile:hover .app-label,
.app-tile:focus-visible .app-label {
  opacity: 1;
  transform: translateY(0);
}

.app-tile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
}

.site-footer {
  min-height: clamp(48px, 7vh, 62px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--ink);
}

.site-footer p {
  margin: 0;
  font-size: clamp(9px, 0.8vw, 11px);
  letter-spacing: 0.02em;
}

.site-footer strong {
  font-weight: 600;
}

.site-footer em {
  color: var(--blue);
  font-style: normal;
}

.copyright,
.studio-status {
  color: #75777a;
  font-size: clamp(7px, 0.65vw, 9px) !important;
  letter-spacing: 0.04em !important;
}

.studio-status {
  text-align: right;
}

@media (max-width: 760px) {
  .site-shell {
    min-height: 380px;
    padding-inline: 18px;
  }

  .site-header {
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }

  .wordmark {
    gap: 8px;
    font-size: 18px;
  }

  .spring-mark {
    width: 30px;
    height: 30px;
    transform: scale(1.7);
  }

  .catalog-id {
    display: none;
  }

  .contact-link {
    min-width: 102px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  main {
    padding: 28px 6px;
  }

  .catalog {
    grid-template-columns: repeat(auto-fit, 104px);
    gap: 28px 22px;
  }

  .app-tile {
    width: 104px;
    gap: 10px;
  }

  .app-label {
    opacity: 1;
    font-size: 10px;
    transform: none;
  }

  .site-footer {
    min-height: 46px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .studio-status {
    display: none;
  }

  .footer-line {
    text-align: right;
    font-size: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
