/* additions.css
   Place at ./assets/css/additions.css (loaded after style.css).
   Styles only the new elements added to the page. Uses currentColor and
   translucent borders so it adapts to whatever palette style.css defines. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Accessibility: skip link and visible keyboard focus */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 6px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Readable body copy in the hero and long-form sections */
.hero p {
  max-width: 62ch;
  line-height: 1.7;
}

.prose {
  max-width: 70ch;
}
.prose p {
  line-height: 1.75;
  margin: 0 0 1.25rem;
}

/* Studio stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.stat {
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* Project cards: keep buttons aligned and show status line */
.card-content p {
  line-height: 1.65;
}
.status {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(128, 128, 128, 0.3);
  font-size: 0.9rem;
  opacity: 0.8;
}
.card-content .btn {
  margin-top: 0.75rem;
}

/* Process: this content is a true sequence, so it is numbered */
.process-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}
.process-list li {
  counter-increment: step;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 10px;
  padding: 1.5rem;
}
.process-list li::before {
  content: "Step " counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
.process-list h3 {
  margin: 0 0 0.5rem;
}
.process-list p {
  margin: 0;
  line-height: 1.65;
}

/* Contact panel */
.contact-panel {
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 12px;
  padding: 2rem;
  max-width: 820px;
}
.contact-panel p {
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

/* Footer: allow the longer link list to wrap on small screens */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* Nav: six links need to wrap cleanly on narrow screens */
@media (max-width: 760px) {
  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* ==========================================================
   Centered layout
   Applies to every page that loads additions.css.
   ========================================================== */

/* Header: logo above, links below, both centered */
header nav {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}
.nav-links {
  justify-content: center;
  flex-wrap: wrap;
  padding-left: 0;
}

/* Section headings and hero: single centered column */
.section-header,
.hero {
  text-align: center;
}
.hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 2.5rem;
}
.hero p,
.section-header p {
  margin-left: auto;
  margin-right: auto;
}
.hero-card {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

/* Rows of buttons, tags and skills */
.hero-buttons,
.tags,
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* Long-form text keeps a readable width but sits in the middle */
.prose {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Cards, stats, process steps, team members */
.card,
.card-content,
.stat,
.process-list li,
.member,
.member-content {
  text-align: center;
}
.card-content .tags,
.member-content .skills {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.card-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.grid,
.team,
.stats,
.process-list {
  justify-content: center;
  justify-items: stretch;
}
.team {
  margin-left: auto;
  margin-right: auto;
}

/* Contact panel */
.contact-panel {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Footer: stacked and centered */
.footer-content {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.footer-links {
  justify-content: center;
}


/* ==========================================================
   Homepage hero stays left-aligned
   #about only exists on the homepage hero, so the credits and
   profile pages keep the centered layout above.
   ========================================================== */
#about,
#about .hero-grid > div,
#about .hero-card {
  text-align: left;
}
#about .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  justify-items: stretch;
  align-items: center;
  gap: 3rem;
}
#about .hero-grid p {
  margin-left: 0;
  margin-right: 0;
}
#about .hero-card {
  max-width: none;
}
#about .hero-buttons,
#about .tags {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  #about .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
