/* ============================================================
   shared.css — paulcaiozzo.com
   Common styles used across all pages
   ============================================================ */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
  background: #D8D2E3;
  color: #1a0f2e;
  font-family: "Hoefler Text", Baskerville, Palatino, serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Links */
a { color: #3300cc; cursor: alias; letter-spacing: 0.01em; transition: color 0.15s ease; text-decoration: underline; }
a:visited { color: #3d0f6e; }
a:hover, a:visited:hover { color: #5c2d91; }

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: #D8D2E3;
  z-index: 100;
  line-height: 1;
}
.site-name {
  font-size: 0.875rem;
  font-weight: normal;
  color: #1a0f2e;
}
a.site-name:visited { color: #1a0f2e; }
a.site-name:hover { color: #5c2d91; }

header nav { display: flex; gap: 1.25rem; font-size: 0.75rem; }
header nav a,
header nav a:link,
header nav a:visited {
  color: #3300cc;
  cursor: alias;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
  text-decoration: underline;
}
header nav a:hover { color: #5c2d91; }
header nav a.active,
header nav a.active:link,
header nav a.active:visited {
  color: #2B2B2B;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
}

/* Fade-in animation */
@keyframes fadein { to { opacity: 1; transform: translateY(0); } }

/* Main base — pages override max-width/padding as needed */
main {
  opacity: 0;
  animation: fadein 0.8s ease forwards;
}

/* Case study shared elements */
.project-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b4f8a;
  display: block;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 0.85rem;
  line-height: 1.75;
  color: #1a0f2e;
  border-top: 1px solid #b8b0cc;
  padding-top: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 600px) {
  body { font-size: 18px; }
  header { padding: 1rem 1.25rem; }
  header .site-name { font-size: 1rem; }
  header nav { font-size: 0.9rem; }
}
