/*
Theme Name: PML Hello Child
Theme URI: https://parquedemarialuisa.org/
Description: Accessible, lightweight child theme for the independent Parque de Maria Luisa guide.
Author: Parque de Maria Luisa OS
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: MIT
Text Domain: pml-hello-child
*/

:root {
  --pml-olive: #53633a;
  --pml-olive-dark: #2e3825;
  --pml-terracotta: #a9573f;
  --pml-ochre: #d1a548;
  --pml-sand: #f5f0e6;
  --pml-cream: #fffdf8;
  --pml-ink: #22251f;
  --pml-muted: #62675c;
  --pml-line: #ddd8cc;
  --pml-content: 1180px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pml-cream);
  color: var(--pml-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body.admin-bar .pml-site-header { top: 32px; }

a { color: #3e552a; text-underline-offset: 0.16em; }
a:hover { color: var(--pml-terracotta); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--pml-ochre);
  outline-offset: 3px;
}

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

.pml-skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--pml-olive-dark);
  color: #fff;
  transform: translateY(-160%);
}
.pml-skip-link:focus { transform: translateY(0); }

.pml-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(83, 99, 58, 0.17);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

.pml-header-inner,
.pml-footer-inner,
.pml-shell {
  width: min(calc(100% - 2rem), var(--pml-content));
  margin-inline: auto;
}

.pml-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.pml-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--pml-olive-dark); text-decoration: none; }
.pml-brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 46% 54%; background: var(--pml-olive); color: #fff; font-family: Georgia, serif; font-size: 1.25rem; }
.pml-brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.pml-brand__text strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.pml-brand__text small { color: var(--pml-muted); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }

.pml-navigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.pml-navigation a { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; color: var(--pml-ink); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.pml-navigation a:hover, .pml-navigation .current-menu-item > a { background: var(--pml-sand); color: var(--pml-olive-dark); }

.pml-shell { padding-block: clamp(1.5rem, 4vw, 4rem); }
.pml-shell--wide { width: min(calc(100% - 2rem), 1380px); }
.pml-content { max-width: 820px; }
.pml-content--full { max-width: none; }

.pml-entry-header { margin-bottom: 2rem; }
.pml-entry-header h1 {
  max-width: 900px;
  margin: 0.2rem 0 0.5rem;
  color: var(--pml-olive-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.pml-entry-kicker { margin: 0; color: var(--pml-terracotta); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pml-entry-meta { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; color: var(--pml-muted); font-size: 0.86rem; }
.pml-entry-summary { max-width: 760px; color: var(--pml-muted); font-size: 1.15rem; }

.pml-prose h2, .pml-prose h3, .pml-prose h4 { color: var(--pml-olive-dark); font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.pml-prose h2 { margin-top: 2.2em; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.pml-prose h3 { margin-top: 1.7em; font-size: 1.35rem; }
.pml-prose p, .pml-prose li { max-width: 76ch; }
.pml-prose blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 5px solid var(--pml-ochre); background: var(--pml-sand); font-family: Georgia, serif; font-size: 1.15rem; }
.pml-prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pml-prose th, .pml-prose td { padding: 0.7rem; border: 1px solid var(--pml-line); text-align: left; vertical-align: top; }
.pml-prose th { background: var(--pml-sand); }

.pml-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.pml-archive-card { padding: 1.2rem; border: 1px solid var(--pml-line); border-radius: 14px; background: #fff; }
.pml-archive-card h2 { margin: 0.3rem 0; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.pml-archive-card h2 a { color: var(--pml-olive-dark); text-decoration: none; }
.pml-archive-card p { color: var(--pml-muted); }

.pml-site-footer { margin-top: 4rem; padding: 3.5rem 0 2rem; background: var(--pml-olive-dark); color: rgba(255,255,255,0.88); }
.pml-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.pml-site-footer h2, .pml-site-footer h3 { color: #fff; font-family: Georgia, serif; }
.pml-site-footer a { color: #fff; }
.pml-footer-disclosure { max-width: 54ch; color: rgba(255,255,255,0.72); }
.pml-footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.82rem; }

.pml-404 { max-width: 760px; min-height: 50vh; display: grid; align-content: center; }
.pml-404 h1 { font-family: Georgia, serif; font-size: clamp(3rem, 10vw, 7rem); margin: 0; color: var(--pml-olive-dark); }

@media (max-width: 960px) {
  .pml-header-inner { align-items: flex-start; flex-direction: column; padding-block: 0.8rem; }
  .pml-navigation { width: 100%; overflow-x: auto; }
  .pml-navigation ul { flex-wrap: nowrap; width: max-content; }
  .pml-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pml-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  body.admin-bar .pml-site-header { top: 46px; }
  .pml-header-inner, .pml-footer-inner, .pml-shell { width: min(calc(100% - 1.4rem), var(--pml-content)); }
  .pml-brand__text small { display: none; }
  .pml-archive-grid, .pml-footer-grid { grid-template-columns: 1fr; }
  .pml-entry-header h1 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
}

@media print {
  .pml-site-header, .pml-site-footer, .pml-navigation, .pml-partners { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .pml-shell { width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
