/*
Theme Name: Lucy Santos GEO
Theme URI: https://lucysantos.eu
Author: Lucy Santos
Author URI: https://lucysantos.eu
Description: Tema WordPress premium que preserva integralmente a home Lucy Santos e acrescenta templates editoriais para páginas, artigos e integração com o Lucy Portfolio Manager.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lucy-santos-geo
License: Proprietary
*/

:root {
  --bg: #020817;
  --card: #071323;
  --text: #f3f7f8;
  --text-2: #9daab5;
  --accent: #14d9a5;
  --border: rgba(255,255,255,.1);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', Arial, sans-serif;
  --content-width: 820px;
  --wide-width: 1240px;
}

html { scroll-behavior: smooth; }
body:not(.lucy-preserved-home) {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:not(.lucy-preserved-home) *,
body:not(.lucy-preserved-home) *::before,
body:not(.lucy-preserved-home) *::after { box-sizing: border-box; }
body.admin-bar #navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar #navbar { top: 46px; } }

/* Generic navigation: the preserved home retains its original inline CSS. */
body:not(.lucy-preserved-home) #navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(2,8,23,.82), rgba(2,8,23,0));
  transition: background .3s, border-color .3s, padding .3s, backdrop-filter .3s;
}
body:not(.lucy-preserved-home) #navbar.scrolled {
  padding-block: .9rem;
  background: rgba(2,8,23,.78);
  border-color: var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
body:not(.lucy-preserved-home) .nav-logo { display: inline-flex; line-height: 0; }
body:not(.lucy-preserved-home) .nav-links { display: flex; align-items: center; gap: 2rem; padding: 0; margin: 0; list-style: none; }
body:not(.lucy-preserved-home) .nav-links a { color: var(--text-2); text-decoration: none; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
body:not(.lucy-preserved-home) .nav-links a:hover { color: var(--text); }
body:not(.lucy-preserved-home) .nav-cta { display: inline-flex; align-items: center; justify-content: center; color: var(--bg); background: var(--accent); padding: .82rem 1.25rem; text-decoration: none; border-radius: 2px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
body:not(.lucy-preserved-home) nav.scrolled .nav-hamburger { display: flex; }
body:not(.lucy-preserved-home) nav.scrolled .nav-links { display: none; }

/* Editorial system */
.lucy-shell { width: min(var(--wide-width), calc(100% - 8rem)); margin-inline: auto; }
.lucy-narrow { width: min(var(--content-width), calc(100% - 3rem)); margin-inline: auto; }
.lucy-kicker { display: inline-flex; align-items: center; gap: .7rem; color: var(--text-2); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; }
.lucy-kicker::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.lucy-reading-progress { position: fixed; z-index: 1001; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
body.admin-bar .lucy-reading-progress { top: 32px; }

.lucy-page-hero,
.lucy-article-hero,
.lucy-listing-hero {
  position: relative;
  overflow: hidden;
  padding: 12rem 0 5.5rem;
  border-bottom: 1px solid var(--border);
}
.lucy-page-hero::after,
.lucy-article-hero::after,
.lucy-listing-hero::after {
  content: '';
  position: absolute;
  width: 680px;
  height: 680px;
  right: -260px;
  bottom: -420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,217,165,.1), transparent 68%);
  pointer-events: none;
}
.lucy-page-hero h1,
.lucy-article-hero h1,
.lucy-listing-hero h1 {
  max-width: 1150px;
  margin: 1.8rem 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.lucy-page-hero__intro,
.lucy-article-hero__intro,
.lucy-listing-hero__intro {
  max-width: 800px;
  margin: 2.2rem 0 0;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.75;
}
.lucy-article-hero__meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; color: var(--text-2); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.lucy-article-hero__meta a { color: var(--accent); text-decoration: none; }

.lucy-featured-image { padding-top: 3rem; }
.lucy-featured-image img { display: block; width: 100%; max-height: 780px; object-fit: cover; border-radius: 3px; }

.lucy-page-layout,
.lucy-article-layout { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, var(--content-width)); justify-content: space-between; gap: 6rem; padding-top: 6rem; padding-bottom: 7rem; }
.lucy-page-aside,
.lucy-article-aside { position: sticky; top: 8rem; align-self: start; }
.lucy-aside-label { display: block; color: var(--accent); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.lucy-aside-rule { height: 1px; background: var(--border); margin-bottom: 1.25rem; }
.lucy-page-aside p,
.lucy-article-aside p { color: var(--text-2); font-size: .78rem; line-height: 1.7; }
.lucy-share { display: flex; flex-direction: column; gap: .65rem; }
.lucy-share a,
.lucy-share button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .75rem .85rem; color: var(--text-2); background: transparent; border: 1px solid var(--border); text-decoration: none; font: inherit; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.lucy-share a:hover,
.lucy-share button:hover { color: var(--accent); border-color: rgba(20,217,165,.35); }

.entry-content { color: var(--text-2); font-size: 1.03rem; line-height: 1.85; min-width: 0; }
.entry-content > * { max-width: var(--content-width); }
.entry-content > * + * { margin-top: 1.55rem; }
.entry-content > .alignwide { width: min(1080px, calc(100vw - 4rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--text); font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.entry-content h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 4rem; }
.entry-content h3 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); margin-top: 3rem; }
.entry-content h4 { font-size: 1.55rem; margin-top: 2.5rem; }
.entry-content p:first-child { font-size: 1.13em; color: #c9d2dc; }
.entry-content a { color: var(--accent); text-underline-offset: .2em; }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content img { max-width: 100%; height: auto; border-radius: 3px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { color: var(--text-2); font-size: .72rem; text-align: left; }
.entry-content blockquote { position: relative; margin: 3rem 0; padding: 1.8rem 0 1.8rem 2rem; border-left: 2px solid var(--accent); color: var(--text); font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.35rem); font-style: italic; line-height: 1.3; }
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .65rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.entry-content th,
.entry-content td { padding: .9rem 1rem; border: 1px solid var(--border); text-align: left; }
.entry-content th { color: var(--text); background: rgba(255,255,255,.04); }
.entry-content code { color: #b5ffe9; background: rgba(20,217,165,.08); padding: .15em .35em; border-radius: 2px; }
.entry-content pre { overflow: auto; padding: 1.3rem; background: #000915; border: 1px solid var(--border); }

.lucy-page-footer-note { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--text-2); font-size: .78rem; }
.lucy-author-card { display: grid; grid-template-columns: 86px 1fr; gap: 1.4rem; align-items: center; margin-top: 5rem; padding: 1.6rem; border: 1px solid var(--border); background: rgba(255,255,255,.025); }
.lucy-author-card__avatar img { display: block; border-radius: 50%; }
.lucy-author-card h2 { margin: 0 0 .4rem; color: var(--text); font-family: var(--display); font-size: 1.75rem; font-weight: 400; }
.lucy-author-card p { margin: 0; color: var(--text-2); font-size: .85rem; }

.lucy-related { padding: 6rem 0 8rem; border-top: 1px solid var(--border); }
.lucy-related__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.6rem; }
.lucy-related__head h2 { margin: .5rem 0 0; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 400; }
.lucy-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.lucy-post-card { overflow: hidden; border: 1px solid var(--border); background: rgba(255,255,255,.024); transition: transform .28s, border-color .28s; }
.lucy-post-card:hover { transform: translateY(-4px); border-color: rgba(20,217,165,.28); }
.lucy-post-card__image { display: block; aspect-ratio: 16/10; background: linear-gradient(135deg,#071323,#020817); overflow: hidden; }
.lucy-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.lucy-post-card:hover .lucy-post-card__image img { transform: scale(1.035); }
.lucy-post-card__body { padding: 1.35rem; }
.lucy-post-card__meta { color: var(--accent); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; }
.lucy-post-card h2,
.lucy-post-card h3 { margin: 0; font-family: var(--display); font-size: 1.85rem; font-weight: 400; line-height: 1.08; }
.lucy-post-card h2 a,
.lucy-post-card h3 a { color: var(--text); text-decoration: none; }
.lucy-post-card p { color: var(--text-2); font-size: .84rem; line-height: 1.65; }
.lucy-post-card__link { display: inline-flex; gap: .55rem; color: var(--text); text-decoration: none; font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lucy-post-card__link span { color: var(--accent); }

.lucy-listing { padding: 4rem 0 8rem; }
.lucy-listing .lucy-post-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.lucy-pagination { margin-top: 4rem; }
.lucy-pagination .nav-links { display: flex; justify-content: center; gap: .5rem; }
.lucy-pagination a,
.lucy-pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.lucy-pagination .current { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.lucy-empty { padding: 5rem; border: 1px solid var(--border); text-align: center; color: var(--text-2); }
.lucy-empty h1 { color: var(--text); font-family: var(--display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; }
.lucy-empty a { color: var(--accent); }

.wp-block-button__link { color: var(--bg)!important; background: var(--accent)!important; border-radius: 2px!important; font-size: .76rem!important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wp-block-separator { border-color: var(--border); }

.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .lucy-shell { width: min(100% - 5rem, var(--wide-width)); }
  .lucy-page-layout,
  .lucy-article-layout { gap: 3.5rem; }
  .lucy-post-grid,
  .lucy-listing .lucy-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  body:not(.lucy-preserved-home) #navbar { padding-inline: 1.5rem; }
  body:not(.lucy-preserved-home) .nav-links { display: none; }
  .lucy-page-layout,
  .lucy-article-layout { grid-template-columns: 1fr; }
  .lucy-page-aside,
  .lucy-article-aside { position: static; }
  .lucy-article-aside { display: none; }
}
@media (max-width: 700px) {
  .lucy-shell { width: calc(100% - 3rem); }
  .lucy-page-hero,
  .lucy-article-hero,
  .lucy-listing-hero { padding: 9rem 0 4rem; }
  .lucy-page-hero h1,
  .lucy-article-hero h1,
  .lucy-listing-hero h1 { font-size: clamp(3.2rem, 17vw, 5.6rem); }
  .lucy-page-layout,
  .lucy-article-layout { padding-top: 3.5rem; padding-bottom: 5rem; }
  .lucy-post-grid,
  .lucy-listing .lucy-post-grid { grid-template-columns: 1fr; }
  .lucy-related__head { align-items: start; flex-direction: column; }
  .entry-content > .alignwide,
  .entry-content > .alignfull { width: 100%; margin-left: 0; transform: none; }
  .lucy-author-card { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body:not(.lucy-preserved-home) #navbar { padding-inline: 1rem; }
  body:not(.lucy-preserved-home) .nav-logo img { height: 42px!important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; }
}
