/* ─── Standalone products page (archive/products.html only) ─── */
.products-page {
  align-self: center;
  width: min(100%, 62rem);
  display: grid;
  gap: clamp(var(--space-6), 4vw, var(--space-8) * 2);
  margin: 0 auto;
}

.products-intro {
  max-width: 34rem;
  opacity: 0;
  animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.products-intro h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.product-list {
  display: grid;
  border-top: 1px solid var(--border-subtle);
  opacity: 0;
  animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.product-row {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-subtle);
  color: inherit;
  text-decoration: none;
}

a.product-row { transition: color 150ms ease-out; }

a.product-row:hover .product-name { color: var(--color-primary-600); }

.product-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.product-line {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
}

/* ─── Page shell (skills-sync.html) ─── */
.page-shell {
  width: 100%;
  min-height: calc(100dvh - clamp(3rem, 6vw, 5rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(var(--space-8), 5vh, 4rem);
  margin: 0;
}

.detail {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.68fr);
  gap: clamp(var(--space-6), 5vw, 4rem);
  align-items: center;
}

.skill-page {
  align-self: center;
  width: min(100%, 62rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(var(--space-6), 5vw, 4rem);
  align-items: center;
  margin: 0 auto;
}

.skill-hero {
  opacity: 0;
  animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

/* Display / H1 at 28–32px spec; scales up for marketing context.
   Line-height: 1.25 per spec. Letter-spacing: -0.02em. */
.skill-hero h1 {
  max-width: 10ch;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.skill-icon {
  width: clamp(8rem, 18vw, 13.5rem);
  height: auto;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #fff;
}

.skill-icon-mark {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.skill-icon-mark path {
  fill: none;
  stroke: var(--color-lingonberry);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Micro label - 12px uppercase, 0.14em, semibold */
.detail-eyebrow {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.detail h1 {
  max-width: 12ch;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Body lede - slightly larger than base body, same line-height */
.detail-lede {
  max-width: 36rem;
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.011em;
}

/* ─── Action buttons (skills-sync.html) ─── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.action {
  border: 1px solid transparent;
  background: var(--color-primary-600);
  color: #fff;
  box-shadow: var(--shadow-control);
}

.action.secondary {
  background: #fff;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: none;
}

.action:hover {
  background: var(--color-primary-700);
  transform: translateY(-1px);
}

.action:active {
  transform: scale(0.97);
  transition-duration: 75ms;
}

.action.secondary:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* ─── Footer ─── */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: var(--space-4);
  opacity: 0;
  animation: fadeIn 0.7s ease 1s forwards;
}

/* Micro label - 11px uppercase, semibold, 0.12em (footer slightly tighter) */
.footer-meta {
  color: var(--color-spruce-green);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-meta.right { text-align: right; }

/* Home first screen now carries only the scroll hint - keep it centered */
body.home .site-footer {
  grid-template-columns: 1fr;
  justify-items: center;
}

/* ─── Page footer - left cluster + right copyright ─── */
.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  opacity: 0;
  animation: fadeIn 0.7s ease 1s forwards;
}

.page-footer-start,
.page-footer-end {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.page-footer-start {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-footer-end {
  flex-shrink: 0;
  justify-content: flex-end;
  text-align: right;
}

/* Home - legal footer below products section */
.home-legal-footer .page-footer {
  width: 100%;
  padding-top: var(--space-4);
}

.page-footer-meta,
.page-footer-link,
.page-footer-sep {
  color: var(--color-spruce-green);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.page-footer-sep { opacity: 0.5; }

.page-footer-link {
  text-decoration: none;
  transition: color 150ms ease-out;
}

.page-footer-link:hover,
.page-footer-link:focus-visible {
  color: var(--color-spruce-green-dark);
}
