@import "./base.css";

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

.button-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: var(--primary-text);
}

.button-secondary {
  color: var(--text);
  background: var(--button-secondary-bg);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

/* Section Headers (portfolio-ref inspired) */

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-header-bar {
  width: 0.25rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background: var(--primary);
  flex-shrink: 0;
}

.section-header h2,
.section-header .page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Hero */

.hero {
  padding-block: 3.5rem;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 16rem;
  height: 16rem;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 2px solid var(--border);
  box-shadow: var(--hero-photo-shadow);
  transition: box-shadow 0.3s;
}

.hero-photo img:hover {
  box-shadow: var(--hero-photo-shadow-hover);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.hero-content h1 {
  max-width: 16ch;
  margin-block: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.85rem);
  line-height: 1.02;
  font-weight: 800;
}

.hero-copy {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--button-secondary-bg);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.hero-social-link:hover {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Profile signal cards */

.profile-signal-section {
  padding-bottom: 2rem;
}

.profile-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.profile-signal-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.profile-signal-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.profile-signal-kicker,
.experience-scope-kicker {
  margin: 0 0 0.4rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-signal-card h2,
.experience-scope-card h4 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.profile-signal-card p:last-child,
.experience-scope-card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Lang Toggle */

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lang-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  font-weight: 700;
}

.search-control {
  margin: -0.5rem 0 2rem;
}

.search-input {
  width: min(100%, 32rem);
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.search-input:focus {
  outline: 2px solid var(--primary-surface);
  border-color: var(--primary);
}

/* Post Cards */

.posts-section {
  padding-block: 3rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.post-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.post-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--text-strong);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.post-card-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.post-card-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.home-posts-footer {
  margin-top: 2rem;
  text-align: center;
}

/* Article content / generated Markdown */

.article-page {
  max-width: 58rem;
}

.article-body {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
}

.article-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 450;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--text-heading);
  line-height: 1.2;
  margin: 2.25rem 0 1rem;
}

.article-body h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-body h3 {
  font-size: 1.25rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body table {
  margin-block: 1.25rem;
}

.article-body a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.article-body blockquote {
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid var(--primary);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
}

/* Alert card for warnings/disclaimers */
.alert-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: 0.75rem;
  background: var(--primary-surface);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-block: 1.25rem;
}

.alert-card strong:first-of-type {
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.35rem;
  background: var(--surface);
  font-size: 0.95em;
}

.article-body pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.article-body pre code {
  padding: 0;
  background: transparent;
}

.article-back-link {
  text-align: left;
}

.article-toc {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.article-toc-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc-item + .article-toc-item {
  margin-top: 0.35rem;
}

.article-toc-depth-3 {
  padding-left: 1rem;
}

.article-toc-depth-4,
.article-toc-depth-5,
.article-toc-depth-6 {
  padding-left: 2rem;
}

.article-toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--primary);
}

/* Back to Top */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Certification Cards */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cert-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
}

.cert-card:hover {
  border-color: var(--border-strong);
}

.cert-card-image {
  width: 100%;
  max-width: 8rem;
  height: 4.5rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 0.25rem;
  box-sizing: border-box;
}

.cert-card-image-wide {
  max-width: 14rem;
  height: 4.5rem;
  border-radius: 0.5rem;
}

.cert-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

.cert-card-issuer {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin: 0;
}

.cert-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cert-card-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
}

.cert-card-link:hover {
  text-decoration: underline;
}

.cert-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Tags */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
}

.tag-ptbr {
  background: var(--primary-surface);
  color: var(--primary);
}

.tag-gbtr {
  background: var(--terciary-surface);
  color: var(--terciary);
}

.tag-skill {
  background: var(--secondary-surface);
  color: var(--secondary);
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Tag Filter Row: horizontal scroll, one line */

.tag-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: -0.5rem 0 2rem;
}

.tag-scroll-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
  user-select: none;
}

.tag-scroll-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--border-strong);
}

.tag-scroll-btn:active {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

.tag-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  flex: 1;
  scroll-behavior: smooth;
}

.tag-filter-row::-webkit-scrollbar {
  height: 4px;
}

.tag-filter-row::-webkit-scrollbar-track {
  background: transparent;
}

.tag-filter-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tag-pill:hover {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--border-strong);
}

.tag-pill.active {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  font-weight: 700;
}

.tag-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  line-height: 1;
}

.tag-pill.active .tag-pill-count {
  background: rgba(0, 0, 0, 0.15);
}

/* Post Card Tags */

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

/* Infinite Scroll */

.posts-loader,
.posts-empty,
.posts-end {
  color: var(--text-dim);
  text-align: center;
  padding: 2rem;
  font-size: 0.9375rem;
}

/* Project Cards */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.project-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.project-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.project-card-title a {
  color: var(--text-strong);
  text-decoration: none;
}

.project-card-title a:hover {
  color: var(--primary);
}

.project-card-desc {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ==========================================================================
   Initial Projects Section
   ========================================================================== */

.projects-section-initial {
    padding-top: 3rem;
}

.projects-scroll-container {
    max-height: 38rem; /* Approx two rows of project cards */
    overflow-y: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--surface);
}

.project-grid-initial {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.project-card-initial {
    flex: 0 0 300px;
    background-color: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 16rem;
}

.project-card-initial .project-card-title {
    font-size: 1.125rem;
}

.project-card-initial .project-card-desc {
    flex-grow: 1;
}

/* ==========================================================================
   Hero Tech Stack
   ========================================================================== */
.hero-tech-stack {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tech-stack-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.tech-stack-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-stack-icons img {
    height: 32px;
}

/* About Page */

.about-bio {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 46rem;
}

.about-bio strong {
  color: var(--text);
}

.skill-group {
  margin-bottom: 2rem;
}

.skill-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-item {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -0.4375rem;
  top: 0.3rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg);
}

.experience-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.experience-item-org {
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.experience-item-date {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.experience-item-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  max-width: 54rem;
}

.experience-tags {
  margin-top: 0.85rem;
}

.experience-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.experience-card-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.experience-scope-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.experience-scope-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.experience-scope-card p:last-child {
  flex: 1;
}

/* Contact Page */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--surface);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.contact-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.contact-card-value {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.contact-card-value a {
  color: var(--primary);
  text-decoration: none;
}

.contact-card-value a:hover {
  text-decoration: underline;
}

/* Highlight text (portfolio-ref inspired) */

.highlight {
  color: var(--primary-strong);
  font-weight: 600;
}

/* SSO/Social proof badges */

.sso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 64rem) {
  .hero-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-photo img {
    width: 14rem;
    height: 14rem;
  }

  .hero-content h1 {
    max-width: 100%;
  }
}

@media (max-width: 48rem) {
  .site-container {
    padding-inline: 1rem;
  }

  .page-section {
    padding-block: 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .section-header h2,
  .section-header .page-title {
    font-size: 1.25rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo img {
    width: 8rem;
    height: 8rem;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-social-link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .about-bio {
    font-size: 0.9375rem;
  }

  .article-body {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .article-page {
    padding-inline: 0;
  }

  .article-toc {
    padding: 0.75rem;
  }

  .profile-signal-card {
    padding: 0.75rem;
  }

  .post-card {
    padding: 1rem;
  }

  .post-card-title {
    font-size: 1.0625rem;
  }

  .experience-item {
    padding-left: 1rem;
  }

  .experience-item-desc {
    font-size: 0.875rem;
  }

  .experience-scope-card {
    padding: 0.75rem;
  }

  .skill-group-tags {
    gap: 0.375rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card-image {
    max-width: 6rem;
    height: 3.5rem;
  }

  .cert-card-image-wide {
    max-width: 10rem;
    height: 3.5rem;
    border-radius: 0.35rem;
  }

  .project-grid-initial {
    flex-direction: column;
  }

  .project-card-initial {
    flex: 0 0 auto;
    width: 100%;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .site-nav-links {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
  }

  .site-nav-links a {
    font-size: 0.875rem;
  }

  .tag-pill {
    padding: 0.5rem 1rem;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .experience-item-title {
    font-size: 1rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .tag-filter-wrapper {
    flex-wrap: wrap;
  }

  .tag-scroll-btn {
    display: none;
  }

  .site-footer {
    font-size: 0.8125rem;
    padding-block: 1.5rem;
  }
}

@media (max-width: 22.5rem) {
  .site-container {
    padding-inline: 0.75rem;
  }

  .hero-photo img {
    width: 6rem;
    height: 6rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-copy {
    font-size: 0.875rem;
  }

  .hero-actions {
    margin-top: 1.25rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .section-header h2,
  .section-header .page-title {
    font-size: 1.125rem;
  }

  .profile-signal-grid {
    gap: 0.75rem;
  }

  .article-body {
    font-size: 0.875rem;
  }

  .cert-card-image {
    max-width: 5rem;
    height: 3rem;
  }

  .cert-card-image-wide {
    max-width: 8rem;
    height: 3rem;
    border-radius: 0.25rem;
  }

  .post-card-title {
    font-size: 0.9375rem;
  }

  .post-card-meta {
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .tag-pill {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}
