/* ============================================
   LUZ DIÁRIA — Portal de Devocional
   Design Editorial Contemplativo
   ============================================ */

:root {
  --bg-primary: #F5F0E8;
  --bg-secondary: #FAF7F1;
  --bg-deep: #EBE3D4;
  --ink-deep: #2A2419;
  --ink-soft: #5B4F3F;
  --ink-mute: #8A7B66;
  --gold: #B8956A;
  --gold-soft: #D4B98C;
  --sage: #5A6B52;
  --sage-deep: #3D4A37;
  --line: #D4C9B5;
  --line-soft: #E8DECC;
  --accent: #8B3A2A;

  --serif-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-body: 'Lora', 'Source Serif Pro', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --measure: 65ch;
  --maxw: 1180px;
  --maxw-content: 720px;
}

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

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

body {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-deep);
  background: var(--bg-primary);
  background-image:
    radial-gradient(at 20% 10%, rgba(184, 149, 106, 0.04) 0%, transparent 50%),
    radial-gradient(at 80% 90%, rgba(90, 107, 82, 0.03) 0%, transparent 50%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink-deep);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--gold); }

/* ============================================
   HEADER / NAVEGAÇÃO
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-secondary);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}

.brand__mark {
  font-family: var(--serif-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  line-height: 1;
}

.brand__mark em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.brand__tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav .today-date {
  font-family: var(--serif-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================
   HERO (HOME)
   ============================================ */

.hero {
  position: relative;
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--bg-secondary);
}

.hero__text {
  padding: 90px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__kicker::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--serif-display);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: italic;
  color: var(--sage-deep);
}

.hero__lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-deep);
  padding: 18px 0;
  border-top: 1px solid var(--ink-deep);
  border-bottom: 1px solid var(--ink-deep);
  align-self: flex-start;
  transition: all .25s ease;
}

.hero__cta:hover {
  color: var(--gold);
  border-color: var(--gold);
  padding-left: 8px;
}

.hero__cta::after {
  content: '→';
  font-size: 16px;
  transition: transform .25s ease;
}

.hero__cta:hover::after {
  transform: translateX(6px);
}

.hero__image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 580px;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,36,25,0.10) 0%, rgba(42,36,25,0.02) 50%);
}

.hero__caption {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  background: rgba(42,36,25,0.55);
  padding: 10px 18px;
  border-radius: 2px;
  max-width: 280px;
  text-align: right;
}

/* ============================================
   DEVOCIONAL DESTAQUE (HOME)
   ============================================ */

.devotional-feature {
  padding: 90px 32px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--line);
}

.devotional-feature__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-label::before, .section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.devotional-feature__date {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.devotional-feature__title {
  font-family: var(--serif-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-deep);
  margin-bottom: 36px;
  letter-spacing: -0.015em;
}

.verse {
  position: relative;
  padding: 32px 24px;
  margin: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.verse__text {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--ink-deep);
  margin-bottom: 14px;
}

.verse__ref {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.devotional-feature__body {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: left;
}

.devotional-feature__body p {
  margin-bottom: 22px;
}

.devotional-feature__signature {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin-top: 40px;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

/* ============================================
   GRID DE ARTIGOS
   ============================================ */

.articles {
  padding: 90px 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--line);
}

.articles__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.articles__header {
  text-align: center;
  margin-bottom: 64px;
}

.articles__heading {
  font-family: var(--serif-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--ink-deep);
  margin-top: 14px;
  letter-spacing: -0.015em;
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px 40px;
}

.article-card {
  display: block;
  text-decoration: none;
  group: card;
}

.article-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg-deep);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card__image img {
  transform: scale(1.04);
}

.article-card__category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.article-card__title {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-deep);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color .2s ease;
}

.article-card:hover .article-card__title {
  color: var(--gold);
}

.article-card__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================
   PAPEL DE PAREDE DO DIA
   ============================================ */

.wallpapers {
  padding: 90px 32px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--line);
}

.wallpapers__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.wallpapers__heading {
  font-family: var(--serif-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--ink-deep);
  margin: 14px 0 12px;
}

.wallpapers__sub {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-mute);
  margin-bottom: 56px;
  font-size: 17px;
}

.wallpapers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.wallpaper-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}

.wallpaper-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.wallpaper-item:hover img {
  transform: scale(1.05);
}

.wallpaper-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,36,25,0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s ease;
}

.wallpaper-item:hover .wallpaper-item__overlay {
  opacity: 1;
}

.wallpaper-item__overlay span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================
   ARTIGO INDIVIDUAL
   ============================================ */

.article-hero {
  padding: 80px 32px 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.article-hero__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
}

.article-hero__category {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.article-hero__title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-deep);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.article-hero__title em {
  font-style: italic;
  color: var(--sage-deep);
}

.article-hero__meta {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
}

.article-hero__meta span {
  margin: 0 8px;
  color: var(--line);
}

.article-body {
  padding: 70px 32px 100px;
  background: var(--bg-primary);
}

.article-body__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
}

.article-body__lead {
  font-family: var(--serif-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-soft);
}

.article-body__inner h2 {
  font-family: var(--serif-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-deep);
  margin: 56px 0 22px;
  letter-spacing: -0.015em;
}

.article-body__inner h3 {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-deep);
  margin: 40px 0 16px;
}

.article-body__inner p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink-deep);
}

.article-body__inner p:first-of-type::first-letter {
  font-family: var(--serif-display);
  font-size: 72px;
  line-height: 0.85;
  font-weight: 500;
  float: left;
  margin: 8px 12px 0 0;
  color: var(--gold);
}

.article-body__inner blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 2px solid var(--gold);
  background: var(--bg-secondary);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-deep);
}

.article-body__inner blockquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

.article-body__inner ul, .article-body__inner ol {
  margin: 22px 0 22px 24px;
}

.article-body__inner li {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.7;
}

.article-body__inner strong {
  color: var(--ink-deep);
  font-weight: 600;
}

.article-body__inner em {
  font-style: italic;
}

.article-prayer {
  margin: 56px 0;
  padding: 40px 36px;
  background: var(--bg-secondary);
  border-top: 2px solid var(--gold-soft);
  border-bottom: 2px solid var(--gold-soft);
  text-align: center;
}

.article-prayer__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.article-prayer__text {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-deep);
}

.article-prayer__text::first-letter {
  font-size: inherit !important;
  float: none !important;
  color: inherit !important;
  margin: 0 !important;
}

/* ============================================
   PÁGINA INTERIOR GENÉRICA (sobre, contato)
   ============================================ */

.page {
  padding: 80px 32px 100px;
  min-height: 60vh;
}

.page__inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
}

.page__title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 500;
  color: var(--ink-deep);
  margin-bottom: 36px;
  letter-spacing: -0.015em;
  text-align: center;
}

.page p {
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.78;
  color: var(--ink-deep);
}

.page h2 {
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink-deep);
  margin: 48px 0 18px;
}

.page strong { font-weight: 600; }

.page ul, .page ol { margin: 16px 0 22px 24px; }
.page li { margin-bottom: 8px; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--ink-deep);
  color: var(--bg-deep);
  padding: 64px 32px 32px;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer__brand {
  font-family: var(--serif-display);
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
}

.site-footer__brand em {
  color: var(--gold-soft);
  font-style: italic;
}

.site-footer__about {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 360px;
}

.site-footer__col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-family: var(--serif-body);
}
.site-footer__col a:hover { color: var(--gold-soft); }

.site-footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.site-footer__disclaimer {
  max-width: var(--maxw-content);
  margin: 0 auto 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  text-align: center;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__text {
    padding: 60px 28px 40px;
    order: 2;
  }
  .hero__image {
    min-height: 320px;
    order: 1;
  }
  .site-header__inner {
    padding: 20px 24px;
  }
  .site-nav { gap: 20px; }
  .site-nav .today-date { display: none; }
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .brand { width: 100%; justify-content: center; }
  .brand__tag { display: none; }

  .devotional-feature, .articles, .wallpapers, .article-body {
    padding: 60px 24px;
  }
  .article-hero { padding: 60px 24px 48px; }
  .article-body__inner p:first-of-type::first-letter {
    font-size: 56px;
  }
  .articles__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__text { padding: 48px 24px 36px; }
  .verse { padding: 24px 0; }
  .article-body__inner blockquote {
    padding: 20px 22px;
    font-size: 18px;
  }
  .article-prayer {
    padding: 32px 22px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================
   UTILITY
   ============================================ */

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--line);
}

.divider-ornament span {
  font-family: var(--serif-display);
  color: var(--gold);
  font-size: 20px;
}
