/*
Theme Name: Marcze
Theme URI: https://marcze.de
Author: Marcze Media
Author URI: https://marcze.de
Description: Marcze Media — Software, Medien & Services. Corporate theme with dedicated page templates for every section (homepage, divisions, product/service details, about, press, careers, contact, legal). Navigation is driven by template assignment: create a page, pick the matching "Marcze ·" template, done. Bilingual DE/EN toggle (client-side, localStorage-persisted).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marcze
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #f6f2ea; }

/* ---------- Content max-width ----------
 * Sections keep their full-width backgrounds (dark stats strip, light
 * paper areas). We center their CONTENT by inflating horizontal padding
 * on wide viewports — so a 1400px content column sits inside each section
 * without adding DOM wrappers or fighting child `margin` rules.
 *
 *   padding-inline: max(<edge-gutter>, (viewport - max-width) / 2)
 *
 * Overridable in the Customizer (Marcze Theme → Layout). */
:root {
  --marcze-max-width: 1400px;
  --marcze-edge: 48px;
}
@media (max-width: 900px) {
  :root { --marcze-edge: 20px; }
}

/* Central rule: every top-level container gets symmetric horizontal padding
 * that grows on ultra-wide screens so content stays in a ≤ --marcze-max-width
 * column, but never below --marcze-edge (48 desktop / 20 mobile).
 * !important because several section rules later in this stylesheet use the
 * `padding: Yvert Xhor` shorthand, which would otherwise overwrite us. */
.g-section,
.g-section--plain,
.g-section--breadcrumb,
.g-section--dark,
.g-cta,
.inner-hero,
.legal-head,
.legal-body,
.detail-hero,
.site-footer,
.masthead {
  padding-left:  max(var(--marcze-edge), calc((100% - var(--marcze-max-width)) / 2)) !important;
  padding-right: max(var(--marcze-edge), calc((100% - var(--marcze-max-width)) / 2)) !important;
}
body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  color: #1a1814;
  font-size: 16px;
  line-height: 1.55;
}
body ::selection { background: #c9a96a; color: #1a1814; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.g-sans { font-family: 'Inter Tight', -apple-system, sans-serif; }
.g-mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Language toggle (CSS-hide variant) ---------- */
/* For simple inline strings use data-de/data-en; for complex blocks wrap
   content in .lang-de / .lang-en — CSS hides the non-active one based on
   the html[lang] attribute that JS maintains. */
html[lang="de"] .lang-en { display: none !important; }
html[lang="en"] .lang-de { display: none !important; }

/* ---------- Masthead / nav ---------- */
.masthead {
  border-bottom: 1px solid #1a1814;
  padding: 18px 48px;
  background: #f6f2ea;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  box-sizing: border-box;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}
.masthead-brand { display: flex; align-items: baseline; gap: 18px; }
.masthead-logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.masthead-kicker {
  font-size: 11px;
  color: #6a6356;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.g-nav { display: flex; gap: 26px; font-size: 14px; }
.g-nav a { transition: color 120ms ease; }
.g-nav a:hover,
.g-nav a.active { color: #8a6a2c; }

.lang-switch { font-size: 11px; display: flex; gap: 0; }
.lang-switch button {
  border: none;
  background: transparent;
  color: #1a1814;
  padding: 4px 8px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.lang-switch button.active { background: #1a1814; color: #f6f2ea; }

.lang-switch--lg { font-size: 13px; }
.lang-switch--lg button { padding: 8px 14px; font-size: 13px; }

/* ---------- Burger + mobile sheet ---------- */
.g-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #1a1814;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.g-burger span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: #1a1814;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}
.g-burger span:nth-child(1) { top: 13px; }
.g-burger span:nth-child(2) { top: 19px; }
.g-burger span:nth-child(3) { top: 25px; }
.g-burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.g-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.g-burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.g-mobile-sheet { display: none; }

/* ---------- Buttons / pills ---------- */
.g-btn-primary,
.g-btn-ghost {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-block;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.g-btn-primary {
  background: #1a1814;
  color: #f6f2ea;
  padding: 14px 26px;
  border: none;
}
.g-btn-primary:hover { background: #8a6a2c; }
.g-btn-ghost {
  border: 1px solid #1a1814;
  padding: 13px 26px;
  background: transparent;
  color: #1a1814;
}
.g-btn-ghost:hover { background: #1a1814; color: #f6f2ea; }

.g-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #1a1814;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6a2c;
}

/* ---------- Cards / rows ---------- */
.g-card {
  background: #fff;
  border: 1px solid #d8d3c5;
  transition: background 150ms ease;
}
.g-card:hover { background: #efe8d9; }
.g-row { transition: background 120ms ease; }
.g-row:hover { background: #efe8d9; }
.g-divider { height: 1px; background: #1a1814; }

.g-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #1a1814;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #1a1814;
}
.g-input:focus { outline: 2px solid #8a6a2c; outline-offset: -1px; }

/* ---------- Sections ---------- */
.g-section {
  padding: 72px 48px;
  border-bottom: 1px solid #1a1814;
}
.g-section--alt { background: #efe8d9; }
.g-section--dark { background: #1a1814; color: #f6f2ea; }
.g-section--dark .g-eyebrow { color: #c9a96a; }
.g-section--plain { padding: 64px 48px 48px; border-bottom: 1px solid #1a1814; }
.g-section--breadcrumb { padding: 40px 48px 16px; border-bottom: 1px solid #e8e3d5; }

.g-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a2c;
  margin-bottom: 32px;
}
.g-eyebrow--sm { font-size: 11px; }

.g-section-head {
  display: block;
  margin-bottom: 40px;
  max-width: 1000px;
}
.g-section-head-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a2c;
  margin-bottom: 20px;
}
.g-section-head h2 {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.g-section-head-sub {
  font-size: 18px;
  color: #3a362e;
  margin: 18px 0 0;
  max-width: 720px;
  text-wrap: pretty;
}

/* ---------- Hero (homepage) ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.hero-grid h1 {
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-lead {
  font-size: 21px;
  line-height: 1.5;
  color: #3a362e;
  max-width: 640px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 32px; }
.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #6a6356;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.portrait {
  aspect-ratio: 3/4;
  background: #d9d2c2;
  overflow: hidden;
  margin-bottom: 12px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.portrait-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6356;
}

/* ---------- Generic hero (division / inner) ---------- */
.inner-hero {
  padding: 72px 48px 56px;
  border-bottom: 1px solid #1a1814;
}
.inner-hero-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a2c;
  margin-bottom: 28px;
}
.inner-hero h1 {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: balance;
  max-width: 1100px;
}
.inner-hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: #3a362e;
  max-width: 700px;
  margin: 0;
  text-wrap: pretty;
}
.inner-hero .g-pill { margin-bottom: 22px; }

/* ---------- Divisions grid (homepage) ---------- */
.divisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.division-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.division-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.division-card-meta .n { color: #8a6a2c; letter-spacing: 0.08em; }
.division-card-meta .count { color: #6a6356; }
.division-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 14px;
}
.division-card p {
  font-size: 15px;
  color: #3a362e;
  line-height: 1.5;
  margin: 0 0 auto;
  text-wrap: pretty;
}
.division-card-more {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #c8c2b3;
  font-size: 13px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  color: #8a6a2c;
}

/* ---------- Product grid (software page) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.product-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 11px;
}
.product-card-meta .n {
  font-family: 'JetBrains Mono', monospace;
  color: #6a6356;
}
.product-card h3 {
  font-size: 34px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 14px;
}
.product-card .head {
  font-size: 15px;
  color: #3a362e;
  line-height: 1.5;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card ul li {
  font-size: 13px;
  color: #5a5346;
  line-height: 1.5;
}
.product-card-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px dashed #c8c2b3;
  margin-top: 20px;
  font-size: 13px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
}
.product-card-foot .price { color: #8a6a2c; }

/* ---------- Stats strip (dark) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
.stat-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  color: #c9a96a;
  margin-top: 10px;
  line-height: 1.3;
}

/* ---------- Manifesto list ---------- */
.manifesto { list-style: none; padding: 0; margin: 0; max-width: 900px; }
.manifesto li {
  font-size: 22px;
  line-height: 1.4;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 24, 20, 0.12);
  display: flex;
  gap: 18px;
}
.manifesto li:last-child { border-bottom: none; }
.manifesto .m-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #8a6a2c;
  padding-top: 8px;
}
.manifesto .m-text { text-wrap: pretty; }

/* ---------- CTA block ---------- */
.g-cta {
  padding: 80px 48px;
  background: #efe8d9;
  color: #1a1814;
  border-bottom: 1px solid #1a1814;
}
.g-cta--dark {
  background: #1a1814;
  color: #f6f2ea;
}
.g-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.g-cta-grid h3 {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 18px;
  text-wrap: balance;
}
.g-cta-grid p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
  color: #3a362e;
}
.g-cta--dark .g-cta-grid p { color: #c9a96a; }
.g-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.g-cta-primary {
  padding: 16px 32px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-block;
  background: #1a1814;
  color: #f6f2ea;
}
.g-cta--dark .g-cta-primary {
  background: #c9a96a;
  color: #1a1814;
}
.g-cta-secondary {
  padding: 15px 32px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-block;
  border: 1px solid #1a1814;
  color: #1a1814;
}
.g-cta--dark .g-cta-secondary {
  border-color: #c9a96a;
  color: #c9a96a;
}

/* ---------- Detail-page (products / services) ---------- */
.detail-hero {
  padding: 64px 48px 0;
  border-bottom: 1px solid #1a1814;
}
.detail-hero-h1 {
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 20px 0;
  max-width: 1100px;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.detail-hero-tagline {
  font-size: 22px;
  line-height: 1.45;
  color: #3a362e;
  max-width: 720px;
  margin: 0 0 56px;
  text-wrap: pretty;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
.detail-layout aside {
  position: sticky;
  top: 100px;
}
.detail-layout aside .g-card { padding: 26px; }
.detail-long {
  font-size: 18px;
  line-height: 1.65;
  color: #2a2620;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.detail-h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  border-top: 1px solid #e8e3d5;
}
.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e8e3d5;
  align-items: baseline;
}
.feature-list .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a6a2c;
}
.feature-list .t { font-size: 16px; line-height: 1.5; }

.spec-list { margin: 0; font-size: 13px; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #d8d3c5;
}
.spec-list > div:first-child { border-top: none; }
.spec-list dt {
  font-family: 'JetBrains Mono', monospace;
  color: #6a6356;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.spec-list dd {
  margin: 0;
  text-align: right;
  color: #1a1814;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
}
.sidebar-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-actions .g-btn-primary,
.sidebar-actions .g-btn-ghost { text-align: center; }

.faq details {
  border-bottom: 1px solid #e8e3d5;
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 16.5px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: #8a6a2c; }
.faq p {
  font-size: 15px;
  line-height: 1.6;
  color: #3a362e;
  margin: 12px 0 0;
  text-wrap: pretty;
}

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a6a2c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumb a { color: #8a8272; }
.breadcrumb .sep { color: #c8c2b3; }

.siblings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sibling-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.sibling-card .g-pill { align-self: flex-start; margin-bottom: 14px; }
.sibling-card h4 {
  font-size: 28px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.sibling-card p {
  font-size: 14px;
  color: #3a362e;
  line-height: 1.5;
  margin: 0 0 auto;
  text-wrap: pretty;
}
.sibling-card .more {
  margin-top: 18px;
  font-size: 13px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  color: #8a6a2c;
}

/* ---------- Services list (services page) ---------- */
.services-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d3c5;
  background: #fff;
}
.services-list-row {
  display: grid;
  grid-template-columns: 60px 260px 1fr 200px;
  gap: 24px;
  padding: 32px 28px;
  align-items: start;
  border-bottom: 1px solid #e8e3d5;
}
.services-list-row:last-child { border-bottom: none; }
.services-list-row .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a8272;
  padding-top: 8px;
}
.services-list-row .name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.services-list-row .delivery {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #b8864f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.services-list-row .desc {
  font-size: 14.5px;
  color: #3a362e;
  line-height: 1.6;
  text-wrap: pretty;
}
.services-list-row .price {
  text-align: right;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #8a6a2c;
}

/* ---------- Portals list (media page) ---------- */
.portals-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d3c5;
  background: #fff;
}
.portals-list-row {
  display: grid;
  grid-template-columns: 60px 180px 240px 1fr 40px;
  gap: 20px;
  padding: 24px 28px;
  align-items: baseline;
  border-bottom: 1px solid #e8e3d5;
}
.portals-list-row:last-child { border-bottom: none; }
.portals-list-row .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a8272;
}
.portals-list-row .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #b8864f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.portals-list-row .name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.portals-list-row .blurb {
  font-size: 14px;
  color: #4a463c;
  line-height: 1.5;
}
.portals-list-row .arrow { text-align: right; font-size: 18px; }

/* ---------- Jobs list (careers page) ---------- */
.jobs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d3c5;
  background: #fff;
}
.jobs-list-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px;
  gap: 24px;
  padding: 32px 28px;
  align-items: start;
  border-bottom: 1px solid #e8e3d5;
}
.jobs-list-row:last-child { border-bottom: none; }
.jobs-list-row .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a8272;
  padding-top: 8px;
}
.jobs-list-row .role {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.jobs-list-row .type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #b8864f;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.jobs-list-row .about {
  font-size: 14.5px;
  color: #3a362e;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
  max-width: 680px;
}
.jobs-list-row .apply { text-align: right; }

/* ---------- Press list ---------- */
.press-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #d8d3c5;
  background: #fff;
}
.press-list-row {
  display: grid;
  grid-template-columns: 80px 240px 1fr;
  gap: 24px;
  padding: 26px 28px;
  align-items: baseline;
  border-bottom: 1px solid #e8e3d5;
}
.press-list-row:last-child { border-bottom: none; }
.press-list-row .year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8a6a2c;
}
.press-list-row .outlet {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.press-list-row .quote {
  font-size: 15px;
  color: #3a362e;
  line-height: 1.5;
}

/* ---------- Three-up / four-up feature blocks ---------- */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.four-up {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.three-up h4,
.four-up h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.three-up h4 { font-size: 26px; }
.four-up h4 { font-size: 20px; }
.three-up p,
.four-up p {
  line-height: 1.55;
  color: #3a362e;
  margin: 0;
  text-wrap: pretty;
}
.three-up p { font-size: 15px; }
.four-up p { font-size: 14px; }
.three-up .n,
.four-up .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a6a2c;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Team grid (about page) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-member {
  padding: 20px 0;
  border-top: 1px solid #c8c2b3;
}
.team-member .name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.team-member .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a6a2c;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Timeline (about page) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1a1814;
}
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #e8e3d5;
  align-items: baseline;
}
.timeline-row:last-child { border-bottom: 1px solid #1a1814; }
.timeline-row .year {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #8a6a2c;
  letter-spacing: -0.02em;
}
.timeline-row .event {
  font-size: 17px;
  line-height: 1.5;
  color: #2a2620;
  text-wrap: pretty;
}

/* ---------- About intro (two columns of prose) ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}
.about-intro h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: balance;
}
.about-intro .prose {
  font-size: 18px;
  line-height: 1.65;
  color: #2a2620;
  column-count: 2;
  column-gap: 40px;
  text-wrap: pretty;
}
.about-intro .prose p { margin: 0 0 14px; }
.about-intro .prose p:last-child { margin: 0; }

/* ---------- Legal / prose pages ---------- */
.legal-head {
  padding: 64px 48px 48px;
  border-bottom: 1px solid #1a1814;
}
.legal-head h1 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
}
.legal-head p {
  font-size: 17px;
  line-height: 1.55;
  color: #3a362e;
  max-width: 680px;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.legal-body {
  padding: 48px 48px 80px;
  max-width: 860px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px 40px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #2a2620;
}
.legal-grid .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a6a2c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 3px;
}
.legal-sections { display: flex; flex-direction: column; }
.legal-sections > div {
  padding: 28px 0;
  border-top: 1px solid #e8e3d5;
}
.legal-sections > div:first-child { border-top: none; }
.legal-sections h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.legal-sections p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #2a2620;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Contact-page specifics ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card { padding: 28px; }
.contact-card h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.contact-card a.mail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #1a1814;
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #3a362e;
  margin: 0;
}
.contact-addr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-addr h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  color: #8a6a2c;
}
.contact-addr .body {
  font-size: 18px;
  line-height: 1.5;
  color: #2a2620;
}
.contact-addr .body.mono {
  font-size: 16px;
  line-height: 1.55;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Partners (media page) ---------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
}
.partners > span {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #6a6356;
  letter-spacing: -0.01em;
}

/* ---------- Press kit cards ---------- */
.press-kit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.press-kit-card { padding: 28px; display: block; }
.press-kit-card h4 {
  font-size: 22px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.press-kit-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #3a362e;
  margin: 0;
}
.press-kit-card .dl {
  margin-top: 18px;
  font-size: 13px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  color: #8a6a2c;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px;
  background: #1a1814;
  color: #f6f2ea;
  border-top: 1px solid #1a1814;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.footer-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #c9a96a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-about {
  font-size: 14px;
  color: #c9a96a;
  opacity: 0.8;
  line-height: 1.55;
  max-width: 380px;
  margin: 0;
}
.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #c9a96a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: #f6f2ea;
}
.footer-bottom {
  border-top: 1px solid rgba(246, 242, 234, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.footer-bottom,
.footer-bottom a { color: #c9a96a; }
.footer-legal { display: flex; gap: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid h1 { font-size: 64px; }
  .hero-grid { grid-template-columns: 1fr 280px; gap: 36px; }
  .divisions,
  .product-grid,
  .press-kit,
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-cta-grid h3 { font-size: 44px; }
  .inner-hero h1 { font-size: 56px; }
  .detail-layout { grid-template-columns: 1fr 280px; gap: 40px; }
  .detail-hero-h1 { font-size: 64px; }
  .three-up { grid-template-columns: 1fr; gap: 28px; }
  .four-up { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list-row { grid-template-columns: 40px 200px 1fr 140px; gap: 16px; }
  .portals-list-row { grid-template-columns: 40px 140px 180px 1fr 32px; gap: 16px; }
  .jobs-list-row { grid-template-columns: 40px 1fr 140px; }
  .press-list-row { grid-template-columns: 60px 180px 1fr; }
  .about-intro { grid-template-columns: 240px 1fr; gap: 32px; }
  .about-intro .prose { column-count: 1; }
}

@media (max-width: 900px) {
  /* Nav collapses to burger + sheet */
  .g-hide-mobile { display: none !important; }
  .g-burger { display: block; }
  .masthead { padding-top: 14px; padding-bottom: 14px; }
  .masthead-kicker { display: none; }
  .masthead-logo { font-size: 32px; }

  .g-mobile-sheet {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f6f2ea;
    z-index: 49;
    padding: 28px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
    border-top: 1px solid #1a1814;
  }
  .g-mobile-sheet.open { transform: translateX(0); }
  .g-mobile-sheet nav { display: flex; flex-direction: column; }
  .g-mobile-sheet nav a {
    display: block;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.02em;
    padding: 18px 0;
    border-bottom: 1px solid #d8d3c5;
    color: #1a1814;
  }
  .g-mobile-sheet nav a.active { color: #8a6a2c; }
  .g-mobile-foot {
    margin-top: 36px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #6a6356;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
  }
  body.g-nav-open { overflow: hidden; }

  /* Layout collapse (previously at 720px) */
  /* Horizontal padding is handled centrally by the max-width rule using
   * --marcze-edge, which becomes 20 on mobile via :root {} above. */
  .g-section,
  .g-cta { padding-top: 48px; padding-bottom: 48px; }
  .g-section--plain { padding-top: 40px; padding-bottom: 32px; }
  .hero-grid h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid > :last-child { max-width: 240px; }
  .g-section-head { margin-bottom: 28px; }
  .g-section-head-label { margin-bottom: 14px; }
  .g-section-head h2 { font-size: 32px; }
  .divisions,
  .product-grid,
  .press-kit,
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num { font-size: 48px; }
  .g-cta-grid { grid-template-columns: 1fr; gap: 24px; }
  .g-cta-grid h3 { font-size: 36px; }
  .g-cta-actions { justify-content: flex-start; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .manifesto li { font-size: 18px; }
  .inner-hero h1 { font-size: 40px; }
  .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .detail-layout aside { position: static; }
  .detail-hero { padding: 40px 20px 0; }
  .detail-hero-h1 { font-size: 44px; }
  .detail-hero-tagline { font-size: 18px; margin-bottom: 40px; }
  .about-intro { grid-template-columns: 1fr; }
  .about-intro .prose { column-count: 1; }
  .services-list-row,
  .portals-list-row,
  .jobs-list-row,
  .press-list-row { grid-template-columns: 1fr; gap: 8px; }
  .services-list-row .price { text-align: left; }
  .jobs-list-row .apply { text-align: left; }
  .portals-list-row .arrow { display: none; }
  .legal-grid { grid-template-columns: 1fr; gap: 6px 0; }
  .legal-grid > div:nth-child(odd) { padding-top: 14px; }
  .four-up { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-addr { grid-template-columns: 1fr; gap: 24px; }
  .siblings-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 80px 1fr; gap: 14px; }
  .timeline-row .year { font-size: 22px; }
  .timeline-row .event { font-size: 15px; }
}

@media (max-width: 520px) {
  .hero-grid h1 { font-size: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .g-mobile-sheet nav a { font-size: 26px; padding: 14px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-hero-h1 { font-size: 36px; }
}
