/* Open Source section styles */

.oss-intro {
  margin: 0.75rem 0 1.5rem;
}

.oss-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.oss-item:last-child {
  border-bottom: none;
}

.oss-item-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.oss-item-name {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  padding: 0 !important;
  line-height: 1.3;
}

.oss-item-name a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.oss-item-name a:hover {
  border-bottom: none;
  color: #9c9c9c;
  opacity: 0.7;
}

.oss-item-stars {
  color: #999;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
}

.oss-item-org {
  color: #999;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
}

.oss-item-desc {
  margin: 0.4rem 0 0;
  font-family: "Lora", "Minion Pro", Palatino, Georgia, serif;
  color: #333;
}

@media (min-width: 734px) {
  .oss-item-desc {
    font-size: 1.125rem;
  }
}

/* Tier 2: compact horizontal list */
.oss-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 1.25rem 0 0;
  margin: 0;
}

.oss-compact li {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #333;
}

.oss-compact li a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.oss-compact li a:hover {
  border-bottom: none;
  color: #9c9c9c;
  opacity: 0.7;
}

.oss-compact .oss-compact-stars {
  color: #999;
  font-size: 0.8rem;
  font-weight: 300;
}

.oss-outro {
  margin: 1.5rem 0 0;
}

/* Print styles */
@media print {
  .oss-item {
    padding: 0.5rem 0;
  }

  .oss-item-name {
    font-size: 1rem;
  }

  .oss-compact {
    padding-top: 0.5rem;
    gap: 0.5rem 1rem;
  }
}

/* --- Audit fixes: link consistency & WCAG contrast --- */

/* Hero-copy links were unstyled (main.css only targets .content-section),
   so they rendered as default browser-blue. Match the antraciet style. */
.page-header .resume-item-copy a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.page-header .resume-item-copy a:hover {
  border-bottom: none;
  color: #9c9c9c;
  opacity: 0.7;
}

/* Social icons were #D1CECC (~1.6:1). Lift to a visible resting grey;
   main.css still resolves them to #333 on hover. */
.icon-links .icon path {
  fill: #6b6b6b;
}

/* Footer + OSS meta were #999 (2.85:1, fails WCAG AA). ~4.9:1 now. */
.page-footer .footer-line {
  color: #6b6b6b;
}

.oss-item-stars,
.oss-item-org,
.oss-compact .oss-compact-stars {
  color: #6b6b6b;
}

/* CTA was #efefef on white (~1.05:1 vs background) — barely a button.
   Make it the clear primary action; hover already scales in main.css. */
.contact-button {
  background-color: #333;
  color: #fff;
}

.contact-button:hover {
  background-color: #111;
  color: #fff;
}

/* Visible keyboard focus (site previously relied on the UA default only) */
a:focus-visible,
.contact-button:focus-visible {
  outline: 2px solid #333;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- App strip: horizontal row of app icons in the hero --- */

.app-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin: 2rem auto 0.5rem;
}

.app-strip-item {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 22%;
  overflow: hidden;
  background: #eef0f2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.app-strip-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
