/*
Theme Name: Pablo · GeneratePress
Author: Pablo Rodríguez Cruz
Description: Web personal y cuaderno de proyectos. Tema hijo de GeneratePress.
Template: generatepress
Version: 1.0.4
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: pablo-generatepress
*/

:root { --paper: #faf9f6; --ink: #20382e; --muted: #59665e; --green: #25634d; --sage: #edf2e7; --contrast: var(--ink); --contrast-2: var(--muted); --accent: var(--green); --base-2: var(--paper); --base-3: #fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { background: var(--paper); color: var(--ink); font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { color: #173c2d; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #a65128; outline-offset: 5px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.045em; }
h1 { font-size: clamp(38px, 4.7vw, 62px); line-height: 1.12; }
h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.2; }
h3 { font-size: 25px; line-height: 1.3; }
.grid-container { max-width: 1180px; }
.site-header { background: var(--paper); }
.inside-header { padding: 30px 0; gap: 28px; }
.main-title { font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -.035em; }
.main-title a, .main-title a:hover { color: var(--ink); display: flex; align-items: center; gap: 12px; }
.main-title a::before { content: ""; display: block; flex: 0 0 43px; height: 43px; background: url("assets/pablo-symbol-v1.svg") center / contain no-repeat; }
.main-navigation, .main-navigation ul ul { background: var(--paper); }
.main-navigation .main-nav ul li a { color: var(--muted); font-size: 14px; font-weight: 550; padding: 0 18px; line-height: 44px; border-radius: 24px; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li:focus-within > a, .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--green); background: #e8eee2; }
.site-content { padding: 0; }
.separate-containers .site-main { margin: 0; }
.separate-containers .inside-article, .separate-containers .page-header { background: transparent; padding: 0; }
.site-main { padding: 36px 0 80px; }
body.home.page .site-main { padding-top: 0; }
.page .entry-content { margin-top: 30px; }
.home.page .entry-content { margin-top: 0; }
.entry-content > p, .entry-content > ul, .entry-content > h2 { max-width: 760px; }
.entry-content > h2 { margin-top: 44px; }
.entry-content > p { margin-bottom: 24px; }
.entry-content .wp-block-group, .entry-content .wp-block-group__inner-container { max-width: none; }
.entry-content .wp-block-group__inner-container { padding: 0; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .13em; line-height: 1.7; text-transform: uppercase; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px; margin-bottom: 70px; border-radius: 32px; background: #edf2e6; }
.hero::after { content: ""; position: absolute; z-index: -1; right: 5px; top: 15%; width: 45%; height: 74%; background: url("assets/hero.svg") center / contain no-repeat; }
.hero > *, .hero > .wp-block-group__inner-container > * { max-width: 58%; }
.hero h1 { font-size: clamp(46px, 5.7vw, 74px); margin: 23px 0; line-height: 1.04; font-weight: 550; }
.hero h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--green); }
.hero .hero-intro { max-width: 50%; font-size: 17px; color: #4e6255; line-height: 1.8; margin-bottom: 28px; }
.wp-block-buttons { gap: 12px; align-items: center; }
.entry-content > .wp-block-buttons { margin-block: 28px; }
.entry-content .wp-block-button .wp-block-button__link, a.button, button, input[type="submit"] { background: var(--green); color: #fff; border-radius: 30px; font-size: 14px; font-weight: 600; padding: 13px 23px; text-decoration: none; }
.entry-content .wp-block-button .wp-block-button__link:hover, a.button:hover, input[type="submit"]:hover { background: #194a38; color: #fff; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--green); border: 1px solid #a7b9a7; padding: 12px 22px; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #e0e9d8; }
.section-heading { margin: 0 0 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading p { color: var(--muted); font-size: 14px; }
.section-heading a { text-decoration: none; }
.project-grid, .project-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-grid:has(> .wp-block-group__inner-container) { display: block; }
.project-grid { margin-bottom: 72px; }
.project-card { min-width: 0; margin: 0; padding: 14px 14px 28px; background: #fff; border-radius: 25px; box-shadow: 0 8px 32px #20382e06; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px #20382e0e; }
.project-card .wp-block-image { margin: 0 0 24px; }
.project-card .wp-block-image a { display: block; }
.project-card .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 920 / 480; border-radius: 16px; object-fit: cover; }
.project-card h3 { margin: 10px 14px; font-size: 27px; }
.project-card h3 a { color: var(--ink); text-decoration: none; }
.project-card p { margin: 10px 14px 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.project-card .card-tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.journal { margin-bottom: 70px; }
.journal .wp-block-post-template { margin: 0; }
.journal .wp-block-post { padding: 34px 40px; background: #fff; border-radius: 24px; }
.journal .wp-block-post-title { font-size: 30px; margin: 14px 0; }
.journal .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.journal .wp-block-post-date, .journal .wp-block-post-terms { color: var(--muted); font-size: 12px; }
.journal .wp-block-post-excerpt { max-width: 750px; color: var(--muted); }
.journal .wp-block-post-excerpt__more-link { font-size: 14px; font-weight: 600; }
.about-strip { padding: 45px 50px; background: #e9eee3; border-radius: 26px; }
.about-strip h2 { margin: 15px 0; }
.about-strip p { max-width: 760px; margin-bottom: 18px; }
.about-strip p:last-child { margin-bottom: 0; }
.about-strip a { font-weight: 600; }
.project-status { display: inline-block; padding: 6px 14px; border-radius: 20px; background: var(--sage); color: var(--green); font-size: 12px; }
.project-cover { max-width: 920px; margin: 30px 0 38px; }
.project-cover img { display: block; width: 100%; height: auto; border-radius: 24px; }
.project-note { padding: 22px 26px; border-radius: 16px; background: var(--sage); color: #415847; }
.page:not(.home):not(.projects-index) .site-main { max-width: 920px; margin-inline: auto; }
.journal-heading { max-width: 760px; padding: 12px 0 5px; }
.journal-heading h1 { margin: 20px 0; }
.journal-heading > p:last-child { color: var(--muted); font-size: 18px; max-width: 630px; }
.category-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0 38px; }
.category-links a { padding: 8px 17px; background: #eeeee8; border-radius: 24px; font-size: 13px; color: #4c5b50; text-decoration: none; }
.category-links a:hover, .category-links a[aria-current] { background: var(--green); color: #fff; }
.blog .site-main > article, .category .site-main > article { background: #fff; border-radius: 26px; overflow: hidden; margin: 0 0 28px; }
.blog .inside-article, .category .inside-article { display: grid; grid-template-columns: 40% 1fr; column-gap: 42px; padding: 26px; }
.blog .inside-article:not(:has(.journal-cover)), .category .inside-article:not(:has(.journal-cover)) { display: block; padding: 35px; }
.blog .journal-cover, .category .journal-cover { grid-column: 1; grid-row: 1 / span 5; align-self: stretch; }
.journal-cover img { display: block; width: 100%; height: 100%; min-height: 245px; object-fit: cover; border-radius: 18px; }
.blog .entry-header, .category .entry-header { grid-column: 2; padding-top: 16px; }
.blog .entry-title, .category .entry-title { font-size: clamp(25px, 3vw, 35px); line-height: 1.2; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-meta { font-size: 12px; color: var(--muted); margin-top: 13px; }
.blog .entry-summary, .category .entry-summary { grid-column: 2; color: var(--muted); font-size: 16px; margin-top: 18px; }
.entry-summary p { margin-bottom: 12px; }
.read-story { grid-column: 2; font-size: 14px; margin: 8px 0; font-weight: 650; }
.read-story a { text-decoration: none; }
.blog footer.entry-meta, .category footer.entry-meta { grid-column: 2; margin: 5px 0 10px; }
.single .site-main { max-width: 800px; margin-inline: auto; padding-top: 50px; }
.single .entry-title { font-size: clamp(37px, 5vw, 58px); }
.single .entry-content { margin-top: 38px; font-size: 18px; line-height: 1.9; }
.single .entry-content h2 { margin-top: 42px; }
.empty-state, .separate-containers .empty-state { display: block; padding: 42px; background: #fff; border-radius: 24px; max-width: 850px; }
.empty-state h2 { font-size: 30px; }
.empty-state p { max-width: 620px; color: var(--muted); }
.empty-state p:last-child { margin: 22px 0 0; }
.not-found { padding: 65px 0 90px; min-height: 60vh; max-width: 750px; }
.not-found p { max-width: 580px; }
.not-found .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 22px; }
.site-info { background: #e9eee3; color: #4f6255; padding: 38px 0; }
.inside-site-info { padding: 0; }
.copyright-bar { display: flex; justify-content: space-between; gap: 35px; width: 100%; text-align: left; font-size: 13px; }
.footer-signature { display: flex; flex-direction: column; gap: 6px; }
.footer-signature strong { color: var(--ink); font-size: 18px; letter-spacing: -.025em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; max-width: 330px; }
.site-info .footer-links a { color: var(--green); text-decoration: none; }
.footer-links span { width: 100%; text-align: right; font-size: 11px; }
@media (max-width: 1250px) { body > .site, .inside-header, .inside-site-info { margin-inline: 32px; } }
@media (max-width: 900px) {
  .hero { padding: 42px; }
  .hero::after { width: 40%; opacity: .9; }
  .hero > *, .hero > .wp-block-group__inner-container > * { max-width: 65%; }
  .hero .hero-intro { max-width: 60%; }
  .main-navigation .main-nav ul li a { padding-inline: 12px; }
  .blog .inside-article, .category .inside-article { column-gap: 25px; }
}
@media (max-width: 768px) {
  body > .site, .inside-header, .inside-site-info { margin-inline: 20px; }
  .inside-header { padding-block: 22px; gap: 15px; }
  .main-title { font-size: 16px; }
  .main-title a { gap: 10px; }
  .main-title a::before { flex-basis: 36px; height: 36px; }
  .main-navigation .menu-toggle { padding: 10px; border-radius: 12px; color: var(--ink); background: var(--sage); line-height: 24px; }
  .main-navigation.toggled .main-nav > ul { padding: 14px 0; }
  .main-navigation .main-nav ul li a { font-size: 16px; padding-inline: 18px; }
  .site-main { padding-top: 25px; padding-bottom: 50px; }
  .hero { padding: 33px 26px 230px; border-radius: 24px; margin-bottom: 44px; }
  .hero > *, .hero > .wp-block-group__inner-container > *, .hero .hero-intro { max-width: 100%; }
  .hero::after { width: 280px; height: 220px; right: calc(50% - 140px); top: auto; bottom: 8px; }
  .hero h1 { font-size: clamp(43px, 9.7vw, 65px); margin-block: 20px; }
  .hero .hero-intro { font-size: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: .09em; }
  .hero .wp-block-buttons { gap: 9px; }
  .entry-content .wp-block-button .wp-block-button__link { padding: 12px 18px; font-size: 13px; }
  .entry-content .wp-block-button.is-style-outline .wp-block-button__link { padding: 11px 17px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .project-grid, .project-grid > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 22px; }
  .project-grid, .journal { margin-bottom: 44px; }
  .project-card { padding: 10px 10px 24px; border-radius: 22px; }
  .project-card h3 { font-size: 26px; }
  .journal .wp-block-post { padding: 26px; }
  .journal .wp-block-post-title { font-size: 27px; }
  .about-strip { padding: 29px 26px; }
  .project-cover img { border-radius: 18px; }
  .journal-heading { padding-top: 5px; }
  .journal-heading > p:last-child { font-size: 16px; }
  .category-links { gap: 8px; margin-bottom: 28px; }
  .category-links a { padding: 8px 13px; font-size: 12px; }
  .blog .inside-article, .category .inside-article { display: block; padding: 16px 16px 25px; }
  .journal-cover img { min-height: 0; aspect-ratio: 920 / 480; height: auto; }
  .blog .entry-header, .category .entry-header { padding: 23px 9px 0; }
  .blog .entry-summary, .category .entry-summary, .read-story, .blog footer.entry-meta, .category footer.entry-meta { margin-inline: 9px; }
  .single .site-main { padding-top: 25px; }
  .single .entry-content { font-size: 17px; }
  .empty-state, .separate-containers .empty-state { padding: 28px; }
  .not-found { padding-top: 30px; }
  .copyright-bar { flex-direction: column; gap: 22px; }
  .footer-links { justify-content: flex-start; }
  .footer-links span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .project-card { transition: none; } }
