/*
Theme Name: Digital Shelves
Theme URI: #
Author: Diego N. B. Ferreira
Author URI: #
Description: A clean, minimal WordPress theme for a practical blog about career, money and daily life for men 30+. Inspired by AR5 aesthetic.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: digitalShelves
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #F8F8F6;
  color: #1A1A1A;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1D6A72;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #145257;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  color: #1A1A1A;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1.25rem;
  color: #1A1A1A;
}

blockquote {
  border-left: 4px solid #1D6A72;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #eef6f7;
  color: #333;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

ul, ol {
  margin: 0 0 1.25rem 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* =============================================
   LAYOUT
============================================= */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   HEADER & NAVIGATION
============================================= */
.site-header {
  background-color: #F8F8F6;
  border-bottom: 1px solid #E4E4E4;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.site-branding a:hover {
  color: #1D6A72;
}

.site-branding .tagline {
  font-size: 0.78rem;
  color: #6B6B6B;
  margin-top: 0.1rem;
  font-family: 'Georgia', serif;
  font-style: italic;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  font-size: 0.88rem;
  color: #1A1A1A;
  font-family: 'Georgia', serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav ul li a:hover {
  color: #1D6A72;
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1A1A1A;
  transition: all 0.3s ease;
}

/* =============================================
   HERO SECTION (Home)
============================================= */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid #E4E4E4;
}

.hero__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1D6A72;
  font-family: 'Georgia', serif;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 2.8rem;
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 1.25rem;
  color: #1A1A1A;
}

.hero__description {
  font-size: 1.1rem;
  color: #6B6B6B;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn--primary {
  background-color: #1D6A72;
  color: #fff;
  border: 2px solid #1D6A72;
}

.btn--primary:hover {
  background-color: #145257;
  border-color: #145257;
  color: #fff;
  text-decoration: none;
}

.btn--outline {
  background-color: transparent;
  color: #1D6A72;
  border: 2px solid #1D6A72;
}

.btn--outline:hover {
  background-color: #1D6A72;
  color: #fff;
  text-decoration: none;
}

/* =============================================
   SECTION TITLES
============================================= */
.section {
  padding: 4rem 0;
}

.section--gray {
  background-color: #F0F0EE;
  padding: 4rem 0;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #E4E4E4;
  padding-bottom: 1rem;
}

.section__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1A1A1A;
}

.section__link {
  font-size: 0.82rem;
  color: #1D6A72;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   ARTICLE CARDS (Grid)
============================================= */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  border-bottom: 1px solid #E4E4E4;
  padding-bottom: 1.5rem;
}

.article-card__category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D6A72;
  margin-bottom: 0.5rem;
  font-family: 'Georgia', serif;
}

.article-card__title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.article-card__title a {
  color: #1A1A1A;
  text-decoration: none;
}

.article-card__title a:hover {
  color: #1D6A72;
}

.article-card__excerpt {
  font-size: 0.88rem;
  color: #6B6B6B;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.article-card__meta {
  font-size: 0.75rem;
  color: #6B6B6B;
}

/* Featured article (large card) */
.article-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid #E4E4E4;
  padding-bottom: 2rem;
  margin-bottom: 1rem;
}

.article-card--featured .article-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.article-card--featured .article-card__title {
  font-size: 1.7rem;
}

/* =============================================
   RESOURCES / AFFILIATE SECTION
============================================= */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.resource-card {
  background: #fff;
  border: 1px solid #E4E4E4;
  border-radius: 6px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.resource-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.resource-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D6A72;
  margin-bottom: 0.5rem;
}

.resource-card__title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.resource-card__description {
  font-size: 0.85rem;
  color: #6B6B6B;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.resource-card__link {
  font-size: 0.82rem;
  color: #1D6A72;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resource-card__link:hover {
  color: #145257;
  text-decoration: underline;
}

/* =============================================
   NEWSLETTER SECTION
============================================= */
.newsletter {
  background-color: #1D6A72;
  padding: 3.5rem 0;
  text-align: center;
}

.newsletter__title {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter__description {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.newsletter__form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Georgia', serif;
  outline: none;
  background: #fff;
  color: #1A1A1A;
}

.newsletter__form button {
  padding: 0.75rem 1.5rem;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.88rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter__form button:hover {
  background: #333;
}

/* =============================================
   SINGLE ARTICLE PAGE
============================================= */
.article-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid #E4E4E4;
  margin-bottom: 2.5rem;
}

.article-header__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D6A72;
  margin-bottom: 0.75rem;
}

.article-header__title {
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-header__meta {
  font-size: 0.8rem;
  color: #6B6B6B;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1A1A1A;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* Affiliate box inside article */
.affiliate-box {
  background: #eef6f7;
  border: 1px solid #b8dde1;
  border-left: 4px solid #1D6A72;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.affiliate-box__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D6A72;
  margin-bottom: 0.5rem;
}

.affiliate-box__title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #1A1A1A;
}

.affiliate-box__description {
  font-size: 0.88rem;
  color: #6B6B6B;
  margin-bottom: 1rem;
}

/* =============================================
   ABOUT PAGE
============================================= */
.about-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid #E4E4E4;
  margin-bottom: 2.5rem;
}

.about-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  border-top: 1px solid #E4E4E4;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A1A1A;
}

.site-footer__tagline {
  font-size: 0.78rem;
  color: #6B6B6B;
  font-style: italic;
  margin-top: 0.2rem;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  font-size: 0.8rem;
  color: #6B6B6B;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer__links a:hover {
  color: #1D6A72;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: #6B6B6B;
  text-align: right;
}

/* =============================================
   ARCHIVE / CATEGORY PAGE
============================================= */
.archive-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid #E4E4E4;
  margin-bottom: 2.5rem;
}

.archive-header__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D6A72;
  margin-bottom: 0.5rem;
}

.archive-header__title {
  font-size: 2rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-list-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E4E4E4;
}

.article-list-item__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.article-list-item__category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D6A72;
  margin-bottom: 0.4rem;
}

.article-list-item__title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.article-list-item__title a {
  color: #1A1A1A;
  text-decoration: none;
}

.article-list-item__title a:hover {
  color: #1D6A72;
}

.article-list-item__excerpt {
  font-size: 0.88rem;
  color: #6B6B6B;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.article-list-item__meta {
  font-size: 0.75rem;
  color: #6B6B6B;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card--featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .site-header .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .menu-toggle {
    display: flex;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .article-list-item {
    grid-template-columns: 1fr;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .site-footer__copy {
    text-align: center;
  }
}