* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  line-height: 1.65;
  background: var(--sn-bg);
  color: var(--sn-text);
  font-family: var(--sn-font-body);
}
h1, h2, h3, .display {
  font-family: var(--sn-font-display);
  letter-spacing: -0.02em;
}
a { color: var(--sn-primary); }
.sn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 6vw;
  background: color-mix(in srgb, var(--sn-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sn-border);
}
.sn-header .brand {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--sn-text);
}
.sn-header nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.sn-header nav a {
  text-decoration: none;
  color: var(--sn-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.sn-header nav a:hover { color: var(--sn-primary); }
.hero {
  padding: 5.5rem 6vw 4rem;
  background: var(--sn-hero-gradient);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 42vw;
  height: 42vw;
  border-radius: 40% 60% 55% 45%;
  background: color-mix(in srgb, var(--sn-secondary) 55%, transparent);
  animation: sn-float 9s ease-in-out infinite;
}
@keyframes sn-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(18px) rotate(6deg); }
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}
.hero p { font-size: 1.15rem; color: var(--sn-muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--sn-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(28, 25, 23, 0.08); }
.btn-ghost {
  background: var(--sn-surface);
  color: var(--sn-text);
  border: 1.5px solid var(--sn-border);
}
.section { padding: 3.5rem 6vw; }
.section h2 { font-size: 1.85rem; margin-bottom: 1.25rem; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--sn-surface);
  border: 1px solid var(--sn-border);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
  animation: sn-rise 0.65s ease both;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--sn-muted); font-size: 0.95rem; }
.ad-slot {
  margin: 1.5rem 0;
  border: 1px dashed var(--sn-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: var(--sn-muted);
  background: var(--sn-surface);
}
.prose { max-width: 720px; }
.prose h1 { font-size: 2.2rem; }
.author {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--sn-surface);
  border: 1px solid var(--sn-border);
  margin: 2rem 0;
}
.sn-footer {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid var(--sn-border);
  color: var(--sn-muted);
  font-size: 0.9rem;
}
.sn-rise { animation: sn-rise 0.7s ease both; }
@keyframes sn-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
body[data-layout="magazine-grid"] .grid-cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
body[data-layout="story-band"] .hero { border-radius: 0 0 48px 48px; }
@media (max-width: 720px) {
  .sn-header { flex-direction: column; align-items: flex-start; }
}
