/* ============================================
   ROCCO.NETWORK — Static Site Styles
   ============================================ */

/* — Reset & Base — */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0c0c0e;
  --bg-elevated: #131316;
  --bg-hover: #1a1a1f;
  --text: #d4d1ca;
  --text-muted: #8a8780;
  --text-dim: #5c5955;
  --accent: #c9a66b;
  --accent-hover: #dbb97e;
  --rule: #2a2a2f;
  --font-body: 'EB Garamond', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --font-sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --max-w: 680px;
  --max-w-wide: 880px;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* — Grain overlay — */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* — Header / Nav — */
header {
  padding: 2.5rem 2rem 0;
  max-width: var(--max-w-wide);
  width: 100%;
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.site-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.site-mark:hover {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

/* — Main content — */
main {
  flex: 1;
  max-width: var(--max-w-wide);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-narrow {
  max-width: var(--max-w);
}

/* — Hero (Home page) — */
.hero {
  padding: 5rem 0 3rem;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero .tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.hero-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  max-width: var(--max-w);
}

.hero-body p {
  margin-bottom: 1.25rem;
}

.hero-body strong,
.hero-body a {
  font-weight: 500;
}

/* — Contact strip — */
.contact-strip {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.contact-strip a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-strip a:hover {
  color: var(--accent);
}

/* — Page titles — */
.page-header {
  padding: 4.5rem 0 2rem;
}

.page-header h1 {
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* — Collaborate page — */
.collab-intro {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  max-width: var(--max-w);
  margin-bottom: 3rem;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.collab-card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.collab-card:hover {
  border-color: var(--text-dim);
  transform: translateY(-2px);
}

.collab-card h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.collab-card ul {
  list-style: none;
}

.collab-card li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}

.collab-card li:last-child {
  border-bottom: none;
}

.collab-card li::before {
  content: '►';
  font-size: 0.55rem;
  margin-right: 0.6rem;
  color: var(--text-dim);
  vertical-align: middle;
}

.cta-block {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}

.cta-block a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: background 0.2s ease;
  display: inline-block;
}

.cta-block a:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* — Content / Blog listing — */
.post-list {
  padding-bottom: 3rem;
}

.year-divider {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 2rem 0 0.75rem;
  margin-top: 0.5rem;
}

.year-divider:first-child {
  margin-top: 0;
  padding-top: 0;
}

.post-item {
  display: block;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background 0.15s ease;
}

.post-item:first-child {
  border-top: 1px solid var(--rule);
}

.post-item:hover {
  background: var(--bg-hover);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 3px;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.post-item h2 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.post-item:hover h2 {
  color: var(--accent);
}

.post-excerpt {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: var(--max-w);
}

/* — Footer — */
footer {
  padding: 2rem;
  max-width: var(--max-w-wide);
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--accent);
}

/* — Responsive — */
@media (max-width: 640px) {
  html { font-size: 16px; }
  
  header { padding: 1.5rem 1.25rem 0; }
  main { padding: 0 1.25rem; }
  footer { padding: 2rem 1.25rem; }
  
  .nav-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero { padding: 3rem 0 2rem; }
  
  .hero h1 { font-size: 2rem; }
  
  .page-header { padding: 3rem 0 1.5rem; }
  .page-header h1 { font-size: 1.8rem; }
  
  .collab-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-strip {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .post-item:hover {
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* — Fade-in animation — */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.6s ease both;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }
.fade-in:nth-child(5) { animation-delay: 0.33s; }
.fade-in:nth-child(6) { animation-delay: 0.40s; }
.fade-in:nth-child(7) { animation-delay: 0.47s; }
.fade-in:nth-child(8) { animation-delay: 0.54s; }
.fade-in:nth-child(9) { animation-delay: 0.61s; }
.fade-in:nth-child(10) { animation-delay: 0.68s; }
