/*
Theme Name: The Local Miami Archive
Theme URI: https://thelocalmiami.com/
Author: The Local Miami
Description: A lightweight, responsive archival landing theme for The Local Miami.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-local-miami-archive
*/

:root {
  --ink: #052933;
  --ink-deep: #031f28;
  --paper: #f7f5f0;
  --sand: #e9e2d6;
  --accent: #e3af55;
  --max-width: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 2; inset: 0 0 auto; padding: 1.2rem clamp(1.25rem, 4vw, 3.5rem); color: #fff; }
.nav-wrap { max-width: var(--max-width); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-branding { flex: 0 1 auto; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { width: auto; max-height: 3rem; }
.site-title { margin: 0; font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: .03em; }
.site-title a { color: #fff; text-decoration: none; }
.primary-menu, .primary-menu ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-menu a:hover { color: #fff0d1; }

.hero { min-height: 100svh; display: grid; place-items: center; padding: 8rem 1.25rem 4rem; color: #fff; text-align: center; background-color: var(--ink); background-image: linear-gradient(150deg, rgba(2, 40, 51, .9), rgba(6, 41, 48, .66)), var(--hero-image); background-size: cover; background-position: center; }
.hero-inner { width: min(100%, 54rem); }
.hero-kicker { margin: 0 0 1.25rem; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #ffe0a8; }
.hero-title { margin: 0; font-size: clamp(2.5rem, 8vw, 6.4rem); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.hero-message { max-width: 43rem; margin: 1.8rem auto 0; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.5; text-wrap: balance; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; list-style: none; padding: 0; margin: 2.4rem 0 0; }
.social-links a { display: grid; place-items: center; min-width: 3rem; min-height: 3rem; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.social-links a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.archive-cta { display: inline-flex; margin-top: 2.3rem; padding: .85rem 1.15rem; border-radius: .2rem; background: var(--accent); color: var(--ink-deep); text-decoration: none; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.archive-cta:hover { background: #f1c777; }

.site-footer { padding: 1.25rem; color: #dbe3e4; background: var(--ink-deep); text-align: center; font-size: .88rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

.content-shell { max-width: var(--max-width); min-height: calc(100vh - 9rem); margin: 0 auto; padding: 8rem clamp(1.25rem, 4vw, 3.5rem) 4rem; }
.content-shell h1, .content-shell h2, .content-shell h3 { font-family: Georgia, serif; line-height: 1.15; }
.content-header { max-width: 48rem; margin-bottom: 2.5rem; }
.content-header h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.5rem); }
.post-list { display: grid; gap: 1.25rem; }
.post-card { padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--sand); box-shadow: 0 8px 24px rgba(3,31,40,.05); }
.post-card h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.entry-meta { margin: .55rem 0 0; color: #627278; font-size: .86rem; }
.entry-excerpt { margin: 1rem 0 0; }
.entry-content { max-width: 48rem; }
.entry-content img { height: auto; max-width: 100%; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination a, .pagination span { padding: .45rem .75rem; border: 1px solid var(--sand); text-decoration: none; }
.pagination .current { color: #fff; background: var(--ink); }

@media (max-width: 42rem) {
  .site-header { padding-top: 1rem; }
  .nav-wrap { align-items: flex-start; }
  .site-title { font-size: 1rem; }
  .primary-menu { gap: .45rem .75rem; }
  .primary-menu a { font-size: .76rem; }
  .hero { padding-top: 7rem; }
  .social-links { gap: .55rem; }
  .social-links a { min-width: 2.7rem; min-height: 2.7rem; padding: .45rem .8rem; font-size: .9rem; }
}
