/* Stili base per "Il Tempo dei Ritorni" – Archivi di Inverary */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #050505;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-reader {
  background: #050505;
}

.site-header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #bbb;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f5f5f5;
}

.brand-title-link {
  text-decoration: none;
}

.brand-title-link:hover {
  text-decoration: underline;
}

.top-nav a {
  margin-left: 1rem;
  font-size: 0.85rem;
  color: #ddd;
  text-decoration: none;
}

.top-nav a:hover {
  color: #fff;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  color: #f5f5f5;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  transform-origin: center;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2), rgba(0,0,0,0.9));
}

/* Hero content */

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: #d0d0d0;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-quote {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.85rem 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
}

.hero-button:hover {
  background: rgba(255,255,255,0.18);
}

.hero-signature {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #c0c0c0;
}

/* Sections */

.section {
  background: #050505;
  color: #f5f5f5;
  padding: 3rem 1.5rem 3.5rem;
}

.section-alt {
  background: #0b0b0b;
}

.section-inner {
  max-width: 820px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.archives-list {
  margin: 1rem 0 0.25rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.archives-note {
  font-size: 0.85rem;
  color: #b0b0b0;
}

/* Footer */

.site-footer {
  background: #040404;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #a0a0a0;
}

.site-footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.site-footer-note {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Reader */

.reader-body {
  background: #050505;
  color: #f5f5f5;
}

.reader-main {
  max-width: 840px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.reader-article-header h1 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.reader-article-subtitle {
  font-size: 0.85rem;
  color: #c0c0c0;
}

.reader-panels {
  margin-top: 1.5rem;
}

.reader-panel {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 0.8rem;
  border-radius: 0.4rem;
  background: #111;
}

.reader-end-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #bbbbbb;
}

/* Responsive */

@media (min-width: 900px) {
  .hero-content {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
}
