/*
Theme Name: Founding Editor
Theme URI: https://foundingeditor.com/
Author: Founding Editor
Author URI: https://foundingeditor.com/
Description: A monochrome editorial WordPress theme for founders, companies, ownership, technology, media and culture.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: founding-editor
Tags: blog, news, one-column, two-columns, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --fe-black: #090909;
  --fe-white: #ffffff;
  --fe-paper: #f4f2ed;
  --fe-grey-100: #eeeeeb;
  --fe-grey-300: #c9c8c3;
  --fe-grey-600: #6e6d69;
  --fe-rule: #171717;
  --fe-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --fe-sans: Inter, Arial, Helvetica, sans-serif;
  --fe-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fe-container: 1480px;
  --fe-gutter: clamp(18px, 3vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fe-black);
  background: var(--fe-white);
  font-family: var(--fe-sans);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-style: dotted; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
::selection { color: var(--fe-white); background: var(--fe-black); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 10px; left: 10px; width: auto; height: auto;
  padding: 12px 16px; clip: auto; color: var(--fe-white); background: var(--fe-black);
}
.fe-container { width: min(100%, var(--fe-container)); margin-inline: auto; padding-inline: var(--fe-gutter); }
.fe-rule { border: 0; border-top: 1px solid var(--fe-rule); margin: 0; }
.fe-kicker, .fe-eyebrow, .fe-meta, .fe-section-index {
  font-family: var(--fe-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; line-height: 1.35; text-transform: uppercase;
}
.fe-kicker { display: inline-flex; align-items: center; gap: 10px; }
.fe-kicker::before { content: ""; width: 22px; border-top: 2px solid currentColor; }

/* Header */
.site-header { background: var(--fe-white); border-bottom: 1px solid var(--fe-rule); }
.fe-utility {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 42px; border-bottom: 1px solid var(--fe-rule);
  font-family: var(--fe-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.fe-utility > :last-child { text-align: right; }
.fe-utility a { text-decoration: none; }
.fe-masthead-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: clamp(24px, 4vw, 56px); }
.fe-site-description { max-width: 210px; font-family: var(--fe-serif); font-size: 13px; line-height: 1.3; }
.site-title {
  margin: 0; font-family: var(--fe-serif); font-size: clamp(46px, 8.6vw, 132px);
  font-weight: 500; letter-spacing: -.065em; line-height: .78; text-align: center; white-space: nowrap;
}
.site-title a { text-decoration: none; }
.custom-logo { width: auto; max-width: min(760px, 62vw); max-height: 112px; object-fit: contain; }
.fe-header-action { justify-self: end; }
.fe-text-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  border: 0; border-bottom: 1px solid currentColor; background: transparent;
  font-family: var(--fe-mono); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase;
}
.fe-text-button::after { content: "\2197"; font-size: 14px; }
.fe-nav-row { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.primary-menu, .footer-menu { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 38px); margin: 0; padding: 0; list-style: none; }
.primary-menu a { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { border-bottom: 1px solid; }
.fe-menu-toggle { display: none; padding: 8px 0; border: 0; background: transparent; font-family: var(--fe-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fe-search-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; font-family: var(--fe-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.fe-search-panel { display: none; padding-block: 28px; border-top: 1px solid var(--fe-rule); }
.fe-search-panel.is-open { display: block; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.search-field {
  width: 100%; padding: 16px 0; border: 0; border-bottom: 2px solid var(--fe-black);
  border-radius: 0; outline: 0; background: transparent; font-family: var(--fe-serif); font-size: clamp(26px, 4vw, 56px);
}
.search-submit, .fe-solid-button {
  align-self: stretch; padding: 12px 22px; border: 1px solid var(--fe-black);
  color: var(--fe-white); background: var(--fe-black); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.search-submit:hover, .fe-solid-button:hover { color: var(--fe-black); background: var(--fe-white); }

/* Front page */
.fe-front { padding-bottom: 80px; }
.fe-lead-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .7fr); border-bottom: 1px solid var(--fe-rule); }
.fe-lead-story { padding: clamp(28px, 4vw, 62px) var(--fe-gutter) clamp(32px, 4vw, 60px) 0; border-right: 1px solid var(--fe-rule); }
.fe-lead-media { position: relative; aspect-ratio: 16 / 9; margin-bottom: 26px; overflow: hidden; background: var(--fe-grey-100); }
.fe-lead-media img, .fe-card-media img, .fe-feature-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
a:hover .fe-card-media img, .fe-lead-story:hover .fe-lead-media img { transform: scale(1.015); filter: grayscale(1) contrast(1.13); }
.fe-lead-title { max-width: 1180px; margin: 12px 0 16px; font-family: var(--fe-serif); font-size: clamp(46px, 6.5vw, 100px); font-weight: 500; letter-spacing: -.045em; line-height: .93; }
.fe-lead-title a, .fe-card-title a, .entry-title a { text-decoration: none; }
.fe-deck { max-width: 820px; margin: 0; color: #353535; font-family: var(--fe-serif); font-size: clamp(19px, 2vw, 27px); line-height: 1.35; }
.fe-lead-aside { padding: clamp(28px, 4vw, 62px) 0 clamp(32px, 4vw, 60px) var(--fe-gutter); }
.fe-aside-heading { display: flex; justify-content: space-between; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 4px solid var(--fe-black); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.fe-brief { padding: 22px 0; border-bottom: 1px solid var(--fe-rule); }
.fe-brief:first-of-type { padding-top: 0; }
.fe-brief:last-child { border-bottom: 0; }
.fe-brief h3 { margin: 7px 0 8px; font-family: var(--fe-serif); font-size: clamp(24px, 2.1vw, 34px); font-weight: 500; line-height: 1.02; }
.fe-brief h3 a { text-decoration: none; }
.fe-brief p { margin: 0; color: var(--fe-grey-600); font-size: 14px; line-height: 1.45; }

.fe-section { padding-block: clamp(48px, 7vw, 100px); border-bottom: 1px solid var(--fe-rule); }
.fe-section-header { display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 54px); }
.fe-section-title { margin: 0; font-family: var(--fe-serif); font-size: clamp(42px, 6vw, 88px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.fe-section-link { font-family: var(--fe-mono); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.fe-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--fe-rule); }
.fe-story-card { min-width: 0; padding: 26px; border-right: 1px solid var(--fe-rule); }
.fe-story-card:first-child { padding-left: 0; }
.fe-story-card:last-child { padding-right: 0; border-right: 0; }
.fe-card-media { aspect-ratio: 4 / 3; margin-bottom: 20px; overflow: hidden; background: var(--fe-grey-100); }
.fe-card-title { margin: 8px 0 12px; font-family: var(--fe-serif); font-size: clamp(27px, 2.4vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; }
.fe-card-excerpt { margin: 0 0 16px; color: #4c4b47; font-size: 14px; line-height: 1.55; }
.fe-card-placeholder, .fe-lead-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 20px;
  background: repeating-linear-gradient(135deg, #f3f3f0 0, #f3f3f0 10px, #e8e8e4 10px, #e8e8e4 11px);
  font-family: var(--fe-serif); font-size: clamp(24px, 4vw, 58px); font-style: italic; text-align: center;
}

.fe-manifesto { color: var(--fe-white); background: var(--fe-black); }
.fe-manifesto-inner { display: grid; grid-template-columns: 1fr 2.2fr; gap: var(--fe-gutter); padding-block: clamp(60px, 9vw, 140px); }
.fe-manifesto blockquote { margin: 0; font-family: var(--fe-serif); font-size: clamp(44px, 7vw, 112px); font-weight: 500; letter-spacing: -.05em; line-height: .92; }
.fe-manifesto blockquote p { margin: 0; }
.fe-manifesto .fe-kicker { color: #d6d6d0; }

.fe-profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--fe-rule); }
.fe-profile-card { padding: 22px; border-right: 1px solid var(--fe-rule); }
.fe-profile-card:first-child { padding-left: 0; }
.fe-profile-card:last-child { padding-right: 0; border-right: 0; }
.fe-profile-number { display: block; margin-bottom: 30px; font-family: var(--fe-mono); font-size: 11px; }
.fe-profile-card h3 { margin: 0 0 8px; font-family: var(--fe-serif); font-size: clamp(25px, 2.4vw, 38px); font-weight: 500; line-height: 1; }
.fe-profile-card a { text-decoration: none; }
.fe-profile-role { margin: 0; color: var(--fe-grey-600); font-size: 13px; }

.fe-newsletter { padding-block: clamp(62px, 8vw, 120px); background: var(--fe-paper); }
.fe-newsletter-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: var(--fe-gutter); }
.fe-newsletter h2 { max-width: 880px; margin: 12px 0 0; font-family: var(--fe-serif); font-size: clamp(48px, 7vw, 106px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.fe-newsletter-copy { max-width: 520px; justify-self: end; }
.fe-newsletter-copy p { margin-top: 0; font-family: var(--fe-serif); font-size: 21px; line-height: 1.4; }

/* Archives and articles */
.fe-page-header { padding-block: clamp(48px, 8vw, 110px); border-bottom: 1px solid var(--fe-rule); }
.fe-page-title, .entry-title { margin: 8px 0 0; font-family: var(--fe-serif); font-size: clamp(56px, 9vw, 138px); font-weight: 500; letter-spacing: -.055em; line-height: .86; }
.fe-page-description { max-width: 800px; margin: 28px 0 0; font-family: var(--fe-serif); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; }
.fe-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 0 80px; }
.fe-archive-grid .fe-story-card { padding-top: 34px; padding-bottom: 42px; border-bottom: 1px solid var(--fe-rule); }
.fe-archive-grid .fe-story-card:nth-child(3n + 1) { padding-left: 0; }
.fe-archive-grid .fe-story-card:nth-child(3n) { padding-right: 0; border-right: 0; }
.pagination { grid-column: 1 / -1; padding-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { min-width: 40px; padding: 8px 12px; border: 1px solid var(--fe-black); text-align: center; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: var(--fe-white); background: var(--fe-black); }

.single-post .site-main, .single-founder .site-main, .single-company .site-main, .single-issue .site-main { overflow: hidden; }
.fe-article-header { padding-block: clamp(44px, 7vw, 100px) 32px; }
.fe-article-header .entry-title { max-width: 1300px; }
.fe-article-deck { max-width: 900px; margin: 28px 0 0; font-family: var(--fe-serif); font-size: clamp(21px, 2.6vw, 34px); line-height: 1.3; }
.fe-article-byline { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--fe-rule); }
.fe-article-image { margin: 0 auto; width: min(100%, 1800px); }
.fe-article-image img { width: 100%; max-height: 900px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.fe-article-layout { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 2fr) minmax(160px, .55fr); gap: var(--fe-gutter); padding-block: clamp(48px, 7vw, 100px); }
.fe-article-content { min-width: 0; font-family: var(--fe-serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.72; }
.fe-article-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.fe-article-content > .alignwide { max-width: 1120px; }
.fe-article-content > .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.fe-article-content p:first-child::first-letter { float: left; margin: .08em .12em 0 0; font-size: 5.4em; font-weight: 500; line-height: .68; }
.fe-article-content h2, .fe-article-content h3 { margin-top: 2.2em; font-weight: 500; line-height: 1.05; }
.fe-article-content h2 { font-size: clamp(36px, 4vw, 58px); }
.fe-article-content h3 { font-size: clamp(28px, 3vw, 42px); }
.fe-article-content blockquote { max-width: 1050px; margin-block: 2em; padding-block: .7em; border-top: 1px solid; border-bottom: 1px solid; font-size: clamp(32px, 4.8vw, 68px); font-style: italic; line-height: 1.05; }
.fe-article-content figcaption { color: var(--fe-grey-600); font-family: var(--fe-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.fe-article-aside { font-size: 12px; }
.fe-aside-label { padding-top: 10px; border-top: 3px solid; font-family: var(--fe-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fe-share-links { display: grid; gap: 8px; margin-top: 16px; }
.fe-share-links a { text-decoration: none; }
.fe-tax-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fe-tax-list a { padding: 5px 8px; border: 1px solid; font-family: var(--fe-mono); font-size: 9px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.fe-entity-facts { margin: 0; border-top: 4px solid var(--fe-black); }
.fe-entity-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--fe-rule); }
.fe-entity-facts dt { font-family: var(--fe-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fe-entity-facts dd { margin: 0; font-family: var(--fe-serif); font-size: 17px; line-height: 1.3; }

/* Footer */
.site-footer { color: var(--fe-white); background: var(--fe-black); }
.fe-footer-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--fe-gutter); padding-block: clamp(62px, 8vw, 120px); border-bottom: 1px solid #4a4a4a; }
.fe-footer-mark { margin: 0; font-family: var(--fe-serif); font-size: clamp(58px, 10vw, 150px); font-weight: 500; letter-spacing: -.065em; line-height: .8; }
.fe-footer-copy { max-width: 520px; justify-self: end; font-family: var(--fe-serif); font-size: 20px; }
.fe-footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 20px; font-family: var(--fe-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.fe-footer-bottom > :last-child { text-align: right; }
.footer-menu { gap: 18px; }
.footer-menu a { text-decoration: none; }

/* Core */
.wp-caption, .gallery-caption { max-width: 100%; }
.bypostauthor { outline: 0; }
.sticky .fe-card-title::after { content: " / Selected"; font-family: var(--fe-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.comments-area { max-width: 780px; margin: 0 auto 80px; padding-top: 40px; border-top: 1px solid; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--fe-black); border-radius: 0; color: var(--fe-black); background: var(--fe-white);
}

@media (max-width: 1000px) {
  .fe-site-description, .fe-header-action { display: none; }
  .fe-masthead-row { grid-template-columns: 1fr; }
  .site-title { font-size: clamp(44px, 13vw, 100px); }
  .fe-lead-grid { grid-template-columns: 1fr; }
  .fe-lead-story { padding-right: 0; border-right: 0; }
  .fe-lead-aside { padding-left: 0; border-top: 1px solid; }
  .fe-story-grid, .fe-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .fe-story-card:nth-child(2n) { padding-right: 0; border-right: 0; }
  .fe-story-card:nth-child(2n + 1) { padding-left: 0; border-right: 1px solid; }
  .fe-profile-grid { grid-template-columns: repeat(2, 1fr); }
  .fe-profile-card:nth-child(2) { padding-right: 0; border-right: 0; }
  .fe-profile-card:nth-child(3) { padding-left: 0; }
  .fe-manifesto-inner, .fe-newsletter-grid, .fe-footer-top { grid-template-columns: 1fr; }
  .fe-newsletter-copy, .fe-footer-copy { justify-self: start; }
  .fe-article-layout { grid-template-columns: 1fr minmax(0, 3fr); }
  .fe-article-layout > :last-child { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .fe-utility { grid-template-columns: 1fr auto; }
  .fe-utility > :nth-child(2) { display: none; }
  .fe-nav-row { min-height: 52px; }
  .fe-menu-toggle { display: block; }
  .primary-navigation { position: fixed; z-index: 9999; inset: 0; display: none; padding: 80px var(--fe-gutter) 40px; color: var(--fe-white); background: var(--fe-black); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { display: grid; gap: 0; }
  .primary-menu li { border-bottom: 1px solid #555; }
  .primary-menu a { display: block; padding: 14px 0; font-family: var(--fe-serif); font-size: 34px; font-weight: 500; letter-spacing: -.02em; text-transform: none; }
  .fe-menu-close { position: absolute; top: 20px; right: var(--fe-gutter); color: var(--fe-white); }
  .fe-section-header { grid-template-columns: 40px 1fr; }
  .fe-section-link { grid-column: 2; }
  .fe-story-grid, .fe-archive-grid, .fe-profile-grid { grid-template-columns: 1fr; }
  .fe-story-card, .fe-story-card:first-child, .fe-story-card:last-child,
  .fe-archive-grid .fe-story-card:nth-child(3n + 1), .fe-archive-grid .fe-story-card:nth-child(3n),
  .fe-profile-card, .fe-profile-card:first-child, .fe-profile-card:last-child {
    padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--fe-rule);
  }
  .fe-article-layout { grid-template-columns: 1fr; }
  .fe-article-aside { order: 2; }
  .fe-article-content { order: 1; }
  .fe-footer-bottom { grid-template-columns: 1fr; padding-block: 24px; }
  .fe-footer-bottom > :last-child { text-align: left; }
  .footer-menu { flex-wrap: wrap; }
  .search-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
