/*
Theme Name: Blogorama Editorial
Theme URI: https://andythedsm.wordpress.com/
Author: Blogorama
Description: A typography-first editorial WordPress theme for Blogorama, based on the locked newspaper-style homepage design. Images are optional, not required.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.9
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: blogorama
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --paper: #f5f1e8;
  --paper-deep: #ece6da;
  --paper-soft: #faf8f2;
  --ink: #151515;
  --muted: #6d675f;
  --rule: #cfc7b8;
  --rule-dark: #181818;
  --red: #b11f2d;
  --red-dark: #8f1722;
  --gold: #d49b25;
  --blue: #4c63b8;
  --green: #6f9f2f;
  --magenta: #b32f8c;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --script: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus { color: var(--red); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 99999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: .7rem 1rem;
  border: 2px solid #000;
}

.site-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

/* Top strapline */
.top-strip {
  border-bottom: 2px solid var(--ink);
  font-size: 14px;
}
.top-strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.top-strip-right { text-align: right; }

/* Masthead */
.masthead {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 28px;
  padding: 24px 0 20px;
}
.masthead-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.masthead-portrait {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.06);
  border: 0;
  background: transparent;
}
.hand-note {
  font: italic 18px/1.15 var(--script);
  transform: rotate(-7deg);
  max-width: 86px;
}

.hand-note::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  background: var(--red);
  margin: 9px auto 0;
  transform: rotate(-6deg);
}
.masthead-center { text-align: center; min-width: 0; }
.site-title {
  margin: 0;
  font: 800 clamp(58px, 8vw, 96px)/.88 var(--serif);
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.site-description {
  margin: 6px 0 0;
  color: var(--red);
  font: 700 clamp(23px, 3vw, 36px)/1 var(--serif);
  letter-spacing: -.03em;
}
.masthead-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px auto 0;
  max-width: 620px;
  font: 700 13px/1 var(--serif);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.masthead-divider::before,
.masthead-divider::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
}
.masthead-right { text-align: center; }

/* Navigation */
.nav-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 50px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: 800 14px/50px var(--sans);
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
}
.primary-nav { flex: 1; min-width: 0; }
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}
.primary-nav li { margin: 0; }
.primary-nav a {
  display: flex;
  height: 50px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  font: 800 14px/1 var(--serif);
  text-transform: uppercase;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--red);
  border-bottom-color: var(--red);
}
.header-search {
  display: flex;
  align-items: center;
  margin: 7px 0 7px 18px;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
  min-width: 250px;
}
.header-search label { flex: 1; }
.header-search .search-field {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink);
}
.header-search .search-submit {
  align-self: stretch;
  width: 43px;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: 800 20px/1 var(--sans);
}
.header-search .search-submit:hover { background: var(--red-dark); }

/* Main front page */
.site-main { padding: 26px 0 42px; }
.front-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}
.front-content { min-width: 0; }
.front-sidebar {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid var(--rule);
}

.hero-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  background: linear-gradient(115deg, rgba(255,255,255,.33), rgba(255,255,255,.08)), var(--paper-deep);
  padding: 30px 34px;
  margin-bottom: 24px;
}
.hero-main { padding-right: 34px; }
.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule);
  padding-left: 28px;
}
.eyebrow {
  color: var(--red);
  font: 800 14px/1 var(--serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-title {
  margin: 8px 0 10px;
  font: 800 clamp(46px, 6vw, 72px)/.93 var(--serif);
  letter-spacing: -.045em;
}
.hero-excerpt {
  margin: 0 0 18px;
  max-width: 680px;
  font: 22px/1.35 var(--serif);
}
.hero-meta, .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 15px;
  color: #3f3a34;
  font: 13px/1.3 var(--serif);
}
.button-red {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 11px 18px;
  background: var(--red);
  color: #fff;
  font: 800 12px/1 var(--serif);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.button-red:hover, .button-red:focus { background: var(--red-dark); color: #fff; }
.hero-pullquote {
  margin: 0;
  font: italic 24px/1.25 var(--serif);
}
.hero-pullquote::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 20px;
  background: var(--red);
  transform: rotate(-7deg);
}
.hero-thumb {
  margin-top: 18px;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(.85) contrast(1.02);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 14px;
}
.section-heading h2,
.sidebar-heading {
  margin: 0;
  font: 800 25px/1 var(--serif);
  text-transform: uppercase;
}
.section-heading::after {
  content: "";
  height: 2px;
  background: var(--ink);
  flex: 1;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.post-card {
  border: 1px solid var(--rule);
  background: rgba(255,255,255,.10);
  min-height: 185px;
  padding: 22px 24px;
}
.post-card.has-thumb {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  padding: 10px;
}
.post-card-thumb {
  width: 100%;
  height: 100%;
  min-height: 163px;
  object-fit: cover;
}
.post-card-body { align-self: center; min-width: 0; }
.post-card-title {
  margin: 6px 0 7px;
  font: 800 26px/1.02 var(--serif);
  letter-spacing: -.025em;
}
.post-card-excerpt { margin: 0; font-size: 17px; line-height: 1.25; }
.post-card .post-meta { margin-top: 13px; font-size: 12px; }

.pagination-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.pagination-button {
  border: 1px solid var(--ink);
  padding: 8px 20px;
  background: transparent;
  font: 800 12px/1 var(--serif);
  text-transform: uppercase;
}
.pagination-button:hover { background: var(--ink); color: #fff; }

/* Sidebar */
.sidebar-section { margin-bottom: 24px; }
.sidebar-heading {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 7px;
  margin-bottom: 10px;
}
.category-list, .quickies-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-list li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 0 21px;
  font-size: 17px;
}
.category-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 7px;
  background: var(--red);
}
.category-list li:nth-child(2)::before { background: var(--gold); }
.category-list li:nth-child(3)::before { background: var(--blue); }
.category-list li:nth-child(4)::before { background: var(--green); }
.category-list li:nth-child(5)::before { background: var(--magenta); }
.category-count { color: var(--muted); font-size: 14px; }

.quickies-box {
  background: var(--paper-deep);
  padding: 18px 18px 14px;
}
.quickies-box .sidebar-heading { color: var(--red); border: 0; padding: 0; margin: 0; }
.quickies-tagline { margin: 1px 0 10px; font-style: italic; font-size: 16px; }
.quickie {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.quickie:last-child { border-bottom: 0; }
.quickie-thumb,
.quickie-monogram {
  width: 58px;
  height: 48px;
  object-fit: cover;
  background: #ded7ca;
}
.quickie-monogram {
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--red);
  font: 800 21px/1 var(--serif);
}
.quickie-title { margin: 0 0 3px; font: 700 16px/1.1 var(--serif); }
.quickie-date { color: var(--muted); font-size: 12px; }
.quickie-more { display: block; margin-top: 10px; color: var(--red); text-align: right; font: 800 12px/1 var(--serif); text-transform: uppercase; }

.sidebar-quote {
  position: relative;
  background: var(--paper-deep);
  padding: 28px 22px 24px;
  font: italic 22px/1.25 var(--serif);
}
.sidebar-quote::before {
  content: "“";
  display: block;
  height: 34px;
  font: 700 58px/.55 var(--serif);
}
.sidebar-quote::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 18px;
  background: var(--red);
  transform: rotate(-7deg);
}

/* Inner pages */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
}
.content-column { min-width: 0; }
.inner-sidebar { padding-left: 22px; border-left: 1px solid var(--rule); }
.archive-title,
.entry-title {
  font: 800 clamp(42px, 6vw, 70px)/.98 var(--serif);
  letter-spacing: -.04em;
}
.archive-title { margin: 0 0 24px; }
.entry-header { margin-bottom: 24px; }
.entry-title { margin: 8px 0 12px; }
.entry-featured { margin: 0 0 28px; }
.entry-featured img { width: 100%; max-height: 600px; object-fit: cover; }
.entry-content {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.72;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.15;
  margin-top: 1.8em;
}
.entry-content blockquote {
  margin: 2em 0;
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 24px;
  font: italic 25px/1.45 var(--serif);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
}
.entry-content th,
.entry-content td {
  padding: 10px 11px;
  border: 1px solid var(--rule);
  vertical-align: top;
}
.entry-content th { background: var(--paper-deep); text-align: left; }
.entry-content a { color: var(--red-dark); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { border-radius: 1px; }

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-weight: 700;
}
.post-navigation .nav-next { text-align: right; }

.comments-area { margin-top: 40px; max-width: 760px; }
.comment-list { padding-left: 20px; }
.comment-body { border-top: 1px solid var(--rule); padding: 18px 0; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
  padding: 10px;
}
.form-submit .submit {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.search-page-form { max-width: 680px; margin-bottom: 28px; }
.search-page-form .search-form { display: flex; }
.search-page-form .search-field {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
}
.search-page-form .search-submit {
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 0 18px;
}

/* Footer */
.site-footer { margin-top: 0; background: #1e1e1e; color: #fff; }
.footer-main { padding: 17px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-title { font: 800 24px/1 var(--serif); text-transform: uppercase; }
.footer-tagline { color: #ddd; font-size: 13px; }
.footer-menu ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 18px; flex-wrap: wrap; }
.footer-menu a { font-size: 13px; }
.footer-rss { font-size: 18px; }
.footer-bottom { background: var(--paper-soft); color: var(--ink); font-size: 12px; }
.footer-bottom-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.alignwide { width: min(1100px, 100%); max-width: none; }
.alignfull { width: 100%; max-width: none; }

@media (max-width: 1020px) {
  .masthead { grid-template-columns: 150px minmax(0,1fr) 150px; gap: 18px; }
  .masthead-portrait { width: 104px; height: 104px; flex-basis: 104px; }
  .hand-note { font-size: 15px; }
  .site-title { font-size: 66px; }
  .site-description { font-size: 27px; }
  .front-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
  .hero-story { grid-template-columns: minmax(0,1fr) 190px; padding: 26px; }
  .post-card.has-thumb { grid-template-columns: 115px minmax(0,1fr); }
  .header-search { min-width: 205px; }
  .primary-nav a { padding-inline: 11px; font-size: 12px; }
}

@media (max-width: 820px) {
  .site-shell { width: min(calc(100% - 28px), var(--max)); }
  .top-strip-right { display: none; }
  .masthead { grid-template-columns: 100px 1fr; }
  .masthead-right { display: none; }
  .masthead-left { display: block; text-align: center; }
  .masthead-left .hand-note { display: none; }
  .masthead-portrait { width: 88px; height: 88px; }
  .site-title { font-size: clamp(44px, 11vw, 66px); }
  .site-description { font-size: clamp(20px, 5vw, 27px); }
  .masthead-divider { font-size: 11px; }
  .nav-inner { display: block; position: relative; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; border-top: 1px solid var(--rule); }
  .primary-nav a { height: auto; min-height: 44px; padding: 10px 0; }
  .header-search { margin: 0 0 10px; }
  .front-layout, .content-with-sidebar { grid-template-columns: 1fr; }
  .front-sidebar, .inner-sidebar { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
}

@media (max-width: 640px) {
  .top-strip { font-size: 12px; }
  .masthead { grid-template-columns: 1fr; text-align: center; padding-block: 18px; }
  .masthead-left { display: none; }
  .masthead-divider { display: none; }
  .hero-story { grid-template-columns: 1fr; padding: 24px 21px; }
  .hero-main { padding-right: 0; }
  .hero-side { border-left: 0; border-top: 1px solid var(--rule); padding: 20px 0 0; margin-top: 20px; }
  .hero-title { font-size: 46px; }
  .hero-excerpt { font-size: 19px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.has-thumb { grid-template-columns: 110px minmax(0,1fr); }
  .post-card-title { font-size: 23px; }
  .footer-inner, .footer-bottom-inner { display: block; text-align: center; }
  .footer-menu ul { justify-content: center; margin-top: 12px; }
  .footer-rss { margin-top: 12px; }
  .footer-bottom-inner { padding: 9px 0; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
}
