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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition-normal), color var(--transition-normal);
}

/* Theme Switcher — sits inside the site nav */
.theme-switcher {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.theme-btn {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.theme-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.nav-links-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-links-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  margin-bottom: 2rem;
}

.site-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
}

.hero-image {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  display: block;
}

/* Content */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.story {
  margin-bottom: 3rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.story h2 {
  margin-bottom: 1rem;
}

.story p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast);
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Quote Block */
.quote-block {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.quote-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.quote-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.quote-block p:last-child {
  margin-bottom: 0;
}

/* Image Block */
.image-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.image-block.reverse {
  grid-template-columns: 1fr 200px;
}

.image-block img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-block .text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.image-block .text p {
  color: var(--text-secondary);
}

/* Merch Section - Same size images */
.merch {
  margin: 3rem 0;
}

.merch h2 {
  margin-bottom: 0.5rem;
}

.merch > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.merch-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
}

.merch-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Team Section */
.team-section {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.team-section h2 {
  margin-bottom: 0.5rem;
}

.team-section > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.team-photos img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Outro */
.outro {
  text-align: center;
  padding: 2rem 0;
}

/* Team Portraits - At the very end */
.team-portraits {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.portrait {
  text-align: center;
}

.portrait img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.portrait span {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.portrait .name {
  font-weight: 700;
  font-size: 1.2rem;
}

.portrait .role {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Blog Section - Simple list */
.blog-section {
  padding: 2rem 0;
  margin: 1rem 0;
}

.blog-section h2 {
  margin-bottom: 0.25rem;
}

.blog-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.blog-list a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.blog-list a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.blog-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.blog-link:hover {
  text-decoration: underline;
}

/* Links Section */
.links-section {
  padding: 2rem 0;
}

.links-section h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.links-grid a {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.links-grid a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer .blog-link {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0.75rem;
}

.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.footer .social-icon:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.footer .social-icon svg,
.footer .social-icon img {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.footer .social-icon img {
  border-radius: 50%;
}

/* Gallery with Captions */
.gallery-grid.captions {
  gap: 1.5rem;
}

.gallery-grid.captions figure{
  margin: 0;
}

.gallery-grid.captions figcaption{
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Story Sections */
.story{
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.story h2,
.story h3,
.story h4,
.story h6{
  margin-bottom: 1rem;
}

.story p{
  margin-bottom: 1rem;
}

.story .tight-lines{
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-top: 2rem;
}

/* Image Blocks */
.image-block{
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.image-block img{
  width: 100%;
  max-width: 250px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-block .text h3{
  margin-bottom: 0.5rem;
}

.image-block.reverse{
  grid-template-columns: 1fr 250px;
}

.image-block.reverse .text{
  order: -1;
}

/* Outro Section */
.outro{
  text-align: center;
  padding: 3rem 1rem;
}

/* Landmark */
.landmark{
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.landmark img{
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.landmark .caption{
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
}

/* Links Page */
.page-header{
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.page-header h1{
  font-size: 2rem;
  margin-top: 1rem;
}

.back-link{
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover{
  text-decoration: underline;
}

.links-page{
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.link-category{
  margin-bottom: 3rem;
}

.link-category h2{
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.link-list{
  list-style: none;
  columns: 2;
  column-gap: 2rem;
}

.link-list li{
  margin-bottom: 0.5rem;
}

.link-list a{
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

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

@media (max-width: 600px){
  .link-list{
    columns: 1;
  }
}

/* ===== Site navigation (persistent top bar) ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.site-nav .brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-nav .pages {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav .pages a {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.site-nav .pages a:hover {
  color: var(--accent);
  background: var(--bg-secondary);
}

.site-nav .pages a.active {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .site-nav { padding: 0.5rem 0.75rem; }
  .site-nav .brand { font-size: 0.95rem; }
  .site-nav .pages a { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
}

/* ===== Homepage teaser cards ===== */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.teaser-card:hover {
  transform: translateY(-3px);
}

.teaser-card .kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.teaser-card h3 { font-size: 1.15rem; }

.teaser-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.teaser-card .go {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Blog & feeds pages ===== */
.list-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.list-page .item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.list-page .item .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.list-page .item a.title {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.list-page .item a.title:hover { color: var(--accent); }

.list-page .item p.summary {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.list-page .site-group {
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
}

.list-page .status {
  color: var(--text-muted);
  padding: 2rem 0;
  text-align: center;
}

/* ===== Printables page ===== */
.model-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.model-card .photo img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.model-card h2 { margin-bottom: 0.5rem; }

.model-card p { color: var(--text-secondary); margin-bottom: 0.75rem; }

.model-card .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-fast);
}

.btn:hover { transform: translateY(-2px); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

@media (max-width: 700px) {
  .model-card { grid-template-columns: 1fr; }
}

/* Responsive */
/* Uniform heading sizes: bold, same scale as body text */
.story h2,
.story h3,
.story h4,
.story h6,
.image-block .text h2,
.image-block .text h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.image-block .text h2 {
  margin-bottom: 0.5rem;
}

/* Merch photos: natural aspect, no forced-height cropping */
.gallery-grid.merch img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 1.5rem;
  }
  
  .image-block,
  .image-block.reverse {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .image-block img {
    max-width: 250px;
    margin: 0 auto;
  }
  
  .merch-gallery {
    grid-template-columns: 1fr;
  }
  
  .team-portraits {
    flex-direction: column;
    gap: 2rem;
  }
  
  .top-nav {
    top: 10px;
    left: 10px;
  }
  
  .nav-links-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .theme-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
