.atlantico-page {
  --content-width: 1080px;
}

.atlantico-page .site-header {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.atlantico-hero {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.atlantico-hero h1 {
  text-align: left;
}

.atlantico-hero .role {
  text-align: left;
}

.atlantico-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.atlantico-actions .project-link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  font-size: 1.02rem;
  text-decoration: none;
}

.atlantico-page .project-link,
.atlantico-page .project-link:hover {
  text-decoration: none;
}

.atlantico-actions a:nth-child(1) span {
  animation-delay: 840ms;
}

.atlantico-actions a:nth-child(2) span {
  animation-delay: 960ms;
}

.atlantico-actions a:nth-child(3) span {
  animation-delay: 1080ms;
}

.atlantico-actions a:nth-child(4) span {
  animation-delay: 1200ms;
}

.atlantico-showcase {
  max-width: 760px;
  margin: 0 auto 4rem;
}

.atlantico-showcase img,
.featured-screenshot img,
.screenshot-grid img {
  display: block;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(29, 31, 40, 0.42);
}

.featured-screenshot {
  max-width: 760px;
  margin: 1.5rem auto 1.25rem;
}

.atlantico-section {
  margin-bottom: 4rem;
}

.atlantico-section h2,
.atlantico-final h2 {
  max-width: 760px;
}

.atlantico-section > p,
.atlantico-final > p {
  max-width: 760px;
}

.atlantico-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.atlantico-card {
  padding: 1.5rem;
}

.atlantico-card h3 {
  margin: 0 0 0.7rem;
  color: var(--color-text);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.atlantico-card p {
  margin: 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.color-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: rgba(29, 31, 40, 0.35);
}

.color-card span {
  color: var(--color-text-soft);
  font-weight: 600;
}

.color-card code {
  color: var(--color-text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 0.82rem;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
}

.color-background {
  background: #232530;
}

.color-foreground {
  background: #cdd6e3;
}

.color-keywords {
  background: #be7878;
}

.color-functions {
  background: #729bb3;
}

.color-strings {
  background: #c4a46b;
}

.color-comments {
  background: #5b6273;
}

.roadmap-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.roadmap-list h3 {
  margin: 0 0 0.35rem;
  color: var(--color-text-soft);
  font-size: 1rem;
}

.roadmap-list p {
  margin: 0;
}

.atlantico-final {
  margin-bottom: 0;
}

.zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
}

.zoom-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0.35rem;
  border-radius: 1.25rem;
}

.lightbox {
  width: min(100% - 2rem, 1200px);
  max-width: 1200px;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  background: var(--color-bg-deep);
  color: var(--color-text);
}

.lightbox::backdrop {
  background: rgba(29, 31, 40, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.lightbox-close {
  display: block;
  margin: 0 0 1rem auto;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(39, 42, 52, 0.75);
  color: var(--color-text-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

@media (max-width: 900px) {
  .atlantico-grid,
  .screenshot-grid,
  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .atlantico-page {
    --content-width: 760px;
  }

  .atlantico-grid,
  .screenshot-grid,
  .palette-grid {
    grid-template-columns: 1fr;
  }

  .atlantico-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlantico-actions .project-link {
    min-height: 2.75rem;
  }

  .lightbox {
    width: min(100% - 1rem, 1200px);
    padding: 0.75rem;
  }

  .lightbox img {
    max-height: 75vh;
  }

  .palette-grid {
    gap: 0.75rem;
  }

  .color-card {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.2rem 0.75rem;
    padding: 0.85rem;
  }

  .color-swatch {
    grid-row: 1 / 3;
    width: 3rem;
    height: 3rem;
    aspect-ratio: auto;
    border-radius: 0.65rem;
  }

  .color-card span:not(.color-swatch) {
    align-self: end;
  }

  .color-card code {
    align-self: start;
  }
}
