/* ==========================================================================
   L'Atelier Cuir - Editorial Magazine Stylesheet
   Design: Monocle / Cereal / Kinfolk editorial direction
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #6B2D3E;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4a1f2b;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #1A1A2E;
  line-height: 1.25;
  font-weight: 700;
}

::selection {
  background: rgba(107, 45, 62, 0.15);
  color: #1A1A2E;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #6B2D3E;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: #6B2D3E;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1A1A2E;
  padding: 4px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #6B2D3E;
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #6B2D3E;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #1A1A2E;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #F8F5F2;
}

.hero--home {
  min-height: 520px;
  background-size: cover;
  background-position: center;
}

.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.35) 0%,
    rgba(26, 26, 46, 0.55) 100%
  );
}

.hero--article {
  min-height: 280px;
  background: #F8F5F2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6B2D3E;
  margin-bottom: 16px;
}

.hero--home .hero-tag {
  color: rgba(255, 255, 255, 0.85);
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.hero--home .hero-title {
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #888;
  max-width: 560px;
  margin: 0 auto;
}

.hero--home .hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Article Grid (Index / Category)
   -------------------------------------------------------------------------- */
.articles-section {
  padding: 72px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  border: 1px solid rgba(107, 45, 62, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
  box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  transform: translateY(-2px);
}

.article-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.article-card-body {
  padding: 24px;
}

.article-card-date {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-card-title a {
  color: #1A1A2E;
}

.article-card-title a:hover {
  color: #6B2D3E;
}

.article-card-excerpt {
  font-size: 0.92rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B2D3E;
}

.article-card-link:hover {
  color: #4a1f2b;
}

/* --------------------------------------------------------------------------
   Article Content (Single Article Page)
   -------------------------------------------------------------------------- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.article-content p {
  margin-bottom: 1.5em;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.65rem;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.article-content blockquote {
  border-left: 3px solid #6B2D3E;
  background: #F8F5F2;
  padding: 20px 28px;
  margin: 2em 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #1A1A2E;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.article-content figure {
  margin: 2.5em 0;
}

.article-content figcaption {
  font-size: 0.82rem;
  color: #888;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.article-img {
  width: 100%;
  border-radius: 12px;
  margin: 2em 0;
}

/* Image layouts within articles */
.img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2.5em 0;
}

.img-duo img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.img-full {
  margin: 2.5em -60px;
}

.img-full img {
  width: 100%;
  border-radius: 12px;
}

.img-full figcaption {
  font-size: 0.82rem;
  color: #888;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Author Card
   -------------------------------------------------------------------------- */
.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8F5F2;
  border-radius: 12px;
  padding: 28px;
  margin: 3em 0;
}

.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 4px;
}

.author-card-bio {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Related Articles
   -------------------------------------------------------------------------- */
.related {
  padding: 56px 0;
  border-top: 1px solid rgba(107, 45, 62, 0.08);
}

.related-title {
  font-size: 1.35rem;
  margin-bottom: 28px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.related-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.related-item img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-item-title a {
  color: #1A1A2E;
}

.related-item-title a:hover {
  color: #6B2D3E;
}

/* --------------------------------------------------------------------------
   Quote / Featured Section
   -------------------------------------------------------------------------- */
.quote-section {
  background: #F8F5F2;
  padding: 72px 24px;
  border-top: 1px solid rgba(26, 26, 46, 0.04);
  border-bottom: 1px solid rgba(26, 26, 46, 0.04);
}

.quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.5rem;
  color: #6B2D3E;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.3;
}

.quote-inner blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  font-style: italic;
  color: #1A1A2E;
  line-height: 1.6;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quote-line {
  width: 40px;
  height: 1.5px;
  background: #6B2D3E;
  margin-bottom: 16px;
  opacity: 0.35;
}

.quote-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A2E;
}

.quote-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #888;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  background: #FFFFFF;
  padding: 64px 24px;
  text-align: center;
}

.newsletter-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.newsletter-text {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid rgba(26, 26, 46, 0.12);
  border-radius: 8px;
  background: #FFFFFF;
  color: #1A1A2E;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: #aaa;
}

.newsletter-form input[type="email"]:focus {
  border-color: #6B2D3E;
}

.newsletter-form button {
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #6B2D3E;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #4a1f2b;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0 0 16px 16px;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 72px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-value h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.about-value p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Responsive - Tablet (768-1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .img-full {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile (<768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(26, 26, 46, 0.04);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  /* Hero mobile */
  .hero--home {
    min-height: 360px;
  }

  .hero--article {
    min-height: 200px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-content {
    padding: 40px 20px;
  }

  /* Grid mobile */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-card img {
    height: 200px;
  }

  /* Content mobile */
  .article-content {
    padding: 32px 20px 56px;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .img-duo {
    grid-template-columns: 1fr;
  }

  .img-full {
    margin-left: 0;
    margin-right: 0;
  }

  /* Author card */
  .author-card {
    flex-direction: column;
    text-align: center;
  }

  /* Related */
  .related-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  /* Quote */
  .quote-section {
    padding: 48px 20px;
  }

  .quote-mark {
    font-size: 3rem;
  }

  .quote-inner blockquote {
    font-size: 1.2rem;
  }

  /* Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  /* About */
  .about-values {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px 56px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
