/* ==============================================
   PIRANFAROODI.COM — SHARED DESIGN SYSTEM
   ============================================== */

:root {
  --bg: #F4F0E6;
  --bg-warm: #EDE6D3;
  --bg-card: #FAF6EC;
  --bg-tile: #FBF7ED;
  --ink: #1A1A1A;
  --ink-muted: #5C5650;
  --ink-faint: #8C8579;
  --accent: #B5390B;
  --accent-soft: #D45A1F;
  --rule: #C9C1AE;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  width: 0%;
  transition: width 0.1s ease;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  width: 100%;
}

main {
  flex: 1;
}

/* ============ NAV ============ */
nav.site-nav {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

nav.site-nav .mark {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

nav.site-nav .links { display: flex; gap: 32px; }

nav.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

nav.site-nav a:hover { color: var(--accent); }
nav.site-nav a.current { color: var(--accent); }

nav.site-nav a:not(.mark)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav.site-nav a:not(.mark):hover::after,
nav.site-nav a.current::after { width: 100%; }

/* ============ COMMON ELEMENTS ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s, transform 0.2s;
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* ============ FOOTER ============ */
footer.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

footer.site-footer a { color: inherit; text-decoration: none; }
footer.site-footer a:hover { color: var(--accent); }

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE BASE ============ */
@media (max-width: 820px) {
  .wrap { padding: 0 24px; }
  nav.site-nav { padding: 24px 0; }
  nav.site-nav .links { gap: 20px; font-size: 12px; }
  footer.site-footer { flex-direction: column; gap: 8px; }
}
