/*
Theme Name: Long Rot
Theme URI: https://long-rot-png.netlify.app
Author: Jhon Mar Sutacio
Description: Editorial travel blog theme for Long Rot, stories from Papua New Guinea. Reef teal and sun-yellow, Bricolage Grotesque headings and Literata body text.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: long-rot
*/

:root {
  --lr-ground: #F3F1EC;
  --lr-ink: #10231F;
  --lr-body: #3A4642;
  --lr-muted: #56615C;
  --lr-line: #D9D5CC;
  --lr-teal: #0E5C5A;
  --lr-sun: #E8B931;
  --lr-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --lr-serif: 'Literata', Georgia, serif;
}

body { margin: 0; background: var(--lr-ground); color: var(--lr-ink); font-family: var(--lr-display); }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--lr-teal); }
a:hover { color: var(--lr-ink); }
img { max-width: 100%; height: auto; }

.lr-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.lr-narrow { max-width: 720px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.lr-header { border-bottom: 1px solid var(--lr-line); }
.lr-nav { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.lr-brand { text-decoration: none; color: var(--lr-ink); display: flex; align-items: baseline; gap: 10px; }
.lr-brand strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.lr-brand span { font-size: 13px; color: var(--lr-muted); }
.lr-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lr-menu a { padding: 12px 14px; font-size: 16px; text-decoration: none; color: var(--lr-ink); }
.lr-menu a.lr-pill { margin-left: 8px; padding: 12px 20px; border-radius: 999px; background: var(--lr-ink); color: var(--lr-ground); font-size: 15px; font-weight: 600; }

/* Buttons, tags */
.lr-btn { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--lr-teal); color: var(--lr-ground) !important; text-decoration: none; font-size: 16px; font-weight: 600; }
.lr-btn-outline { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--lr-ink); color: var(--lr-ink) !important; text-decoration: none; font-size: 16px; font-weight: 600; }
.lr-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--lr-sun); color: var(--lr-ink); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.lr-kicker, .lr-kicker a { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lr-teal); text-decoration: none; }
.lr-meta, .lr-meta a { font-size: 15px; color: var(--lr-muted); text-decoration: none; }

/* Hero (latest post) */
.lr-hero { padding-top: 48px; padding-bottom: 72px; }
.lr-hero .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.lr-hero .wp-block-post { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }
.lr-hero-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.lr-hero .wp-block-post-title { margin: 0; font-size: clamp(42px, 5.6vw, 80px); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em; }
.lr-hero .wp-block-post-title a { color: var(--lr-ink); text-decoration: none; }
.lr-hero .wp-block-post-excerpt { margin: 0; font-family: var(--lr-serif); font-size: 20px; line-height: 1.55; color: var(--lr-body); max-width: 34em; }
.lr-hero .wp-block-post-excerpt p { margin: 0; }
.lr-hero .wp-block-post-featured-image { margin: 0; }
.lr-hero .wp-block-post-featured-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }

/* Post grid */
.lr-band { background: #FFFFFF; border-top: 1px solid var(--lr-line); border-bottom: 1px solid var(--lr-line); }
.lr-section { padding-top: 72px; padding-bottom: 72px; }
.lr-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.lr-h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--lr-ink); }
.lr-grid { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.lr-grid > li { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.lr-grid .wp-block-post-featured-image { margin: 0; }
.lr-grid .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.lr-grid .wp-block-post-title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; }
.lr-grid .wp-block-post-title a { color: var(--lr-ink); text-decoration: none; }
.lr-grid .wp-block-post-excerpt { margin: 0; font-family: var(--lr-serif); font-size: 16px; line-height: 1.55; color: var(--lr-body); }
.lr-grid .wp-block-post-excerpt p { margin: 0; }
.lr-grid .wp-block-post-excerpt__more-text { display: none; }
.lr-grid .wp-block-post-date { font-size: 14px; color: var(--lr-muted); }
.wp-block-query-pagination { margin-top: 48px; gap: 16px; font-size: 16px; }

/* Regions */
.lr-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.lr-region { text-decoration: none; color: var(--lr-ground) !important; border-radius: 6px; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.lr-region strong { font-size: 30px; font-weight: 800; }
.lr-region span { font-size: 15px; line-height: 1.4; }
.lr-lead { margin: 10px 0 36px; font-family: var(--lr-serif); font-size: 18px; line-height: 1.55; color: var(--lr-body); max-width: 40em; }

/* Dark guides band */
.lr-dark { background: var(--lr-ink); color: var(--lr-ground); }
.lr-dark-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; padding-top: 80px; padding-bottom: 80px; }
.lr-dark h2 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--lr-ground); }
.lr-dark p { margin: 0; font-family: var(--lr-serif); font-size: 18px; line-height: 1.6; color: #C9D2CE; }
.lr-dark .lr-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lr-sun); font-family: var(--lr-display); }
.lr-list { list-style: none; margin: 0; padding: 0; }
.lr-list li { border-top: 1px solid #34504A; }
.lr-list li:last-child { border-bottom: 1px solid #34504A; }
.lr-list a, .lr-list span { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; color: var(--lr-ground); text-decoration: none; font-size: 21px; font-weight: 600; }

/* Subscribe / CTA */
.lr-cta { background: var(--lr-sun); border-radius: 10px; padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; color: var(--lr-ink); }
.lr-cta h2 { margin: 0 0 10px; font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.lr-cta p { margin: 0; font-size: 18px; line-height: 1.5; }
.lr-cta input[type=email], .lr-cta input[type=text], .lr-cta textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--lr-ink); border-radius: 6px; background: #fff; font-size: 16px; font-family: inherit; }
.lr-cta button, .lr-cta input[type=submit] { min-height: 52px; padding: 0 26px; border: 0; border-radius: 6px; background: var(--lr-ink); color: var(--lr-ground); font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }

/* Single post */
.lr-article-head { max-width: 860px; margin: 0 auto; padding: 64px 24px 40px; display: flex; flex-direction: column; gap: 20px; }
.lr-article-head .wp-block-post-title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.lr-article-head .wp-block-post-excerpt { margin: 0; font-family: var(--lr-serif); font-size: 22px; line-height: 1.5; color: var(--lr-body); }
.lr-article-head .wp-block-post-excerpt p { margin: 0; }
.lr-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--lr-muted); }
.lr-byline .wp-block-post-author-name { font-weight: 600; color: var(--lr-ink); }
.lr-cover { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.lr-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 6px; }
.lr-content { max-width: 720px; margin: 0 auto; padding: 56px 24px 24px; font-family: var(--lr-serif); font-size: 20px; line-height: 1.7; color: #1C2C28; }
.lr-content > * + * { margin-top: 24px; }
.lr-content h2, .lr-content h3 { font-family: var(--lr-display); font-weight: 800; letter-spacing: -0.01em; color: var(--lr-ink); line-height: 1.15; margin-top: 40px; }
.lr-content h2 { font-size: 32px; }
.lr-content h3 { font-size: 24px; }
.lr-content blockquote, .lr-content .wp-block-quote, .lr-content .wp-block-pullquote { margin: 32px 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--lr-sun); font-family: var(--lr-display); font-size: 28px; line-height: 1.25; font-weight: 600; color: var(--lr-ink); text-align: left; border-top: 0; border-bottom: 0; }
.lr-content blockquote p { margin: 0; }
.lr-content figure img { border-radius: 6px; }
.lr-content figcaption { font-family: var(--lr-display); font-size: 13px; color: var(--lr-muted); }
.lr-tags { max-width: 720px; margin: 0 auto; padding: 8px 24px 0; }
.lr-tags a { display: inline-block; margin: 0 8px 8px 0; padding: 10px 16px; border-radius: 999px; border: 1px solid #C5C0B4; font-size: 14px; color: var(--lr-ink); text-decoration: none; }
.lr-tags .wp-block-post-terms__separator { display: none; }
.lr-author { max-width: 720px; margin: 24px auto 0; padding: 28px 24px; border-top: 1px solid var(--lr-line); border-bottom: 1px solid var(--lr-line); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.lr-avatar { width: 72px; height: 72px; border-radius: 999px; background: var(--lr-teal); color: var(--lr-ground); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; flex: none; }
.lr-author-text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; color: var(--lr-body); }
.lr-author-text strong { font-size: 18px; color: var(--lr-ink); }

/* Page + archive titles */
.lr-page-title, .lr-archive-title { margin: 0; padding-top: 64px; font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

/* About page */
.lr-about-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lr-portrait { aspect-ratio: 4 / 5; border-radius: 6px; background: var(--lr-teal); color: #D6E4DF; display: flex; align-items: center; justify-content: center; font-size: 15px; overflow: hidden; }
.lr-portrait img { width: 100%; height: 100%; object-fit: cover; }
.lr-about-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lr-about-text h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em; }
.lr-about-text p { margin: 0; font-family: var(--lr-serif); font-size: 21px; line-height: 1.6; color: #2A3834; }
.lr-about-text .lr-alias { font-family: var(--lr-display); font-size: 17px; color: var(--lr-muted); }
.lr-press { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 36px; padding-bottom: 36px; }
.lr-press h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lr-muted); }
.lr-press ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; font-size: 26px; font-weight: 800; }
.lr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lr-card { background: #fff; border: 1px solid var(--lr-line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.lr-card b { font-size: 32px; font-weight: 800; color: var(--lr-teal); }
.lr-card h3 { margin: 0; font-size: 22px; font-weight: 800; }
.lr-card p { margin: 0; font-family: var(--lr-serif); font-size: 17px; line-height: 1.6; color: var(--lr-body); }

/* Footer */
.lr-footer { border-top: 1px solid var(--lr-line); margin-top: 0; }
.lr-footer-inner { max-width: 1240px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 15px; color: var(--lr-muted); }
.lr-footer-inner strong { color: var(--lr-ink); font-weight: 800; }
.lr-footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px; }
.lr-footer-inner nav a { padding: 12px; color: var(--lr-body); }

/* Remove default block gaps between template parts */
.wp-site-blocks > * + * { margin-block-start: 0; }
