/*
Theme Name: The Merkin
Theme URI: https://example.com/the-merkin
Author: The Merkin
Description: A three-column legal-news theme inspired by the Justinian layout. Left and right columns hold category teasers (widget areas); the centre column runs the chronological article feed. Built as an EMPTY TEMPLATE — fill the content slots marked {{ ... }} and drop widgets into the sidebars.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: the-merkin
*/

/* =========================================================
   DESIGN TOKENS  — edit these to rebrand the whole site
   ========================================================= */
:root {
  --ink:        #1a1a1a;   /* body text */
  --paper:      #ffffff;   /* page background */
  --rule:       #d8d4cc;   /* hairline dividers */
  --accent:     #7a1420;   /* masthead / links — a legal "oxblood" red */
  --accent-2:   #b58a2e;   /* secondary highlight */
  --muted:      #6b6b60;   /* meta text */
  --section-bg: #f6f4ef;   /* sidebar panel background */
  --maxwidth:   1200px;
  --font-head:  Georgia, "Times New Roman", serif;
  --font-body:  Georgia, "Times New Roman", serif;
  --font-meta:  Arial, Helvetica, sans-serif;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

.container {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   MASTHEAD / HEADER
   ========================================================= */
.site-header {
  border-bottom: 3px double var(--rule);
  padding: 18px 0 10px;
  text-align: center;
}
.site-title {
  font-size: 56px;
  margin: 0;
  letter-spacing: 1px;
  color: var(--accent);
}
.site-title a { color: inherit; }
.site-tagline {
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 0;
}

/* Primary nav */
.main-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 12px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.main-nav li { padding: 10px 0; }
.main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--accent); }

/* =========================================================
   THREE-COLUMN GRID
   left teasers | centre feed | right teasers
   ========================================================= */
.site-main {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;  /* centre column is double width */
  gap: 32px;
  padding: 28px 0 48px;
}
.col-left  { order: 1; }
.col-center{ order: 2; }
.col-right { order: 3; }

/* =========================================================
   SIDEBAR WIDGET / TEASER PANELS
   ========================================================= */
.widget {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.widget:last-child { border-bottom: none; }
.widget-title {
  font-family: var(--font-meta);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 12px; font-size: 15px; }

/* Teaser block (category dink + headline + dek) */
.teaser .teaser-kicker {
  font-family: var(--font-meta);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
}
.teaser h3 { font-size: 19px; margin: 6px 0; }
.teaser p { font-size: 15px; margin: 6px 0; }
.teaser .read-more {
  font-family: var(--font-meta);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================================
   CENTRE COLUMN — ARTICLE FEED
   ========================================================= */
.article-card {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.article-card .entry-kicker {
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-2);
}
.article-card .entry-title {
  font-size: 30px;
  margin: 6px 0 8px;
}
.article-card .entry-meta {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.article-card .entry-summary { font-size: 17px; }
.article-card .read-more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-meta);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Pagination */
.pagination {
  font-family: var(--font-meta);
  font-size: 13px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pagination .current { font-weight: bold; color: var(--accent); }

/* Single post */
.single-entry .entry-title { font-size: 38px; margin-bottom: 8px; }
.single-entry .entry-content { margin-top: 20px; }
.single-entry .entry-content p { margin: 0 0 1.1em; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 3px double var(--rule);
  padding: 24px 0 40px;
  text-align: center;
  font-family: var(--font-meta);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.site-footer nav ul {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  text-transform: uppercase;
}
.site-footer a { color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .site-main { grid-template-columns: 1fr 1fr; }
  .col-center { order: 1; grid-column: 1 / -1; }  /* feed on top */
  .col-left   { order: 2; }
  .col-right  { order: 3; }
}
@media (max-width: 640px) {
  .site-main { grid-template-columns: 1fr; }
  .site-title { font-size: 40px; }
  .article-card .entry-title { font-size: 24px; }
}
