/* Rincones Mexicanos — editorial theme */
:root {
  --ink: #0f172a; --stone: #57534e; --line: #e7e5e4;
  --bg: #fafaf9; --card: #ffffff; --emerald: #065f46; --emerald-soft: #ecfdf5;
  --amber: #b45309; --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 9999px; background: var(--emerald); color: #fff; font-size: 1.1rem; }
.brand small { display: block; font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--stone); }
.nav-links { display: none; gap: 1.4rem; font-size: .9rem; font-weight: 600; }
.nav-links a { color: var(--stone); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn { background: var(--emerald); color: #fff !important; border-radius: 9999px; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 700; }
.btn:hover { text-decoration: none; opacity: .92; }
@media (min-width: 768px) { .nav-links { display: flex; } }

main { min-height: 60vh; padding: 2.5rem 0 4rem; }
.page-hero { max-width: 46rem; margin-bottom: 2.5rem; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--emerald); }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: .5rem 0; }
.lede { font-size: 1.15rem; color: var(--stone); line-height: 1.7; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.4rem; padding: .9rem; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.08); }
.card img { border-radius: 1.1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card .meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--stone); margin-top: .9rem; }
.card .tag { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald); }
.card h2 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: .4rem 0; }
.card p { color: var(--stone); font-size: .9rem; margin: 0 0 .6rem; }
.card a.overlay { color: inherit; }

article.article { max-width: 44rem; margin: 0 auto; }
article.article h1 { margin-bottom: .75rem; }
.article-meta { color: var(--stone); font-size: .9rem; margin-bottom: 1.5rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.article-figure { margin: 1.5rem 0; }
.article-figure img { border-radius: 1.2rem; border: 1px solid var(--line); }
.article-figure figcaption { font-size: .75rem; color: #a8a29e; margin-top: .4rem; }
.source-box { background: var(--emerald-soft); border: 1px solid #d1fae5; border-radius: 1rem; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .9rem; }
.prose { font-size: 1.05rem; color: #1c1917; }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; margin: 2rem 0 .6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.prose p { margin: 1rem 0; }
.prose img { border-radius: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .4rem 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.prose blockquote { border-left: 3px solid var(--amber); margin: 1.5rem 0; padding: .4rem 1.2rem; color: var(--stone); font-style: italic; }
.prose figcaption { font-size: .75rem; color: #a8a29e; }

.site-footer { border-top: 1px solid var(--line); background: #0c0a09; color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; font-size: .9rem; }
.site-footer .grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer strong { color: #fff; }
.site-footer h3 { color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .4rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.5); }
