/*
Theme Name: RoboMorrow
Theme URI: https://robomorrow.com
Author: Michał Sroka & OpenAI
Description: Redakcyjny motyw WordPress dla europejskiego portalu o robotyce użytkowej.
Version: 0.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: robomorrow
License: GNU General Public License v2 or later
*/

:root {
  --rm-bg: #f3f1eb;
  --rm-paper: #fbfaf6;
  --rm-white: #fff;
  --rm-ink: #11120f;
  --rm-muted: #65665f;
  --rm-line: #c9c8c1;
  --rm-soft-line: #deddd7;
  --rm-accent: #b7ff45;
  --rm-accent-dark: #526f1d;
  --rm-blue: #2c51ff;
  --rm-red: #f24a2e;
  --rm-black: #10110f;
  --rm-container: 1320px;
  --rm-shadow: 0 22px 60px rgba(16,17,15,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--rm-bg);
  color: var(--rm-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.rm-container { width: min(calc(100% - 48px), var(--rm-container)); margin-inline: auto; }
.rm-narrow { width: min(calc(100% - 48px), 840px); margin-inline: auto; }
.rm-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; }
.rm-skip-link:focus { left: 8px; background: #fff; padding: 10px 14px; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Header */
.site-header { background: var(--rm-paper); border-bottom: 1px solid var(--rm-ink); }
.rm-topline { background: var(--rm-black); color: #fff; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.rm-topline-inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rm-topline-inner > div { display: flex; align-items: center; gap: 18px; }
.rm-topline a { color: var(--rm-accent); }
.rm-header-main { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.rm-brand { display: inline-flex; flex-direction: column; line-height: 1; }
.rm-brand-name { font-family: Arial Black, Impact, Haettenschweiler, sans-serif; font-size: clamp(34px, 4vw, 58px); font-weight: 950; letter-spacing: -.075em; }
.rm-brand-name span, .rm-footer-wordmark span { color: var(--rm-blue); }
.rm-brand small { margin: 7px 0 0 3px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .25em; color: var(--rm-muted); }
.rm-header-actions { display: flex; align-items: center; gap: 16px; }
.rm-database-link { min-height: 44px; display: inline-flex; align-items: center; gap: 22px; border: 1px solid var(--rm-ink); padding: 0 17px; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; transition: .18s ease; }
.rm-database-link span { font-size: 19px; }
.rm-database-link:hover { background: var(--rm-accent); }
.rm-menu-toggle { display: none; border: 1px solid var(--rm-ink); background: transparent; width: 44px; height: 44px; }
.rm-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--rm-ink); margin: 4px auto; }
.rm-nav-shell { border-top: 1px solid var(--rm-ink); }
.rm-nav { min-height: 48px; display: flex; align-items: center; }
.rm-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.rm-nav li { border-right: 1px solid var(--rm-line); }
.rm-nav li:first-child { border-left: 1px solid var(--rm-line); }
.rm-nav a { min-height: 47px; display: flex; align-items: center; padding: 0 20px; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.rm-nav a:hover { background: var(--rm-accent); }
.rm-nav .menu-item-has-children { position: relative; }
.rm-nav .sub-menu { display:none; position:absolute; top:100%; left:0; min-width:230px; z-index:20; background:var(--rm-paper); border:1px solid var(--rm-ink); }
.rm-nav .sub-menu li { border:0; border-bottom:1px solid var(--rm-line); }
.rm-nav .sub-menu a { min-height:42px; }
.rm-nav .menu-item-has-children:hover .sub-menu { display:block; }

/* Breaking strip */
.rm-breaking { background: var(--rm-accent); border-bottom: 1px solid var(--rm-ink); }
.rm-breaking-inner { min-height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; font-size: 12px; }
.rm-breaking strong { background: var(--rm-ink); color: #fff; padding: 4px 7px; font-size: 9px; letter-spacing: .12em; }
.rm-breaking a { font-weight: 850; white-space: nowrap; }

/* Lead */
.rm-front-feature { padding: 34px 0 48px; background: var(--rm-paper); border-bottom: 1px solid var(--rm-ink); }
.rm-lead-grid { display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(300px, .72fr); gap: 30px; }
.rm-lead-story { min-width: 0; padding-right: 30px; border-right: 1px solid var(--rm-ink); }
.rm-lead-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #d7d8d4; }
.rm-lead-media::after, .rm-side-media::after, .rm-editorial-media::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events:none; }
.rm-lead-media img, .rm-side-media img, .rm-editorial-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.rm-lead-story:hover .rm-lead-media img, .rm-side-story:hover .rm-side-media img, .rm-editorial-card:hover .rm-editorial-media img { transform: scale(1.025); }
.rm-image-index { position: absolute; left: 0; bottom: 0; background: var(--rm-accent); border-top: 1px solid var(--rm-ink); border-right: 1px solid var(--rm-ink); padding: 8px 11px; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.rm-story-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.rm-story-meta span { color: var(--rm-blue); }
.rm-story-meta time { color: var(--rm-muted); }
.rm-story-meta time::before { content: "•"; margin-right: 10px; color: var(--rm-ink); }
.rm-lead-story h1 { max-width: 990px; margin: 12px 0 13px; font-family: Arial Black, Impact, sans-serif; font-size: clamp(40px, 5.2vw, 74px); line-height: .98; letter-spacing: -.065em; }
.rm-lead-story h1 a:hover, .rm-side-story h2 a:hover, .rm-editorial-card h3 a:hover, .rm-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rm-lead-story > p { max-width: 850px; margin: 0; color: var(--rm-muted); font-size: 18px; }
.rm-side-stories { display: grid; align-content: start; gap: 26px; }
.rm-side-story + .rm-side-story { border-top: 1px solid var(--rm-ink); padding-top: 26px; }
.rm-side-media { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #d7d8d4; }
.rm-side-story h2 { margin: 10px 0 13px; font-size: clamp(24px, 2.2vw, 33px); line-height: 1.02; letter-spacing: -.045em; }
.rm-read-link { display: inline-flex; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--rm-blue); }
.rm-read-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Topic rail */
.rm-topic-rail { background: var(--rm-paper); border-bottom: 1px solid var(--rm-ink); }
.rm-topic-inner { min-height: 55px; display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.rm-topic-inner::-webkit-scrollbar { display:none; }
.rm-topic-inner span, .rm-topic-inner a { flex: 0 0 auto; min-height: 55px; display: flex; align-items: center; padding: 0 16px; border-right: 1px solid var(--rm-line); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.rm-topic-inner span { padding-left: 0; color: var(--rm-muted); }
.rm-topic-inner a:hover { background: var(--rm-blue); color: #fff; }

/* Sections */
.rm-section { padding: 82px 0; }
.rm-section-tight { padding: 54px 0 86px; }
.rm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.rm-section-head-rule { padding-bottom: 16px; border-bottom: 2px solid var(--rm-ink); }
.rm-section-head > div { display: flex; align-items: end; gap: 18px; }
.rm-section-no { display: inline-flex; min-width: 44px; font-size: 10px; font-weight: 900; letter-spacing: .12em; color: var(--rm-blue); }
.rm-section-no.light { color: var(--rm-accent); }
.rm-section-head h2 { margin: 0; font-family: Arial Black, Impact, sans-serif; font-size: clamp(38px, 4vw, 60px); line-height: .92; letter-spacing: -.06em; }
.rm-text-link { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.rm-text-link:hover { color: var(--rm-blue); }
.rm-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.rm-editorial-card { min-width: 0; }
.rm-editorial-card + .rm-editorial-card { border-left: 1px solid var(--rm-line); padding-left: 24px; }
.rm-editorial-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #d7d8d4; }
.rm-editorial-card h3 { margin: 10px 0; font-size: clamp(23px, 2.1vw, 32px); line-height: 1.03; letter-spacing: -.045em; }
.rm-editorial-card p { margin: 0; color: var(--rm-muted); font-size: 14px; }

/* Manifesto */
.rm-manifesto { background: var(--rm-black); color: #fff; padding: 86px 0; }
.rm-manifesto-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 80px; }
.rm-manifesto h2 { max-width: 800px; margin: 12px 0 0; font-family: Arial Black, Impact, sans-serif; font-size: clamp(48px, 6.2vw, 86px); line-height: .92; letter-spacing: -.07em; }
.rm-manifesto-copy > p { margin: 0 0 30px; color: #bdbfb8; font-size: 18px; }
.rm-manifesto-copy ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid #44453f; }
.rm-manifesto-copy li { display: grid; grid-template-columns: 42px 150px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid #44453f; align-items: start; }
.rm-manifesto-copy li > span { color: var(--rm-accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.rm-manifesto-copy li strong { font-size: 15px; }
.rm-manifesto-copy li small { color: #a2a49d; font-size: 13px; }

/* Robot database */
.rm-database-section { background: var(--rm-paper); border-bottom: 1px solid var(--rm-ink); }
.rm-robot-list { border-top: 1px solid var(--rm-ink); }
.rm-robot-row { display: grid; grid-template-columns: minmax(220px,1.25fr) minmax(120px,.65fr) minmax(135px,.65fr) minmax(200px,1fr) minmax(200px,1fr) 44px; align-items: center; min-height: 102px; border-bottom: 1px solid var(--rm-line); transition: .15s ease; }
.rm-robot-row:hover { background: var(--rm-accent); }
.rm-robot-row-name { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rm-robot-code { width: 42px; height: 42px; display: grid; place-items: center; background: var(--rm-ink); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.rm-robot-row-name > span:last-child { display: grid; gap: 2px; min-width: 0; }
.rm-robot-row-name strong { font-size: 19px; line-height: 1; }
.rm-robot-row-name small { color: var(--rm-muted); font-size: 11px; }
.rm-robot-row-cell { min-width: 0; display: grid; gap: 4px; padding: 0 18px; border-left: 1px solid var(--rm-line); }
.rm-robot-row-cell small { color: var(--rm-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.rm-robot-row-cell strong, .rm-robot-row-cell span { font-size: 12px; line-height: 1.3; }
.rm-status { display: inline-flex; width: fit-content; padding: 5px 7px; background: #e0e0db; font-size: 9px !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 900; }
.rm-status.available { background: #d1ff88; }
.rm-status.pilot { background: #ffd5c7; }
.rm-row-arrow { height: 100%; display: grid; place-items: center; border-left: 1px solid var(--rm-line); font-size: 22px; }

/* Newsletter */
.rm-newsletter { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.72fr); gap: 70px; align-items: end; padding: clamp(34px, 5vw, 72px); border: 1px solid var(--rm-ink); background: var(--rm-blue); color: #fff; box-shadow: 12px 12px 0 var(--rm-accent); }
.rm-newsletter h2 { max-width: 780px; margin: 10px 0 14px; font-family: Arial Black, Impact, sans-serif; font-size: clamp(43px, 5vw, 72px); line-height: .92; letter-spacing: -.065em; }
.rm-newsletter p { max-width: 700px; margin: 0; color: #dce3ff; }
.rm-newsletter-form { display: flex; border-bottom: 2px solid #fff; }
.rm-newsletter-form input { min-width: 0; flex: 1; min-height: 56px; padding: 0; border: 0; background: transparent; color: #fff; outline: none; }
.rm-newsletter-form input::placeholder { color: #d9dfff; }
.rm-newsletter-form button { border: 0; background: transparent; color: var(--accent, #fff); font-weight: 900; }
.rm-form-note { margin-top: 10px; color: #d9dfff; font-size: 10px; }

/* Archive and cards */
.rm-archive-hero { background: var(--rm-paper); border-bottom: 1px solid var(--rm-ink); padding: 65px 0; }
.rm-archive-hero h1 { margin: 8px 0 10px; font-family: Arial Black, Impact, sans-serif; font-size: clamp(48px,7vw,90px); line-height:.92; letter-spacing:-.07em; }
.rm-archive-hero p { max-width: 760px; margin: 0; color: var(--rm-muted); font-size: 17px; }
.rm-eyebrow { color: var(--rm-blue); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.rm-post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.rm-card { min-width:0; border-top:2px solid var(--rm-ink); padding-top:14px; }
.rm-card + .rm-card { border-left:1px solid var(--rm-line); padding-left:24px; }
.rm-card-media { position:relative; display:block; aspect-ratio:4/3; overflow:hidden; background:#d4d5d0; }
.rm-card-media img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.rm-card:hover .rm-card-media img { transform:scale(1.025); }
.rm-card-placeholder { width:100%; height:100%; padding:24px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(135deg,var(--rm-black),#2b2d29); color:#fff; }
.rm-card-placeholder small { color:var(--rm-accent); font-weight:900; letter-spacing:.12em; }
.rm-card-placeholder strong { font-size:27px; line-height:1; letter-spacing:-.04em; }
.rm-card-body { padding-top:4px; }
.rm-card h3 { margin:10px 0; font-size:28px; line-height:1.02; letter-spacing:-.045em; }
.rm-card p { margin:0 0 15px; color:var(--rm-muted); font-size:14px; }
.rm-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:50px; align-items:start; }
.rm-sidebar { position:sticky; top:25px; border-top:2px solid var(--rm-ink); padding-top:18px; }
.rm-sidebar h3 { margin-top:0; }
.rm-sidebar ul { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.rm-single { padding:72px 0 90px; }
.rm-single-header { width:min(100%,960px); margin-bottom:38px; }
.rm-single-header h1 { margin:16px 0; font-family:Arial Black,Impact,sans-serif; font-size:clamp(44px,6vw,78px); line-height:.98; letter-spacing:-.065em; }
.rm-single-meta { color:var(--rm-muted); font-size:13px; }
.rm-featured { width:100%; max-height:700px; object-fit:cover; margin:0 0 42px; }
.rm-entry { font-size:18px; }
.rm-entry > * { max-width:840px; margin-left:auto; margin-right:auto; }
.rm-entry h2,.rm-entry h3 { line-height:1.08; letter-spacing:-.04em; margin-top:2em; }
.rm-entry h2 { font-size:40px; }
.rm-entry h3 { font-size:29px; }
.rm-entry a { color:var(--rm-blue); text-decoration:underline; text-underline-offset:3px; }
.rm-entry blockquote { border-left:5px solid var(--rm-blue); padding:14px 24px; background:var(--rm-paper); }
.rm-entry table { width:100%; border-collapse:collapse; display:block; overflow-x:auto; }
.rm-entry td,.rm-entry th { border:1px solid var(--rm-line); padding:12px; white-space:nowrap; }
.rm-robot-detail { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:50px; }
.rm-spec-box { border-top:2px solid var(--rm-ink); padding-top:18px; position:sticky; top:25px; }
.rm-spec-box dl { margin:0; }
.rm-spec-box div { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid var(--rm-line); }
.rm-spec-box dt { color:var(--rm-muted); }
.rm-spec-box dd { margin:0; font-weight:800; text-align:right; }
.rm-pagination { margin-top:40px; }
.rm-pagination .nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.rm-pagination a,.rm-pagination span { min-width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--rm-ink); }
.rm-pagination .current { background:var(--rm-ink); color:#fff; }
.rm-empty { padding:35px; border:1px solid var(--rm-ink); background:var(--rm-paper); }

/* Footer */
.site-footer { background: var(--rm-black); color: #fff; padding: 72px 0 28px; }
.rm-footer-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; padding-bottom: 50px; border-bottom: 1px solid #3e403a; }
.rm-footer-wordmark { font-family: Arial Black, Impact, sans-serif; font-size: clamp(48px,7vw,90px); letter-spacing: -.075em; line-height: .85; }
.rm-footer-lead p { margin: 0; color: #b1b3ad; font-size: 18px; }
.rm-footer-grid { display: grid; grid-template-columns: .7fr .8fr 1.5fr; gap: 60px; padding: 42px 0; }
.rm-footer-col h3 { margin:0 0 15px; color:var(--rm-accent); font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.rm-footer-col ul { list-style:none; padding:0; margin:0; display:grid; gap:9px; }
.rm-footer-col a,.rm-footer-col p { color:#b1b3ad; font-size:13px; }
.rm-footer-col a:hover { color:#fff; }
.rm-footer-note p { max-width:520px; margin:0; }
.rm-footer-bottom { display:flex; justify-content:space-between; gap:28px; padding-top:22px; border-top:1px solid #3e403a; color:#858780; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }

@media (max-width: 1050px) {
  .rm-topline-inner > span { display:none; }
  .rm-topline-inner { justify-content:flex-end; }
  .rm-nav-shell { position:relative; }
  .rm-nav { display:none; position:absolute; z-index:30; left:24px; right:24px; top:0; background:var(--rm-paper); border:1px solid var(--rm-ink); padding:8px; }
  .rm-nav.is-open { display:block; }
  .rm-nav ul { display:grid; }
  .rm-nav li,.rm-nav li:first-child { border:0; border-bottom:1px solid var(--rm-line); }
  .rm-menu-toggle { display:block; }
  .rm-lead-grid { grid-template-columns:1fr; }
  .rm-lead-story { border-right:0; padding-right:0; }
  .rm-side-stories { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rm-side-story + .rm-side-story { border-top:0; padding-top:0; border-left:1px solid var(--rm-line); padding-left:24px; }
  .rm-manifesto-grid,.rm-newsletter { grid-template-columns:1fr; }
  .rm-robot-row { grid-template-columns: minmax(220px,1.3fr) minmax(110px,.6fr) minmax(130px,.7fr) 44px; }
  .rm-robot-row-wide { display:none; }
  .rm-content-grid,.rm-robot-detail { grid-template-columns:1fr; }
  .rm-sidebar,.rm-spec-box { position:static; }
}

@media (max-width: 760px) {
  .rm-container,.rm-narrow { width:min(calc(100% - 28px),var(--rm-container)); }
  .rm-topline { display:none; }
  .rm-header-main { min-height:84px; }
  .rm-brand-name { font-size:34px; }
  .rm-brand small { display:none; }
  .rm-database-link { display:none; }
  .rm-nav { left:14px; right:14px; }
  .rm-breaking-inner { grid-template-columns:auto 1fr; min-height:48px; }
  .rm-breaking a { display:none; }
  .rm-front-feature { padding-top:20px; }
  .rm-lead-story h1 { font-size:clamp(38px,12vw,58px); }
  .rm-lead-story > p { font-size:16px; }
  .rm-side-stories { grid-template-columns:1fr; }
  .rm-side-story + .rm-side-story { border-left:0; padding-left:0; border-top:1px solid var(--rm-ink); padding-top:22px; }
  .rm-section { padding:62px 0; }
  .rm-section-head { align-items:start; }
  .rm-section-head > div { gap:10px; }
  .rm-text-link { display:none; }
  .rm-editorial-grid,.rm-post-grid { grid-template-columns:1fr; }
  .rm-editorial-card + .rm-editorial-card,.rm-card + .rm-card { border-left:0; padding-left:0; border-top:1px solid var(--rm-ink); padding-top:24px; }
  .rm-manifesto { padding:66px 0; }
  .rm-manifesto-grid { gap:42px; }
  .rm-manifesto h2 { font-size:clamp(44px,14vw,66px); }
  .rm-manifesto-copy li { grid-template-columns:34px 110px 1fr; gap:10px; }
  .rm-robot-row { grid-template-columns:1fr 44px; padding:18px 0; min-height:unset; }
  .rm-robot-row-cell { display:none; }
  .rm-row-arrow { border-left:0; }
  .rm-newsletter { gap:36px; padding:32px 22px; box-shadow:7px 7px 0 var(--rm-accent); }
  .rm-newsletter-form { flex-direction:column; border-bottom:0; }
  .rm-newsletter-form input { border-bottom:2px solid #fff; }
  .rm-newsletter-form button { min-height:46px; text-align:left; padding:0; }
  .rm-footer-lead,.rm-footer-grid { grid-template-columns:1fr; gap:30px; }
  .rm-footer-bottom { flex-direction:column; }
}

/* Small reusable controls */
.rm-kicker { color: var(--rm-blue); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.rm-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.rm-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:0 17px; border:1px solid var(--rm-ink); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.rm-button-primary { background:var(--rm-ink); color:#fff; }
.rm-button-primary:hover { background:var(--rm-blue); color:#fff; }

/* v0.3 — mobile polish and safer first-run layout */
.rm-brand-name { white-space: nowrap; }
.rm-section-head h2 { text-wrap: balance; }
.rm-lead-story h1,
.rm-side-story h2,
.rm-editorial-card h3,
.rm-manifesto h2,
.rm-newsletter h2 { text-wrap: balance; overflow-wrap: anywhere; }
.rm-pagination ul { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }

@media (max-width: 760px) {
  .rm-container,.rm-narrow { width:calc(100% - 30px); }
  .rm-header-main { min-height:72px; gap:12px; }
  .rm-brand-name { font-size:clamp(25px,7.2vw,31px); letter-spacing:-.08em; }
  .rm-menu-toggle { width:42px; height:42px; flex:0 0 42px; }
  .rm-breaking-inner { min-height:42px; gap:10px; font-size:10px; line-height:1.25; }
  .rm-breaking strong { font-size:8px; }
  .rm-front-feature { padding:16px 0 30px; }
  .rm-lead-media { aspect-ratio:4/3; }
  .rm-lead-story h1 { margin:10px 0; font-size:clamp(34px,9.8vw,47px); line-height:.96; }
  .rm-lead-story > p { font-size:15px; line-height:1.55; }
  .rm-story-meta { margin-top:10px; font-size:8px; gap:7px; }
  .rm-story-meta time::before { margin-right:7px; }
  .rm-side-stories { gap:0; margin-top:24px; border-top:1px solid var(--rm-ink); }
  .rm-side-story,
  .rm-side-story + .rm-side-story {
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:14px;
    border:0;
    border-bottom:1px solid var(--rm-line);
    padding:16px 0;
  }
  .rm-side-media { grid-column:1; grid-row:1 / span 3; aspect-ratio:1/1; }
  .rm-side-story .rm-story-meta,
  .rm-side-story h2,
  .rm-side-story .rm-read-link { grid-column:2; }
  .rm-side-story .rm-story-meta { margin:0 0 5px; }
  .rm-side-story h2 { margin:0 0 8px; font-size:21px; line-height:1.02; }
  .rm-side-story .rm-read-link { align-self:end; }
  .rm-topic-inner { min-height:46px; }
  .rm-topic-inner span,.rm-topic-inner a { min-height:46px; padding:0 12px; font-size:8px; }
  .rm-topic-inner span { padding-left:0; }
  .rm-section { padding:50px 0; }
  .rm-section-tight { padding:38px 0 58px; }
  .rm-section-head { margin-bottom:22px; }
  .rm-section-head-rule { padding-bottom:11px; }
  .rm-section-no { min-width:28px; font-size:8px; }
  .rm-section-head h2 { font-size:clamp(33px,10vw,44px); line-height:.94; }
  .rm-editorial-grid { gap:0; }
  .rm-editorial-card,
  .rm-editorial-card + .rm-editorial-card {
    display:grid;
    grid-template-columns:120px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:14px;
    border:0;
    border-bottom:1px solid var(--rm-line);
    padding:16px 0;
  }
  .rm-editorial-media { grid-column:1; grid-row:1 / span 3; aspect-ratio:1/1; }
  .rm-editorial-card .rm-story-meta,
  .rm-editorial-card h3,
  .rm-editorial-card p { grid-column:2; }
  .rm-editorial-card .rm-story-meta { margin:0 0 5px; }
  .rm-editorial-card h3 { margin:0 0 7px; font-size:20px; line-height:1.03; }
  .rm-editorial-card p { font-size:12px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .rm-manifesto { padding:54px 0; }
  .rm-manifesto-grid { gap:30px; }
  .rm-manifesto h2 { margin-top:8px; font-size:clamp(39px,11.8vw,52px); line-height:.94; }
  .rm-manifesto-copy > p { margin-bottom:20px; font-size:15px; }
  .rm-manifesto-copy li { grid-template-columns:30px 105px minmax(0,1fr); gap:8px; padding:14px 0; }
  .rm-manifesto-copy li strong { font-size:13px; }
  .rm-manifesto-copy li small { font-size:11px; }
  .rm-robot-row { padding:15px 0; }
  .rm-robot-row-name strong { font-size:17px; }
  .rm-newsletter { gap:24px; padding:28px 20px; box-shadow:7px 7px 0 var(--rm-accent); }
  .rm-newsletter h2 { font-size:clamp(36px,10.5vw,47px); }
  .site-footer { padding:54px 0 24px; }
  .rm-footer-lead { padding-bottom:32px; }
  .rm-footer-wordmark { font-size:clamp(39px,11.7vw,55px); }
  .rm-footer-lead p { font-size:15px; }
  .rm-footer-grid { padding:32px 0; }
  .rm-archive-hero { padding:45px 0; }
  .rm-archive-hero h1 { font-size:clamp(44px,13vw,64px); }
  .rm-post-grid { gap:0; }
  .rm-card,.rm-card + .rm-card { border-left:0; border-top:1px solid var(--rm-line); padding:18px 0; }
  .rm-single { padding:46px 0 64px; }
  .rm-single-header h1 { font-size:clamp(38px,11vw,54px); }
  .rm-entry { font-size:16px; }
  .rm-entry h2 { font-size:31px; }
}

@media (max-width: 390px) {
  .rm-container,.rm-narrow { width:calc(100% - 24px); }
  .rm-brand-name { font-size:24px; }
  .rm-side-story,
  .rm-side-story + .rm-side-story,
  .rm-editorial-card,
  .rm-editorial-card + .rm-editorial-card { grid-template-columns:94px minmax(0,1fr); column-gap:11px; }
  .rm-side-story h2,.rm-editorial-card h3 { font-size:18px; }
  .rm-manifesto-copy li { grid-template-columns:26px 1fr; }
  .rm-manifesto-copy li small { grid-column:2; }
}
