/*
Theme Name: POV Magazine
Theme URI: https://example.com/pov-magazine
Author: Maximo Bratter
Author URI: https://example.com
Description: A clean, editorial magazine theme — ivory paper, charcoal ink, and a single navy blue accent. Two featured stories, a "More from this week" row with thumbnails and excerpts, and admin-managed Movie/Song of the Week tiles. Inspired by long-form publications like The New Yorker and New York Magazine.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pov-magazine
Tags: blog, editorial, magazine, one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --paper:    #f7f3eb;
  --paper-2:  #efe9dd;
  --paper-3:  #e8e0cd;
  --ink:      #14181d;
  --ink-soft: #3a3f47;
  --ink-mute: #7a7770;
  --rule:     #d9d3c4;
  --rule-soft:#e7e1d2;
  --accent:    #1d3a7a;
  --accent-2:  #3257ad;
  --accent-deep: #122352;
  --accent-tint: #e6ecf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ---- MASTHEAD ---- */
.masthead { border-bottom: 2px solid var(--ink); padding: 14px 32px 12px; }
.masthead-top { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.masthead-date { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; color: var(--ink-soft); }
.subscribe-btn-top { background: var(--accent); color: white; border: none; padding: 10px 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background .2s; }
.subscribe-btn-top:hover { background: var(--accent-deep); color: white; }
.masthead-title-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 0 22px; text-align: center; }
.masthead-title { font-family: 'GFS Didot', 'Playfair Display', serif; font-weight: 400; font-size: clamp(58px, 9vw, 112px); line-height: 0.9; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: inline-block; }
.masthead-title:hover { color: var(--ink); }
.masthead-sub { margin-top: 14px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 14px; color: var(--accent); letter-spacing: 0.02em; }

/* ---- NAV ---- */
.nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; }
.nav-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; list-style: none; padding: 0; margin: 0; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs a { padding: 16px 18px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; white-space: nowrap; position: relative; transition: color .2s; display: inline-block; }
.nav-tabs a:hover { color: var(--accent); }
.nav-tabs .active a { color: var(--accent); }
.nav-tabs .active a::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--accent); }
.search-trigger { background: none; border: none; font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; padding: 8px 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-trigger:hover { color: var(--accent); }
.search-trigger svg { width: 14px; height: 14px; }
.search-bar { border-top: 1px solid var(--rule); background: var(--paper); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.search-bar.open { max-height: 80px; }
.search-bar-inner { max-width: 1280px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; gap: 16px; }
.search-bar .search-form { flex: 1; position: relative; display: flex; gap: 12px; }
.search-bar .search-field { flex: 1; border: none; background: transparent; font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; color: var(--ink); padding: 4px 0; border-bottom: 1px solid var(--accent); border-radius: 0; }
.search-bar .search-field::placeholder { color: var(--ink-mute); }
.search-bar .search-field:focus { outline: none; }
.search-bar .search-submit { background: none; border: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.search-close { background: none; border: none; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }

/* ---- MAIN ---- */
main { max-width: 1280px; margin: 0 auto; padding: 48px 32px 96px; }

/* ---- DUAL FEATURED ---- */
.featured-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--rule); margin-bottom: 48px; }
.feature { text-decoration: none; color: inherit; display: block; }
.feature-image-wrap { overflow: hidden; margin-bottom: 20px; background: var(--paper-2); }
.feature-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .feature-image-wrap img { transform: scale(1.03); }
.feature.primary .feature-image-wrap { aspect-ratio: 16 / 10; }
.feature.secondary .feature-image-wrap { aspect-ratio: 4 / 3; }
.feature .kicker { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--accent); }
.feature.primary .feature-title { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 16px; transition: color .2s; }
.feature.secondary .feature-title { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.018em; color: var(--ink); margin: 0 0 14px; transition: color .2s; }
.feature:hover .feature-title { color: var(--accent); }
.feature .deck { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; line-height: 1.45; color: var(--ink-soft); margin: 0 0 16px; }
.feature.primary .deck { font-size: 19px; }
.feature.secondary .deck { font-size: 16px; }
.feature .byline { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); }

/* ---- MORE FROM THIS WEEK ---- */
.more-week { padding-bottom: 48px; border-bottom: 1px solid var(--rule); margin-bottom: 48px; }
.more-week-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; margin-bottom: 24px; border-bottom: 2px solid var(--accent); }
.more-week-title { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.more-week-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.week-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; text-decoration: none; color: inherit; }
.week-thumb { width: 120px; height: 120px; overflow: hidden; background: var(--paper-2); }
.week-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.week-item:hover .week-thumb img { transform: scale(1.06); }
.week-body { min-width: 0; }
.week-cat { font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.week-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 500; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; transition: color .2s; }
.week-item:hover .week-title { color: var(--accent); }
.week-excerpt { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); margin: 0; }

/* ---- PICKS OF THE WEEK ---- */
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid var(--rule); margin-bottom: 56px; }
.pick { background: var(--accent); color: white; padding: 32px; text-decoration: none; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .25s ease; }
.pick.song { background: var(--accent-deep); }
.pick:hover { background: var(--accent-2); color: white; }
.pick.song:hover { background: var(--accent); }
.pick-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.pick-label-of-week { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 22px; color: white; margin-bottom: 20px; letter-spacing: -0.01em; }
.pick-cover-wrap { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(255,255,255,0.05); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.15); }
.pick-cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pick:hover .pick-cover-wrap img { transform: scale(1.04); }
.pick-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,0.4); font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; text-align: center; padding: 20px; }
.pick-title { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; color: white; margin: 0 0 4px; }
.pick-subtitle { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; color: rgba(255,255,255,0.75); }
.pick-arrow { margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 8px; }

/* ---- SECTION DIVIDER ---- */
.section-divider { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 32px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.section-label { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 28px; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.section-meta { font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- GRID ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.card { padding: 32px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .2s; position: relative; text-decoration: none; color: inherit; display: block; }
.card:nth-child(3n) { border-right: none; }
.card:hover { background: var(--paper-2); }
.card .cat { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-block; }
.card .ttl { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 12px; transition: color .2s; }
.card:hover .ttl { color: var(--accent); }
.card .deck { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 16px; }
.card .meta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); }

/* ---- LIST ---- */
.list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.list-item { display: grid; grid-template-columns: 140px 1fr 140px; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; align-items: start; }
.list-item:hover .list-title { color: var(--accent); }
.list-cat { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.list-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px; transition: color .2s; }
.list-deck { font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px; color: var(--ink-soft); line-height: 1.4; margin: 0; }
.list-date { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); text-align: right; padding-top: 6px; }

/* ---- READER ---- */
.reader-wrap { background: var(--paper); padding: 32px 32px 96px; }
.reader { max-width: 680px; margin: 0 auto; }
.reader-back { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); text-decoration: none; padding: 12px 0 32px; }
.reader-back:hover { color: var(--accent-deep); }
.reader-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); padding-bottom: 12px; margin-bottom: 22px; border-bottom: 1px solid var(--accent); display: inline-block; text-decoration: none; }
.reader-title { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(38px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 22px; }
.reader-deck { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 32px; }
.reader-byline { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 40px; }
.reader-byline em { font-family: 'Playfair Display', serif; font-style: italic; text-transform: none; letter-spacing: 0; color: var(--accent); font-size: 13px; }
.reader-byline a { color: inherit; text-decoration: none; }
.reader-byline a:hover { color: var(--accent); }
.reader-body { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 19px; line-height: 1.7; color: var(--ink); }
.reader-body p { margin: 0 0 1.3em; }
.reader-body > p:first-of-type::first-letter { font-family: 'GFS Didot', 'Playfair Display', serif; font-weight: 400; font-size: 5em; line-height: 0.85; float: left; padding: 8px 12px 0 0; color: var(--accent); }
.reader-body h2, .reader-body h3, .reader-body h4 { font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: -0.015em; margin: 1.6em 0 .5em; color: var(--ink); }
.reader-body h2 { font-size: 28px; }
.reader-body h3 { font-size: 22px; }
.reader-body h4 { font-size: 19px; font-style: italic; font-weight: 500; }
.reader-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reader-body em { font-style: italic; color: var(--ink-soft); }
.reader-body strong { font-weight: 600; color: var(--ink); }
.reader-body img { display: block; max-width: 100%; height: auto; margin: 32px auto; }
.reader-body hr { border: none; width: 60px; height: 1px; background: var(--accent); margin: 36px auto; }
.reader-body blockquote { border: none; margin: 1.5em -20px; padding: 0 20px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-soft); font-size: 21px; line-height: 1.5; }
.reader-body ul, .reader-body ol { margin: 1em 0 1.4em 1.5em; }
.reader-body li { margin-bottom: .4em; }
.reader-divider-end { text-align: center; margin: 56px 0 32px; font-family: 'Playfair Display', serif; color: var(--accent); letter-spacing: 0.4em; font-size: 14px; }

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 0; justify-content: center; margin: 56px 0 0; border-top: 1px solid var(--rule); padding-top: 32px; }
.pagination .page-numbers { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; padding: 10px 14px; border-right: 1px solid var(--rule); }
.pagination .page-numbers:last-child { border-right: none; }
.pagination .page-numbers:hover { color: var(--accent); }
.pagination .page-numbers.current { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ---- FOOTER ---- */
.site-footer { border-top: 2px solid var(--ink); background: var(--paper); padding: 56px 32px 40px; margin-top: 64px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.footer-mast { font-family: 'GFS Didot', 'Playfair Display', serif; font-size: 42px; line-height: 0.9; margin-bottom: 12px; color: var(--ink); }
.footer-tag { font-family: 'Playfair Display', serif; font-style: italic; color: var(--accent); font-size: 14px; }
.footer-col h4 { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--accent); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 13px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-sub p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.45; }
.footer-sub input { width: 100%; padding: 10px 0; border: none; border-bottom: 1px solid var(--ink); background: transparent; font: inherit; font-size: 14px; color: var(--ink); margin-bottom: 12px; border-radius: 0; }
.footer-sub input:focus { outline: none; border-bottom-color: var(--accent); }
.footer-sub button { width: 100%; padding: 12px; background: var(--accent); color: white; border: none; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.footer-sub button:hover { background: var(--accent-deep); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- COMMENTS ---- */
.comments-area { max-width: 680px; margin: 64px auto 0; padding: 0 32px; }
.comments-title { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 28px; margin-bottom: 24px; }

/* ---- EMPTY ---- */
.empty { text-align: center; padding: 80px 20px; }
.empty h2 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 32px; color: var(--ink); margin: 0 0 8px; }

/* ---- WP-REQUIRED ---- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--ink-mute); text-align: center; margin-top: 6px; font-style: italic; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .featured-pair { grid-template-columns: 1fr; gap: 56px; }
  .more-week-grid { grid-template-columns: repeat(2, 1fr); }
  .picks { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(3n) { border-right: 1px solid var(--rule); }
  .card:nth-child(2n) { border-right: none; }
  .list-item { grid-template-columns: 1fr; gap: 8px; }
  .list-date { text-align: left; padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .masthead { padding: 12px 20px 10px; }
  .masthead-title { font-size: 64px; }
  main { padding: 32px 20px 64px; }
  .grid { grid-template-columns: 1fr; }
  .card { border-right: none !important; }
  .reader-wrap { padding: 20px 20px 64px; }
  .week-item { grid-template-columns: 90px 1fr; gap: 14px; }
  .week-thumb { width: 90px; height: 90px; }
  .more-week-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .subscribe-btn-top { padding: 8px 16px; font-size: 10px; letter-spacing: 0.15em; }
}
