/*
Theme Name: Angel Márquez Personal
Theme URI: https://angelmarquez.net/
Author: Angel Ivan Marquez Pimentel
Description: Tema personal de una sola página, en español y adaptable, con contenido editable desde Apariencia > Personalizar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angel-marquez-personal
*/

:root {
  color-scheme: light;
  --paper: #f5f2ea;
  --paper-deep: #eeeadf;
  --ink: #1b2825;
  --muted: #6f7770;
  --line: #d8d4c9;
  --accent: #b76143;
  --accent-dark: #914b35;
  --sage: #dce3d6;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --page: min(1280px, calc(100% - 112px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--accent); color: #fffaf0; }
.skip-link { position: absolute; z-index: 20; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 16px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }

.site-header { width: var(--page); min-height: 94px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-dark); font-family: var(--serif); font-size: 15px; letter-spacing: -1.5px; }
.brand-name { font-size: 11px; line-height: 1.25; font-weight: 600; letter-spacing: .015em; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3.2vw, 52px); }
.site-nav a { font-size: 12px; text-decoration: none; color: #59625c; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-dark); }
.site-nav .nav-contact { color: var(--ink); border: 1px solid var(--line); padding: 11px 15px; border-radius: 2px; }
.nav-contact span { color: var(--accent); margin-left: 12px; }
.menu-toggle { display: none; }

.hero { position: relative; width: var(--page); min-height: 610px; padding: clamp(76px, 10vw, 132px) 0 90px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7.1vw, 98px); font-weight: 500; line-height: .99; letter-spacing: -.065em; }
.hero h1 em { color: var(--accent); font-weight: 500; }
.title-period { color: var(--accent); }
.hero-summary { max-width: 430px; margin: 28px 0 0; color: #5c655f; font-size: 14px; line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 30px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.text-link span { color: var(--accent); font-size: 16px; transition: transform .2s ease; }
.text-link:hover span { transform: translateY(3px); }
.hero-aside { justify-self: end; width: min(100%, 325px); }
.portrait-placeholder { position: relative; aspect-ratio: .87; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--sage); }
.portrait-placeholder::before, .portrait-placeholder::after { content: ''; position: absolute; width: 270px; height: 270px; border: 1px solid rgba(27, 40, 37, .17); border-radius: 50%; }
.portrait-placeholder::before { transform: translate(-38px, 54px); }
.portrait-placeholder::after { transform: translate(38px, 54px); }
.portrait-initials { position: relative; z-index: 1; color: var(--accent-dark); font-family: var(--serif); font-size: clamp(76px, 10vw, 132px); letter-spacing: -.09em; }
.portrait-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-caption { position: absolute; z-index: 2; right: 14px; bottom: 14px; padding: 8px 10px; background: var(--paper); color: var(--muted); font-size: 9px; line-height: 1.45; text-align: right; text-transform: uppercase; letter-spacing: .1em; }
.portrait-orbit { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.orbit-one { top: 24%; left: 27%; }
.orbit-two { right: 23%; bottom: 31%; width: 4px; height: 4px; background: var(--ink); }
.aside-note { display: flex; gap: 16px; max-width: 250px; margin: 20px 0 0 auto; color: var(--muted); font-size: 11px; line-height: 1.65; }
.aside-note span { color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.hero-index { position: absolute; bottom: 27px; left: 0; color: #898f86; font-size: 9px; letter-spacing: .18em; }

.section-shell { width: var(--page); margin: 0 auto; padding: 105px 0 112px; display: grid; grid-template-columns: minmax(145px, .32fr) minmax(0, 1fr); column-gap: clamp(40px, 9vw, 144px); border-top: 1px solid var(--line); }
.section-label { display: flex; gap: 16px; padding-top: 9px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.section-label span:first-child { color: var(--accent); }
.section-content { min-width: 0; }
.section-content .eyebrow { margin-bottom: 20px; }
.section-content h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(42px, 5.3vw, 72px); font-weight: 500; line-height: 1.03; letter-spacing: -.06em; }
.section-content h2 span { color: var(--accent); font-style: italic; }
.intro-content { max-width: 800px; }
.placeholder-copy { position: relative; max-width: 500px; margin-top: 32px; padding: 20px 24px; border-left: 2px solid var(--accent); background: rgba(238, 234, 223, .65); }
.edit-label { display: inline-block; margin-bottom: 9px; color: var(--accent-dark); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.placeholder-copy p { margin: 0; color: #59625c; font-size: 13px; line-height: 1.8; }
.detail-placeholder { max-width: 500px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.detail-placeholder p { margin: 0; color: #59625c; font-size: 12px; line-height: 1.7; }
.intro-note { align-self: end; max-width: 220px; margin: 68px 0 4px auto; }
.note-mark { display: block; height: 35px; color: var(--accent); font-family: var(--serif); font-size: 56px; line-height: 1; }
.intro-note p { margin: 9px 0 0; font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.5; }

.journey { background: var(--paper-deep); width: 100%; padding-right: calc((100% - var(--page)) / 2); padding-left: calc((100% - var(--page)) / 2); }
.journey .section-label, .journey .section-content { grid-column: 1 / -1; }
.journey .section-label { margin-bottom: 53px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.heading-aside { width: min(260px, 32%); margin: 0 2px 5px 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.timeline { margin-top: 62px; border-top: 1px solid #cfcbc0; }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr); gap: 36px; padding: 25px 0 26px 21px; border-bottom: 1px solid #cfcbc0; }
.timeline-marker { position: absolute; top: 33px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline-date { margin: 2px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.timeline-item h3, .project-main h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.timeline-item div p, .project-main p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.projects { padding-top: 110px; padding-bottom: 118px; }
.projects-content { min-width: 0; }
.project-list { margin-top: 51px; border-top: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) 35px; gap: 15px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.project-number { align-self: start; padding-top: 3px; color: var(--accent); font-size: 10px; letter-spacing: .1em; }
.project-main h3 { font-size: 23px; }
.project-arrow { justify-self: end; align-self: start; padding-top: 1px; color: var(--accent); font-size: 19px; }

.contact { position: relative; min-height: 408px; overflow: hidden; background: var(--ink); color: var(--paper); width: 100%; padding-right: calc((100% - var(--page)) / 2); padding-left: calc((100% - var(--page)) / 2); border-top: 0; }
.contact::after { position: absolute; right: 16%; bottom: -180px; width: 420px; height: 420px; border: 1px solid rgba(245, 242, 234, .14); border-radius: 50%; content: ''; }
.contact .section-label { color: #b3b6aa; }
.contact .section-label span:first-child { color: #d48669; }
.contact-content { position: relative; z-index: 1; }
.contact-content .eyebrow { color: #b3b6aa; }
.contact-content h2 { font-size: clamp(44px, 5.8vw, 78px); }
.contact-content h2 em { color: #d48669; font-weight: 500; }
.contact-copy { max-width: 390px; margin: 22px 0 20px; color: #c1c2b8; font-size: 12px; line-height: 1.7; }
.contact-options { display: flex; flex-direction: column; align-items: flex-start; }
.contact-options .edit-label { color: #d48669; }
.contact-placeholder { padding-bottom: 5px; border-bottom: 1px solid #b76143; color: var(--paper); font-family: var(--serif); font-size: 17px; font-style: italic; }
.social-links-placeholder { display: flex; flex-direction: column; align-items: flex-start; margin: 20px 0 0; color: #c1c2b8; font-size: 11px; line-height: 1.6; }
.social-links-placeholder .edit-label { margin-bottom: 6px; color: #d48669; }
.contact-stamp { position: absolute; right: calc((100% - var(--page)) / 2 + 28px); bottom: 57px; z-index: 1; width: 93px; height: 93px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(245, 242, 234, .35); border-radius: 50%; color: #d48669; font-family: var(--serif); font-size: 14px; transform: rotate(-12deg); }
.contact-stamp span:last-child { font-family: var(--sans); font-size: 17px; }

.site-footer { width: var(--page); min-height: 128px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; column-gap: 20px; row-gap: 7px; }
.footer-brand { font-family: var(--serif); font-size: 16px; text-decoration: none; }
.footer-brand span { color: var(--accent); }
.site-footer p { margin: 0; color: var(--muted); font-size: 10px; }
.back-top { justify-self: end; color: var(--ink); font-size: 10px; text-decoration: none; }
.back-top span { margin-left: 9px; color: var(--accent); }
.site-footer small { grid-column: 1 / -1; padding: 10px 0 22px; color: #899087; font-size: 9px; }

@media (min-width: 1450px) { .hero { min-height: 690px; } }
@media (max-width: 760px) {
  :root { --page: calc(100% - 40px); }
  html { scroll-padding-top: 76px; }
  .site-header { min-height: 76px; }
  .brand-mark { width: 36px; height: 36px; font-size: 14px; }
  .brand-name { font-size: 10px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0 10px 12px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
  .menu-toggle-label { font-size: 11px; }
  .menu-icon { display: grid; gap: 5px; }
  .menu-icon i { display: block; width: 19px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-header { position: relative; }
  .site-nav { position: absolute; z-index: 10; top: 76px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .site-nav .nav-contact { padding: 13px 0; border: 0; }
  .nav-contact span { float: right; }
  .hero { min-height: 0; padding: 70px 0 78px; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
  .hero h1 { font-size: clamp(44px, 11vw, 72px); }
  .hero-summary { grid-column: 1 / -1; max-width: 420px; font-size: 13px; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-aside { grid-column: 1 / -1; grid-row: 2; width: 100%; margin-top: 8px; display: grid; grid-template-columns: minmax(112px, 145px) minmax(0, 1fr); gap: 18px; align-items: end; justify-self: stretch; }
  .portrait-placeholder { aspect-ratio: .78; }
  .portrait-initials { font-size: 52px; }
  .portrait-caption { right: 6px; bottom: 6px; padding: 5px; font-size: 7px; }
  .portrait-placeholder::before, .portrait-placeholder::after { width: 145px; height: 145px; }
  .aside-note { max-width: 220px; margin: 0 0 5px; font-size: 10px; gap: 8px; }
  .hero-index { bottom: 20px; }
  .section-shell { padding-top: 72px; padding-bottom: 78px; grid-template-columns: 1fr; row-gap: 35px; }
  .section-label { padding-top: 0; }
  .section-content h2 { font-size: clamp(42px, 10vw, 60px); }
  .intro-note { margin-top: 44px; }
  .journey { padding-right: 20px; padding-left: 20px; }
  .journey .section-label { margin-bottom: 0; }
  .section-heading-row { display: block; }
  .heading-aside { width: min(100%, 320px); margin: 22px 0 0; }
  .timeline { margin-top: 42px; }
  .timeline-item { grid-template-columns: 1fr; gap: 13px; padding-top: 21px; }
  .timeline-marker { top: 29px; }
  .project-list { margin-top: 39px; }
  .project-card { grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 8px; padding: 22px 0; }
  .project-main h3 { font-size: 20px; }
  .contact { padding-right: 20px; padding-left: 20px; min-height: 0; }
  .contact-stamp { right: 24px; bottom: 26px; width: 66px; height: 66px; font-size: 11px; }
  .contact-stamp span:last-child { font-size: 14px; }
  .contact-content { padding-bottom: 20px; }
  .site-footer { padding: 24px 0 0; grid-template-columns: 1fr auto; }
  .footer-brand { font-size: 13px; }
  .site-footer p { grid-column: 1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
  .site-footer small { padding-top: 13px; }
}
@media (max-width: 390px) {
  :root { --page: calc(100% - 32px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-aside { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .hero h1 { font-size: 43px; }
  .hero-summary { margin-top: 22px; }
  .portrait-initials { font-size: 43px; }
  .section-content h2 { font-size: 40px; }
  .contact { padding-right: 16px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
