/* Ռուբիկոն — public site. Fonts are the same stacks roubicon.media uses. */
:root {
  --red: #D93832; --ink: #111111; --grey: #F3F3F4; --line: #E2E2E4; --mute: #5B5B60; --soft: #C9C9CE;
  --r: 6px; --r-lg: 8px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --serif: "Hoefler Text", Garamond, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
h1, h2, h3, .card-t, .row-t, .tile b, .tab, .links a { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
.w { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 8px; color: #fff; }

/* header */
.hdr { padding-top: 16px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
/* logo left, search in the exact centre, links right */
.hdr-top { display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 8px 24px; }
.hdr-top .brand { justify-self: start; }
.hdr-search input { flex: 1; width: auto; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { display: block; }
.hdr-links { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 22px; font-size: 15px; font-weight: 500; color: var(--mute); }
.hdr-links > a { padding: 12px 0; }
.hdr-links > a[aria-current] { color: var(--ink); font-weight: 700; }
.search { display: flex; align-items: stretch; height: 44px; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search input { width: 170px; height: 100%; margin: 0; padding: 0 14px; border: 0; border-radius: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input:focus-visible { outline: 0; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: var(--mute); opacity: 1; }
.search button { flex: none; width: 46px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--ink); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search button:hover { background: var(--red); }
.search button:focus-visible { outline: 0; background: var(--red); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r); background: var(--grey); font-size: 15px; font-weight: 600; }
.tab[aria-current] { background: var(--ink); color: #fff; }

/* shared */
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.pill-d { background: var(--ink); color: #fff; min-height: 44px; padding: 0 16px; }
.pill-r { background: var(--red); color: #fff; min-height: 36px; }
a.pill-r:hover { color: #fff; text-decoration: underline; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; }
.btn:hover { color: #fff; background: var(--red); }
.btn-w { background: #fff; color: var(--ink); }
.btn-w:hover { background: var(--ink); color: #fff; }
.h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.sec { padding-top: 80px; padding-bottom: 80px; }
.sec-s { padding-top: 32px; padding-bottom: 80px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.dark { background: var(--ink); color: #fff; }
.dark .h2 { margin-bottom: 32px; }
.band { background: var(--grey); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }

/* hero */
.hero { border-radius: var(--r-lg); background: var(--red); color: #fff; padding: clamp(24px, 5vw, 68px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px; }
.hero-l { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-m { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; }
.hero h1 a, .hero h1 a:hover { color: #fff; }
.hero h1 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-x { margin: 0; max-width: 620px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; text-align: justify; }
.hero-c { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 15px; }
.hero-q { flex: 1 1 320px; min-width: 0; max-width: 420px; margin: 0; background: var(--ink); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.hero-q blockquote { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; }
.hero-q figcaption { font-size: 14px; color: var(--soft); }

/* cards */
.card { background: var(--grey); border-radius: var(--r); padding: 26px; min-height: 230px; display: flex; flex-direction: column; gap: 12px; }
.card-t { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.card-x { margin-top: auto; font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-d { background: var(--ink); color: #fff; }
.card-d .k, .card-d .card-x { color: var(--soft); }
.card-d:hover { color: #fff; }
.card-w { background: #fff; }
.card-o { background: #fff; border: 2px solid var(--ink); justify-content: space-between; }
.card-go { align-self: flex-end; width: 52px; height: 52px; border-radius: var(--r); background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.tile { background: #232326; color: #fff; border-radius: var(--r); padding: 26px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile span { font-size: 14px; font-weight: 700; color: var(--soft); }
.tile b { font-size: clamp(25px, 2.6vw, 33px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.tile:hover { color: #fff; outline: 2px solid #fff; }
.tile-r { background: var(--red); } .tile-r span { color: #fff; }
.tile-w { background: #fff; color: var(--ink); } .tile-w span { color: var(--mute); } .tile-w:hover { color: var(--ink); }

/* rows */
.row { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: var(--r); background: var(--grey); margin-bottom: 8px; }
.row-n { flex: none; width: 40px; font-size: 15px; font-weight: 700; color: var(--mute); }
.row-b { flex: 1; min-width: 0; }
.row-t { display: block; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.row-m { display: block; margin-top: 5px; font-size: 15px; color: var(--mute); }
.row-a { flex: none; display: flex; }
.row-s { display: block; margin-top: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.45; color: #2A2A2E; }
.row-s mark, .row-t mark { background: #FFE27A; color: inherit; padding: 0 2px; border-radius: 2px; }
.search-lg { height: 56px; margin-bottom: 20px; }
.search-lg input { flex: 1; width: auto; font-size: 18px; padding: 0 18px; }
.search-lg button { width: 60px; }
.rows2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 14px; }

/* about */
.about { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px 72px; }
.about-l { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.about-r { flex: 999 1 520px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { flex: 1 1 130px; background: #fff; border-radius: var(--r); padding: 22px; }
.stat b { display: block; font-size: clamp(42px, 4.6vw, 62px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--red); }
.stat span { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--mute); }
.lead { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.45; }
.txt { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.65; color: #2A2A2E; }
/* About text is justified like article text */
.about-r { align-items: stretch; }
.about-r .btn { align-self: flex-start; }
.lead, .txt { text-align: justify; }
.sig { margin: 0; font-size: 15px; color: var(--mute); }
.collage { display: block; width: 100%; border-radius: var(--r-lg); margin: 14px 0 0; }

/* issues */
.issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.issues-lg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.issue { position: relative; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.issue-c { display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--grey); border: 1px solid var(--line); }
.issue-c img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.issue:hover .issue-c img { transform: scale(1.04); }
.issue-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: var(--soft); }
.issue-pdf { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; }

/* page hero */
.phero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--red); color: #fff; padding: clamp(24px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.phero > * { position: relative; }
.phero-n { position: absolute; right: 24px; top: -70px; font-size: 380px; line-height: 1; font-weight: 800; color: rgba(255,255,255,.1); }
.phero-k { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
/* every section title is the same size, small enough for the longest name to stay on one line */
.phero h1, .phero h1.lw { font-size: clamp(23px, 5.4vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
/* the count / page badge sits in the bottom-right corner of the red block */
.phero > .pill-d { position: absolute; right: 16px; bottom: 16px; }
.phero-s h1 { font-size: clamp(23px, 5.4vw, 64px); }
.cols { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-top: 40px; padding-bottom: 96px; }
.cols-m { flex: 999 1 600px; min-width: 0; }
.cols-s { flex: 1 1 260px; min-width: 0; }
.links { display: flex; flex-direction: column; gap: 8px; font-size: 17px; font-weight: 700; }
.links a { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 0 18px; border-radius: var(--r); background: var(--ink); color: #fff; }
.links a:hover { background: var(--red); color: #fff; }
.empty { font-family: var(--serif); font-size: 20px; color: var(--mute); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; font-size: 16px; font-weight: 700; }
.pager a { min-width: 48px; height: 48px; padding: 0 12px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; background: var(--grey); }
.pager a[aria-current] { background: var(--ink); color: #fff; }
.pager .next { background: var(--red); color: #fff; padding: 0 20px; }

/* article */
.ahero { border-radius: var(--r-lg); background: var(--ink) center / cover no-repeat; color: #fff; padding: clamp(20px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.ahero-img { min-height: clamp(220px, 28vw, 380px); justify-content: flex-end; }
.ahero h1 { max-width: 900px; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.ahero h1.lw { font-size: clamp(22px, 3.4vw, 44px); }
.hero h1.lw { font-size: clamp(22px, 4.6vw, 60px); }
.ahero-l { color: var(--ink); }
.ahero-l .ameta { border-top-color: rgba(17,17,17,.25); } .ahero-l .ameta dt { color: var(--mute); }
.ahero-img .ameta { border-top-color: rgba(255,255,255,.35); } .ahero-img .ameta dt { color: #E6E6EA; }
.ameta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; }
.ameta dt { color: var(--soft); } .ameta dd { margin: 0; font-size: 16px; font-weight: 700; }
.abody { padding-top: 44px; padding-bottom: 80px; }
/* same face, size and leading as article text on roubicon.media (22px / 1.8) */
.prose { max-width: 720px; margin: 0 auto; font-family: var(--serif); font-size: 22px; line-height: 1.8; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.1em; }
/* article text is justified by default; centre/right alignment set in the editor still wins */
.prose p, .prose li, .prose blockquote { text-align: justify; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose figcaption, .prose .src, .prose .apager, .prose .chips { text-align: initial; }
.prose figcaption { text-align: center; }

.prose h2, .prose h3, .prose h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 24px; } .prose h4 { font-size: 20px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { height: auto; border-radius: var(--r); }
.prose figure { margin: 1.6em auto; }
.prose figure img { display: block; width: 100%; }
.prose figcaption { margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--mute); text-align: center; }
.prose .w-33 { width: 33%; } .prose .w-50 { width: 50%; } .prose .w-75 { width: 75%; } .prose .w-100 { width: 100%; }
.prose .img-left { float: left; margin: .3em 1.4em .8em 0; } .prose .img-right { float: right; margin: .3em 0 .8em 1.4em; } .prose .img-center { float: none; margin-left: auto; margin-right: auto; }
.prose hr { border: 0; border-top: 2px solid var(--ink); margin: 2.2em 0; clear: both; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose pre { background: var(--grey); padding: 16px; border-radius: var(--r); overflow-x: auto; font-size: 15px; }
.prose sup { font-size: .65em; line-height: 0; }
.prose .cover { margin-top: 0; }
.prose .src { clear: both; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 15px; color: var(--mute); }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); font-family: var(--sans); }
.prose .chips a { color: var(--ink); text-decoration: none; font-weight: 500; }

/* article pagination */
.abody { scroll-margin-top: 12px; }
.apos { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--mute); }
.apos i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.apos b { display: block; height: 100%; background: var(--red); }
.apager { clear: both; margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); font-family: var(--sans); display: flex; flex-direction: column; gap: 18px; }
.apager-m { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.prose .apager a { text-decoration: none; color: var(--ink); }
.prose .apager .btn { color: #fff; min-height: 56px; padding: 0 28px; font-size: 17px; }
.prose .apager .btn-o { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.prose .apager .btn-o:hover { background: var(--ink); color: #fff; }
.apager .pager { padding-top: 0; }
.prose .apager .pager a[aria-current] { color: #fff; }
.prose .apager .apager-all { align-self: flex-start; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* reader */
.reader { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #2B2B2F; }
.reader:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.reader:fullscreen .rd-stage { flex: 1; height: auto; }
.rd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; background: var(--ink); color: #fff; }
.rd-bar button { min-width: 44px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--r); background: #2B2B2F; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.rd-bar button:hover, .rd-bar button[aria-pressed="true"] { background: var(--red); }
.rd-bar button:disabled { opacity: .4; cursor: default; background: #2B2B2F; }
.rd-page { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.rd-page input { width: 64px; min-height: 44px; border: 0; border-radius: var(--r); text-align: center; font: inherit; font-weight: 700; }
.rd-sep { flex: 1; }
.rd-stage { height: min(82vh, 1100px); overflow: auto; display: flex; padding: 16px; gap: 8px; }
.reader { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* pages cannot be right-clicked, dragged or printed */
.rd-stage canvas { pointer-events: none; display: block; margin: auto; background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.5); }
.rd-stage canvas + canvas { margin-left: 0; }
.rd-stage canvas:first-child:not(:only-child) { margin-right: 0; }
.rd-msg { margin: auto; color: #fff; font-size: 17px; }
.rd-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 32px; border-radius: var(--r-lg); background: var(--grey); font-family: var(--serif); font-size: 20px; }
.rd-empty img { width: 220px; border-radius: var(--r); }
.rd-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* footer */
.ftr { background: var(--ink); color: #fff; padding: 56px 0 40px; }
.ftr-brand { display: inline-flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: clamp(46px, 9vw, 124px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.ftr-brand img { width: clamp(52px, 7vw, 92px); height: auto; }
.ftr-brand:hover { color: #fff; }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #3A3A3E; font-size: 15px; color: var(--soft); }
.ftr-row span { padding: 12px 0; }
.ftr-row nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-weight: 500; }
.ftr-row a { padding: 12px 0; color: #fff; }
.ftr-row a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 640px) {
  .hdr-top { grid-template-columns: 1fr auto; }
  .hdr-top { column-gap: 12px; }
  .brand { font-size: 24px; gap: 10px; } .brand img { width: 40px; height: 40px; }
  .hdr-links { flex-wrap: nowrap; gap: 14px; font-size: 14px; white-space: nowrap; }
  .hdr-search { grid-column: 1 / -1; grid-row: 2; }
  .prose { font-size: 20px; }
  .prose .img-left, .prose .img-right { float: none; width: 100%; margin: 1.4em 0; }
  .row { padding: 16px; gap: 12px; } .row-n { width: 28px; } .row-t { font-size: 19px; }
  .phero-n { font-size: 220px; top: -30px; }
  .phero:has(> .pill-d) { padding-bottom: 76px; }
  .phero > .pill-d { right: 12px; bottom: 12px; }
  .sec, .about { padding-top: 56px; padding-bottom: 56px; }
}

@media print { .reader { display: none !important; } }
