/*
Theme Name: FoltinLABS Brutalist Wide
Theme URI: https://ericfoltin.com
Author: Eric Foltin
Description: A full-width, responsive brutalist WordPress theme with oversized monospace typography, hard edges, an editorial archive, and restrained electric-blue accents.
Version: 1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: foltinlabs-brutalist-wide
Tags: blog, news, portfolio, one-column, two-columns, custom-logo, custom-menu, featured-images, wide-blocks, full-width-template
*/

:root {
  --ef-bg: #A3A09A;
  --ef-panel: #ded9cf;
  --ef-text: #171717;
  --ef-muted: #55514b;
  --ef-accent: #d50000;
  --ef-line: rgba(23, 23, 23, .72);
  --ef-gutter: clamp(16px, 3.2vw, 58px);
  --ef-max: 1920px;
  --ef-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ef-bg); color: var(--ef-text);
  font-family: var(--ef-mono); font-size: 16px; line-height: 1.55;
  overflow-wrap: anywhere;
}
a { color: var(--ef-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover, a:focus-visible { color: var(--ef-accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
button, input, textarea, select { border-radius: 0; }
.site-shell { width: 100%; max-width: var(--ef-max); margin: 0 auto; }
.site-header { border-bottom: 2px solid var(--ef-text); }
.header-top, .header-nav, .ticker-inner, .site-footer-inner {
  padding-left: var(--ef-gutter); padding-right: var(--ef-gutter);
}
.header-top { min-height: 78px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-branding { display:flex; align-items:center; gap:14px; min-width:0; }
.custom-logo { width:auto; max-height:48px; }
.site-title { margin:0; font-size:clamp(19px, 2.1vw, 30px); line-height:1; font-weight:900; letter-spacing:-.08em; text-transform:uppercase; }
.site-title a { text-decoration:none; }
.site-description { color:var(--ef-muted); margin:7px 0 0; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.header-meta { color:var(--ef-muted); font-size:11px; text-align:right; text-transform:uppercase; }
.header-nav { border-top:1px solid var(--ef-line); min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.primary-menu { list-style:none; display:flex; flex-wrap:wrap; gap:0; padding:0; margin:0; }
.primary-menu li { margin:0; }
.primary-menu a { display:block; padding:13px 18px 12px 0; margin-right:18px; text-transform:uppercase; font-size:12px; font-weight:800; text-decoration:none; letter-spacing:.06em; }
.primary-menu a:hover { color:var(--ef-accent); }
.menu-toggle { display:none; background:transparent; color:var(--ef-text); border:1px solid var(--ef-text); padding:8px 12px; text-transform:uppercase; font-size:11px; cursor:pointer; }
.header-search { display:flex; gap:6px; }
.header-search input { width:170px; min-width:0; padding:7px 9px; background:transparent; border:1px solid var(--ef-line); color:var(--ef-text); font-size:11px; }
.header-search button, .wp-block-search__button { padding:7px 10px; background:var(--ef-text); border:1px solid var(--ef-text); color:var(--ef-bg); font-size:11px; font-weight:900; text-transform:uppercase; cursor:pointer; }
.ticker { overflow:hidden; border-bottom:1px solid var(--ef-line); background:var(--ef-accent); color:#fff; }
.ticker-inner { display:flex; width:max-content; min-width:100%; gap:42px; padding-top:8px; padding-bottom:8px; white-space:nowrap; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.1em; animation:ef-marquee 34s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state:paused; }
@keyframes ef-marquee { from { transform:translateX(0); } to { transform:translateX(-35%); } }
.hero { padding:clamp(42px, 8vw, 130px) var(--ef-gutter) clamp(34px, 5vw, 78px); border-bottom:2px solid var(--ef-text); }
.hero-kicker, .eyebrow { color:var(--ef-accent); font-size:11px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.hero h1 { max-width:1500px; margin:16px 0 20px; font-size:clamp(54px, 12.5vw, 210px); line-height:.78; letter-spacing:-.105em; font-weight:950; text-transform:uppercase; }
.hero p { max-width:780px; color:var(--ef-muted); font-size:clamp(13px, 1.35vw, 18px); }
.hero-line { display:flex; flex-wrap:wrap; gap:12px 30px; margin-top:28px; font-size:11px; text-transform:uppercase; }
.hero-line span:before { content:"/ "; color:var(--ef-accent); }
.content-wrap { padding:0 var(--ef-gutter); }
.section-bar { display:flex; justify-content:space-between; align-items:baseline; gap:20px; padding:20px 0; border-bottom:1px solid var(--ef-line); text-transform:uppercase; }
.section-bar h2 { margin:0; font-size:clamp(20px, 3vw, 38px); line-height:1; letter-spacing:-.07em; }
.section-bar span { color:var(--ef-muted); font-size:11px; }
.archive-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(230px, 24%); gap:clamp(24px, 4vw, 72px); }
.post-list { min-width:0; }
.post-row { display:grid; grid-template-columns: minmax(90px, 13%) minmax(0, 1fr) minmax(70px, 10%); gap:20px; padding:25px 0; border-bottom:1px solid var(--ef-line); }
.post-date { color:var(--ef-muted); font-size:11px; padding-top:7px; }
.post-main h2, .post-main h3 { margin:0 0 10px; font-size:clamp(23px, 3.2vw, 48px); line-height:.98; letter-spacing:-.075em; text-transform:uppercase; }
.post-main h2 a, .post-main h3 a { text-decoration:none; }
.post-excerpt { max-width:900px; color:var(--ef-muted); font-size:13px; }
.post-cats { color:var(--ef-accent); font-size:10px; font-weight:900; text-align:right; text-transform:uppercase; padding-top:8px; }
.post-thumb { margin:18px 0 0; border:1px solid var(--ef-line); }
.post-thumb img { width:100%; max-height:420px; object-fit:cover; filter:grayscale(100%); }
.post-row:hover .post-thumb img { filter:none; }
.sidebar { padding:25px 0; border-left:1px solid var(--ef-line); padding-left:clamp(18px, 2.5vw, 38px); }
.widget { margin:0 0 34px; }
.widget-title { margin:0 0 12px; color:var(--ef-accent); font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.widget ul { list-style:none; padding:0; margin:0; }
.widget li { padding:8px 0; border-bottom:1px solid var(--ef-line); font-size:12px; }
.widget a { text-decoration:none; }
.widget p { color:var(--ef-muted); font-size:12px; }
.entry-header { padding:clamp(42px, 7vw, 110px) var(--ef-gutter) 35px; border-bottom:1px solid var(--ef-line); }
.entry-title { max-width:1500px; margin:12px 0 22px; font-size:clamp(44px, 9vw, 150px); line-height:.83; letter-spacing:-.1em; text-transform:uppercase; }
.entry-meta { display:flex; flex-wrap:wrap; gap:10px 25px; color:var(--ef-muted); font-size:11px; text-transform:uppercase; }
.entry-content { width:min(100% - (var(--ef-gutter) * 2), 1180px); margin:0 auto; padding:45px 0 90px; font-family:var(--ef-mono); font-size:16px; line-height:1.8; }
.entry-content > * { max-width:100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height:1.05; letter-spacing:-.06em; text-transform:uppercase; }
.entry-content h2 { font-size:clamp(32px, 5vw, 64px); }
.entry-content h3 { font-size:clamp(25px, 3.5vw, 42px); }
.entry-content p, .entry-content ul, .entry-content ol { max-width:850px; }
.entry-content blockquote { margin:35px 0; padding:10px 24px; border-left:5px solid var(--ef-accent); font-size:1.25em; }
.entry-content pre, .entry-content code { background:var(--ef-panel); padding:.15em .35em; }
.entry-content pre { overflow:auto; padding:20px; border:1px solid var(--ef-line); }
.entry-content .alignwide { width:min(100vw - (var(--ef-gutter) * 2), 1600px); max-width:none; margin-left:50%; transform:translateX(-50%); }
.entry-content .alignfull { width:100vw; max-width:none; margin-left:50%; transform:translateX(-50%); }
.entry-content figure { margin:35px 0; }
.entry-content figure img { width:100%; }
.page-content { padding-top:40px; }
.pagination, .nav-links { display:flex; flex-wrap:wrap; gap:8px; padding:30px 0; }
.page-numbers, .nav-links a, .nav-links span { display:inline-block; padding:9px 13px; border:1px solid var(--ef-line); text-decoration:none; font-size:12px; }
.page-numbers.current, .nav-links .current { background:var(--ef-text); color:var(--ef-bg); }
.comments-area { width:min(100% - (var(--ef-gutter) * 2), 1180px); margin:0 auto 70px; border-top:1px solid var(--ef-line); padding-top:30px; }
.comment-list { padding-left:20px; }
.comment-body { border-bottom:1px solid var(--ef-line); padding:15px 0; }
.comment-form input, .comment-form textarea { width:100%; max-width:700px; padding:12px; background:transparent; border:1px solid var(--ef-line); color:var(--ef-text); }
.comment-form input[type=submit] { width:auto; background:var(--ef-text); color:var(--ef-bg); cursor:pointer; font-weight:900; }
.site-footer { border-top:2px solid var(--ef-text); margin-top:50px; }
.site-footer-inner { display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; padding-top:24px; padding-bottom:28px; font-size:11px; text-transform:uppercase; color:var(--ef-muted); }
.site-footer strong { color:var(--ef-text); }
.screen-reader-text { clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; width:1px; overflow:hidden; position:absolute!important; white-space:nowrap; }
:focus-visible { outline:2px solid var(--ef-accent); outline-offset:4px; }
@media (max-width: 850px) {
  .archive-layout { grid-template-columns:1fr; }
  .sidebar { border-left:0; border-top:2px solid var(--ef-text); padding:25px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
  .post-row { grid-template-columns:85px minmax(0,1fr); }
  .post-cats { grid-column:2; text-align:left; padding-top:0; }
}
@media (max-width: 620px) {
  .header-top { align-items:flex-start; padding-top:18px; padding-bottom:16px; }
  .header-meta { display:none; }
  .header-nav { align-items:flex-start; flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }
  .menu-toggle { display:block; }
  .primary-menu { display:none; width:100%; flex-direction:column; border-top:1px solid var(--ef-line); margin-top:10px; }
  .primary-menu.is-open { display:flex; }
  .primary-menu a { padding:11px 0; margin:0; border-bottom:1px solid var(--ef-line); }
  .header-search { width:100%; }
  .header-search input { flex:1; width:1px; }
  .hero h1 { font-size:clamp(52px, 17vw, 100px); }
  .post-row { grid-template-columns:1fr; gap:8px; }
  .post-date { padding:0; }
  .post-cats { grid-column:auto; }
  .sidebar { grid-template-columns:1fr; }
  .entry-content { font-size:15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}


/* Featured images are intentionally hidden throughout the theme. */
.post-thumb,
.post-thumb img,
.wp-post-image,
.post-thumbnail,
.post-thumbnail img,
.entry-header + .content-wrap img.wp-post-image {
  display: none !important;
}


/* Calendar: WordPress links dates that contain published posts. Make those dates bold. */
#wp-calendar tbody td a,
.wp-calendar-table tbody td a {
  font-weight: 900 !important;
  color: var(--ef-accent) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}


/* Hard-hide Daily Prompts (category ID 3) in classic and block category-list widgets. */
.widget_categories .cat-item-3,
.widget.widget_categories li.cat-item-3,
.wp-block-categories .cat-item-3,
.wp-block-categories-list .cat-item-3 {
  display: none !important;
}


/* Global bold typography: every interface element uses a heavier weight. */
body,
body *,
body *::before,
body *::after {
  font-weight: 700 !important;
}
strong, b, h1, h2, h3, h4, h5, h6,
.site-title, .entry-title, .hero h1, .brutal-masthead h1,
button, input[type="submit"], .widget-title {
  font-weight: 900 !important;
}
input, textarea, select, button {
  font-family: inherit;
}


/* Compact density pass: tighter rhythm, narrower gutters, and larger small blog text. */
:root {
  --ef-gutter: clamp(10px, 1.8vw, 30px);
}

/* Tighten overall text rhythm. */
body,
body * {
  line-height: 1.1 !important;
}

/* Increase the smaller archive and utility typography by approximately 2px. */
.post-date { font-size: 13px; }
.post-excerpt { font-size: 15px; }
.post-cats { font-size: 12px; }
.header-meta { font-size: 13px; }
.primary-menu a { font-size: 14px; }
.header-search input,
.header-search button { font-size: 13px; }
.ticker-inner { font-size: 13px; }
.hero-kicker, .eyebrow { font-size: 13px; }
.hero-line { font-size: 13px; }
.section-bar span { font-size: 13px; }
.widget-title { font-size: 14px; }
.widget li, .widget p { font-size: 14px; }
.entry-meta { font-size: 13px; }
.page-numbers, .nav-links a, .nav-links span { font-size: 14px; }
.site-footer-inner { font-size: 13px; }
.brutal-masthead-top, 

/* Reduce whitespace across the site without changing the wide layout. */
.header-top { min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
.header-nav { min-height: 40px; }
.primary-menu a { padding-top: 8px; padding-bottom: 8px; margin-right: 12px; }
.ticker-inner { padding-top: 6px; padding-bottom: 6px; gap: 26px; }
.hero { padding-top: clamp(28px, 5vw, 76px); padding-bottom: clamp(24px, 3vw, 48px); }
.hero h1 { margin-top: 10px; margin-bottom: 12px; }
.hero-line { margin-top: 18px; }
.section-bar { padding-top: 13px; padding-bottom: 13px; }
.post-row { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
.post-excerpt { margin-top: 6px; }
.post-thumb { margin-top: 12px; }
.sidebar { padding-top: 16px; padding-bottom: 16px; }
.widget { margin-bottom: 22px; }
.widget-title { margin-bottom: 8px; }
.widget li { padding-top: 5px; padding-bottom: 5px; }
.entry-header { padding-top: clamp(28px, 4.5vw, 76px); padding-bottom: 24px; }
.entry-content { padding-top: 30px; padding-bottom: 58px; }
.entry-content p, .entry-content ul, .entry-content ol { margin-top: .55em; margin-bottom: .55em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: .7em; margin-bottom: .4em; }
.entry-content blockquote { margin-top: 22px; margin-bottom: 22px; padding-top: 7px; padding-bottom: 7px; }
.entry-content figure { margin-top: 22px; margin-bottom: 22px; }
.pagination, .nav-links { padding-top: 20px; padding-bottom: 20px; gap: 6px; }
.comments-area { margin-bottom: 45px; padding-top: 20px; }
.site-footer { margin-top: 30px; }
.site-footer-inner { padding-top: 16px; padding-bottom: 18px; gap: 12px; }





@media (max-width: 620px) {
  .header-top { padding-top: 12px; padding-bottom: 12px; }
  .header-nav { padding-top: 7px; padding-bottom: 7px; }
  .primary-menu a { padding-top: 8px; padding-bottom: 8px; }
  .post-row { gap: 6px; }
  .entry-content { padding-top: 22px; padding-bottom: 42px; }
}




/* Homepage masthead: raw, typographic, and deliberately unpolished. */
.brutal-masthead {
  padding: clamp(18px, 2.5vw, 38px) var(--ef-gutter) clamp(24px, 4vw, 60px);
  border-bottom: 8px solid var(--ef-text);
  background: var(--ef-bg);
}
.brutal-masthead-top, .brutal-masthead-bottom {
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 24px;
  font-size:10px; line-height:1.3; font-weight:900; letter-spacing:.08em;
  text-transform:uppercase;
}
.brutal-masthead-top { padding-bottom:14px; border-bottom:1px solid var(--ef-text); }
.brutal-masthead h1 {
  margin: clamp(22px, 4vw, 58px) 0 clamp(18px, 3vw, 42px);
  font-size: clamp(76px, 20vw, 330px);
  line-height:.68; letter-spacing:-.13em; font-weight:1000;
  text-transform:uppercase;
}
.brutal-masthead h1 span { color:var(--ef-accent); }
.brutal-masthead-bottom { padding-top:14px; border-top:1px solid var(--ef-text); }
@media (max-width:620px) {
  .brutal-masthead h1 { font-size:clamp(76px, 23vw, 150px); }
  .brutal-masthead-top span:last-child, .brutal-masthead-bottom span:last-child { display:none; }
}


/* Tighter stacked nameplate: the two lines intentionally overlap slightly. */
.brutal-masthead {
  padding-top: 8px;
  padding-bottom: 10px;
}
.brutal-masthead-top {
  padding-bottom: 6px;
}
.brutal-masthead h1 {
  margin: 10px 0 8px;
  line-height: .54;
}
.brutal-masthead-bottom {
  padding-top: 6px;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    line-height: .54;
    margin-top: 9px;
    margin-bottom: 7px;
  }
}


/* Make the ERIC/FOLTIN letterforms physically overlap at the line boundary. */
.brutal-masthead h1 span {
  display: block;
  margin-top: -.12em;
  position: relative;
}


/* v1.15.0: ERIC and FOLTIN use zero line spacing. */
.brutal-masthead h1 {
  line-height: 0 !important;
  margin: 0 !important;
}
.brutal-masthead h1 span {
  display: block;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    line-height: 0 !important;
    margin: 0 !important;
  }
  .brutal-masthead h1 span {
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* v1.16.0: preserve the tight ERIC/FOLTIN treatment while reserving
   the full masthead height so the content below cannot collide with it. */
.brutal-masthead h1 {
  line-height: .68 !important;
  margin: 10px 0 8px !important;
}
.brutal-masthead h1 span {
  display: block;
  line-height: .68 !important;
  margin-top: -.12em !important;
  padding: 0 !important;
  position: relative;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    line-height: .68 !important;
    margin: 9px 0 7px !important;
  }
  .brutal-masthead h1 span {
    line-height: .68 !important;
    margin-top: -.12em !important;
  }
}


/* v1.17.0: zero line spacing between the masthead words, with
   reserved masthead height and clear space below FOLTIN. */
.brutal-masthead h1 {
  line-height: 0 !important;
  height: 1.18em;
  margin: 10px 0 22px !important;
  padding: 0 !important;
}
.brutal-masthead h1 span {
  display: block;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    line-height: 0 !important;
    height: 1.18em;
    margin: 9px 0 22px !important;
    padding: 0 !important;
  }
  .brutal-masthead h1 span {
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* v1.18.0: match the space above ERIC with the space below FOLTIN. */
.brutal-masthead h1 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    margin-top: 9px !important;
    margin-bottom: 9px !important;
  }
}


/* v1.19.0: keep the ERIC/FOLTIN lines touching, but move the lower
   masthead rule below the full FOLTIN lettering with matching clearance. */
.brutal-masthead h1 {
  line-height: 0 !important;
  height: 1.48em !important;
  margin: 10px 0 10px !important;
  padding: 0 !important;
}
.brutal-masthead h1 span {
  display: block;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    line-height: 0 !important;
    height: 1.48em !important;
    margin: 9px 0 9px !important;
    padding: 0 !important;
  }
  .brutal-masthead h1 span {
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* v1.20.0: increase and keep equal the clearances around the masthead name. */
.brutal-masthead h1 {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}


/* v1.21.0: preserve the original space above ERIC; add space only
   between the bottom of FOLTIN and the lower masthead rule. */
.brutal-masthead h1 {
  margin-top: 10px !important;
  margin-bottom: 24px !important;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    margin-top: 9px !important;
    margin-bottom: 18px !important;
  }
}


/* FoltinLABS Brutalist Wide 1.1: increase only the clearance below FOLTIN. */
.brutal-masthead h1 {
  margin-top: 10px !important;
  margin-bottom: 40px !important;
}
@media (max-width:620px) {
  .brutal-masthead h1 {
    margin-top: 9px !important;
    margin-bottom: 30px !important;
  }
}


/* FoltinLABS Brutalist Wide 1.2: background updated to shade 07. */


/* FoltinLABS Brutalist Wide 1.3: heavier structural rules and borders. */
.site-header,
.site-footer,
.ticker,
.brutal-masthead-top,
.brutal-masthead-bottom,
.archive-heading,
.widget-title,
.post-row,
.entry-footer,
.pagination,
.comments-area,
.comment-list li,
.site-main,
.sidebar {
  border-color: var(--ef-text) !important;
}
.site-header { border-bottom-width: 3px !important; }
.site-footer { border-top: 3px solid var(--ef-text) !important; }
.ticker,
.brutal-masthead-top,
.brutal-masthead-bottom,
.archive-heading,
.widget-title {
  border-width: 2px !important;
}
.post-row,
.entry-footer,
.pagination,
.comments-area,
.comment-list li,
.site-main,
.sidebar {
  border-width: 2px !important;
}
.widget,
.wp-block-group,
.wp-block-search,
.search-form,
input,
textarea,
select,
button,
.comment-form input,
.comment-form textarea {
  border-width: 2px !important;
  border-color: var(--ef-text) !important;
}
hr,
.wp-block-separator {
  border: 0 !important;
  border-top: 3px solid var(--ef-text) !important;
  opacity: 1 !important;
}
