/* Tokens e tipografia extraídos do sistema de marca oficial da CJA. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: oklch(97.6% 0.007 85);
  --paper-hi: oklch(99.5% 0.003 85);
  --ink: oklch(21% 0.05 268);
  --muted: oklch(39% 0.04 268);
  --quiet: oklch(50% 0.03 268);
  --royal: oklch(40.5% 0.16 271);
  --focus: oklch(52% 0.18 272);
  --hair: oklch(21% 0.05 268 / 0.13);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 1;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--paper-hi);
  color: var(--royal);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.hub {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1116px;
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  margin-inline: auto;
  border: 1px solid var(--hair);
  border-radius: 28px;
  background: var(--paper-hi);
  box-shadow: 0 8px 20px -6px oklch(21% 0.05 268 / 0.05);
}

.hub-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
}

.logo {
  display: block;
  flex: none;
  width: 100px;
  height: auto;
  aspect-ratio: 759 / 243;
}

.hub-name {
  padding-left: 20px;
  border-left: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hub-content {
  width: 100%;
  max-width: 568px;
  margin: auto;
  padding: 48px 24px 64px;
  text-align: center;
}

h1 {
  margin: 0 0 20px;
  color: var(--quiet);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

h1 strong {
  color: var(--ink);
  font-weight: 780;
}

.hub-content > p {
  margin: 0 0 36px;
  color: var(--muted);
  text-wrap: pretty;
}

.app-list {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.app-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 24px;
  border: 1px solid oklch(21% 0.05 268 / 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, oklch(99.8% 0.002 85), oklch(98.9% 0.004 85));
  color: var(--ink);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.8), 0 2px 3px oklch(21% 0.05 268 / 0.04);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  transition: transform 150ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .app-link:hover {
    transform: translateY(-2px);
    border-color: var(--royal);
    color: var(--royal);
    box-shadow: 0 8px 20px -6px oklch(21% 0.05 268 / 0.12);
  }
}

.app-link:active {
  transform: scale(0.98);
}

.hub-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .hub {
    min-height: calc(100vh - 32px);
    min-height: calc(100svh - 32px);
  }

  .hub-header {
    gap: 16px;
    padding: 24px;
  }

  .logo {
    width: 84px;
  }

  .hub-name {
    padding-left: 16px;
  }

  .hub-content {
    padding: 36px 20px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-link {
    transition: none;
  }

  .app-link:hover,
  .app-link:active {
    transform: none;
  }
}
