/* ============================================
   portfolio_styles.css — Stack layout for websites
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --pf-bg: #08090B;
  --pf-bg-2: #101116;
  --pf-bg-3: #1A1B22;
  --pf-ink: #F4F5F8;
  --pf-ink-2: #B8BAC4;
  --pf-ink-3: #6B6E7C;
  --pf-ink-4: #3E414C;
  --pf-rule: rgba(244, 245, 248, 0.10);
  --pf-blue: #64B5F6;
  --pf-blue-line: rgba(100, 181, 246, 0.40);
  --pf-blue-glow: rgba(100, 181, 246, 0.35);
  --pf-serif: 'Quicksand', system-ui, sans-serif;
  --pf-sans: 'Quicksand', system-ui, sans-serif;
  --pf-mono: 'Quicksand', system-ui, sans-serif;
  --pf-ease: cubic-bezier(.22, 1, .36, 1);
}

/* page-scoped frame */
.pf-frame {
  font-family: var(--pf-sans);
  color: var(--pf-ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 1600px;
  margin: 0 auto;
  padding: 3rem 4rem 6rem;
}

.pf-frame a { color: inherit; text-decoration: none; }
.pf-frame img, .pf-frame svg { display: block; max-width: 100%; }

/* Page layout — mirror software: full-bleed content + clear the fixed navbar */
#quarto-content { padding: 0; }
#title-block-header { display: none !important; }
/* quarto-nav.js zeroes body.paddingTop (it looks for header.fixed-top); this site
   uses position:fixed via CSS, so restore the 80px navbar clearance */
body { padding-top: 80px !important; }

/* ── section header — matches the site-wide tab header (media / tutorials / software) ── */
@keyframes swIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.pf-sec-head {
  animation: swIn 0.6s cubic-bezier(.22, 1, .36, 1) 0.05s both;
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .pf-sec-head { animation: none; opacity: 1; }
}

.pf-sec-head h2 {
  font-family: var(--ff);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--ink-0);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
}

.pf-sec-head h2 em { color: var(--pf-blue); font-style: normal; font-weight: 600; }

.pf-sec-head .pf-blurb {
  max-width: 60ch;
  font-size: 1rem;
  color: var(--ink-1);
  line-height: 1.65;
  margin: 0;
}

/* ── stack ── */
.pf-stack {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  margin: 0;
  padding: 0;
}

.pf-stack .pf-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.2rem;
  align-items: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
  animation: swIn 0.6s cubic-bezier(.22, 1, .36, 1) both;
}

/* Staggered landing — each card a beat after the previous */
.pf-stack .pf-item:nth-child(1) { animation-delay: 0.15s; }
.pf-stack .pf-item:nth-child(2) { animation-delay: 0.28s; }
.pf-stack .pf-item:nth-child(3) { animation-delay: 0.41s; }
.pf-stack .pf-item:nth-child(4) { animation-delay: 0.54s; }
.pf-stack .pf-item:nth-child(5) { animation-delay: 0.67s; }

@media (prefers-reduced-motion: reduce) {
  .pf-stack .pf-item { animation: none; }
}

.pf-stack .pf-item:nth-child(even) .pf-img-side { order: 2; }

.pf-stack .pf-img-side .pf-thumb {
  aspect-ratio: 16 / 10;
  transition: transform 0.5s var(--pf-ease), box-shadow 0.5s var(--pf-ease);
}

.pf-stack .pf-item:hover .pf-img-side .pf-thumb {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -22px var(--pf-blue-glow);
}

.pf-stack .pf-text-side .pf-n {
  font-family: var(--pf-mono);
  font-size: 0.72rem;
  color: var(--pf-blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.pf-stack .pf-text-side .pf-n::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pf-blue-line);
}

.pf-stack .pf-text-side h3 {
  font-family: var(--pf-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3rem);
  color: var(--pf-ink);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

.pf-stack .pf-text-side h3 em { color: var(--pf-blue); font-style: normal; font-weight: 500; }

.pf-stack .pf-item .pf-text-side h3 {
  transition: color 0.35s var(--pf-ease);
}
.pf-stack .pf-item:hover .pf-text-side h3 {
  color: var(--pf-blue);
}

.pf-stack .pf-text-side .pf-deck {
  margin-top: 1rem;
  font-family: var(--pf-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--pf-ink-2);
  line-height: 1.45;
}

.pf-stack .pf-text-side p {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--pf-ink-2);
  line-height: 1.7;
  max-width: 46ch;
}

.pf-stack .pf-text-side .pf-specs {
  margin-top: 1.6rem;
  display: flex;
  gap: 1.4rem;
  font-family: var(--pf-mono);
  font-size: 0.7rem;
  color: var(--pf-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pf-stack .pf-text-side .pf-specs strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--pf-serif);
  font-weight: 500;
  color: var(--pf-ink);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .pf-stack .pf-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .pf-stack .pf-item:nth-child(even) .pf-img-side { order: 0; }
}

/* ── real screenshot thumb ── */
.pf-thumb {
  position: relative;
  width: 100%;
  background: var(--pf-bg-3);
  border: 1px solid var(--pf-rule);
  border-radius: 8px;
  overflow: hidden;
}

.pf-thumb .pf-chrome {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  background: var(--pf-bg-2);
  border-bottom: 1px solid var(--pf-rule);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 0.55rem;
  z-index: 2;
}

.pf-thumb .pf-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pf-ink-4);
}

.pf-thumb .pf-shot {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  bottom: 0;
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
  object-position: top center;
  display: block;
}
