/*
Theme Name: Ohrenmail Inbox
Description: Black child theme of Twenty Twenty-Five for ohrenmail.com: a front page of post cards under a stamp, other post lists as inbox rows (date, subject, summary, labels), each post opened under a letter head, serif subjects, one iris accent.
Author: OHREN_Lab
Template: twentytwentyfive
Version: 0.2.6
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohrenmail-inbox
*/

/* Colours, sizes and type for ohrenmail.com (design notes: mail-design-1120/design.md).
   Fonts are loaded from this theme folder only: Literata (subjects), Manrope (text), Fira Code (code). */
:root {
	--bg: #050505;
	--bg-2: #0d0d0d;
	--bg-3: #161616;
	--deep: #000000;
	--line: #222222;
	--line-2: #343434;
	--white: #f3f4f6;
	--soft: #d5d7db;
	--mute: #a4a7ad;
	--faint: #8b8e95;
	--iris: #a5b2ff;
	--iris-2: #7f8fff;
	--stamp: #f2695c;
	--paper: #f4ead2;
	--ink: #15162b;
	--wrap: 1080px;
	--pad: clamp(20px, 4.5vw, 40px);
	--serif: var(--wp--preset--font-family--title, "Literata", Georgia, "Times New Roman", serif);
	--sans: var(--wp--preset--font-family--text, "Manrope", "Segoe UI", system-ui, sans-serif);
	--mono: var(--wp--preset--font-family--mono, "Fira Code", ui-monospace, Consolas, monospace);
	--ease: cubic-bezier(.2, .7, .2, 1);
	/* names used by the test-post patterns in /patterns (rules at the end) */
	--ohren-radius: 10px;
	--ohren-line: var(--line);
	--ohren-s1: var(--bg-2);
	--ohren-muted: var(--mute);
	--ohren-accent: var(--iris);
	--ohren-mono: var(--mono);
}

/* ---------- base */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, iframe { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-site-blocks a { color: inherit; text-decoration: none; }
.wp-site-blocks h1, .wp-site-blocks h2, .wp-site-blocks h3, .wp-site-blocks h4 { font-family: var(--serif); font-weight: 600; margin: 0; overflow-wrap: break-word; }
::selection { background: var(--iris); color: var(--bg); }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 3px; }
.om-wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto !important; }
.om-main { display: block; min-height: 50vh; }
.om-q { margin: 0; }
.skip-link.screen-reader-text:focus { background: var(--white) !important; color: var(--bg) !important; }

/* ---------- site head: core blocks in parts/header.html (site logo, site title, Navigation) */
.om-head { position: relative; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.om-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.om-bar > * { margin-block: 0 !important; }
.om-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; font-family: var(--serif); font-weight: 600; font-size: 1.42rem; line-height: 1; letter-spacing: -.01em; color: var(--white); }
.om-brand > * { margin: 0 !important; }
.om-brand .wp-block-site-title { font: inherit; letter-spacing: inherit; color: inherit; }
.om-brand .wp-block-site-title a { color: inherit; text-decoration: none; }
.om-brand .wp-block-site-logo { flex: none; line-height: 0; }
.om-brand .wp-block-site-logo img, .om-mark { display: block; flex: none; width: 28px; height: auto; }
/* menu: the core Navigation block. Items and their order are the menu edited in WordPress; only the look is set here */
.om-bar .wp-block-navigation { font-family: var(--sans); font-size: .92rem; font-weight: 500; line-height: 1.6; letter-spacing: 0; color: var(--mute); }
.om-bar nav.wp-block-navigation { flex: 0 1 auto; min-width: 0; gap: 0; }
.om-bar .wp-block-navigation__container { flex-wrap: wrap; justify-content: flex-end; gap: 0 clamp(16px, 2.6vw, 30px); }
.om-bar .wp-block-navigation-item { flex: none; margin: 0; }
.om-bar .wp-block-navigation-item .wp-block-navigation-item__content { padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; text-decoration: none; transition: color .2s, border-color .2s; }
.om-bar .wp-block-navigation-item .wp-block-navigation-item__content:hover { color: var(--white); text-decoration: none; }
.om-bar .wp-block-navigation-item .wp-block-navigation-item__content[aria-current], .om-bar .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content { color: var(--white); border-bottom-color: var(--iris); }
.om-bar nav.wp-block-navigation .wp-block-navigation__submenu-container { background: var(--bg-2); border-color: var(--line-2); color: var(--soft); }
.om-bar .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation-item__content { padding: 8px 14px; border-bottom: 0; }

/* ---------- small parts */
.om-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .82rem; color: var(--faint); }
.om-crumbs a { color: var(--mute); transition: color .2s; }
.om-crumbs a:hover { color: var(--white); }
.om-readtime { color: var(--faint); }
.om-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.om-pill { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 500; line-height: 1; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 13px 9px 15px; transition: border-color .2s, color .2s, background .2s; }
.om-pill-n { font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--faint); }
.om-pill:hover { border-color: var(--mute); color: var(--white); }
.om-pill[aria-current] { background: var(--white); border-color: var(--white); color: var(--bg); }
.om-pill[aria-current] .om-pill-n { color: #55585e; }
.om-label, .om-labels a { display: inline-block; font-size: .76rem; font-weight: 500; line-height: 1.2; white-space: nowrap; color: var(--soft); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; transition: border-color .2s, color .2s; }
.om-label:hover, .om-labels a:hover { border-color: var(--iris); color: var(--white); }
.om-btn { display: inline-flex; align-items: center; font-weight: 700; font-size: .94rem; line-height: 1; color: var(--bg) !important; background: var(--white); border-radius: 999px; padding: 13px 22px; transition: background .2s; }
.om-btn:hover { background: #ffffff; }
.om-btn-iris { background: var(--iris); }
.om-btn-iris:hover { background: #bcc6ff; }
.om-btn-ghost { background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--white) !important; }
.om-btn-ghost:hover { background: none; box-shadow: inset 0 0 0 1px var(--mute); }
.om-btn-ink { background: var(--ink); color: var(--paper) !important; }
.om-btn-ink:hover { background: #26284f; }

/* ---------- front page top: lines about the site, two buttons, counts, the stamp */
.om-hero { background: radial-gradient(900px 420px at 78% 40%, rgba(127, 143, 255, .16), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.om-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; padding-block: 62px 56px; }
.om-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--iris); }
.om-eyebrow::before { content: ""; flex: none; width: 22px; height: 2px; background: var(--stamp); }
.om-hero .om-hero-title { margin: 20px 0 18px; font-size: clamp(2.75rem, 5.8vw, 4.625rem); line-height: 1.04; letter-spacing: -.022em; color: var(--white); }
.om-hero-title em { font-style: italic; font-weight: 500; color: var(--iris); }
.om-lede { margin: 0; max-width: 31em; font-size: 1.125rem; line-height: 1.6; color: var(--mute); }
.om-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.om-cta .om-btn { box-sizing: border-box; height: 46px; padding-block: 0; }
.om-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; max-width: 560px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.om-stat b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.875rem; line-height: 1; letter-spacing: -.01em; color: var(--white); }
.om-stat span { display: block; margin-top: 8px; font-size: .78rem; font-weight: 500; line-height: 1; text-transform: lowercase; color: var(--faint); }
.om-hero-art { justify-self: center; line-height: 0; transform: rotate(-5deg); filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .7)); }
.om-hero-art img { display: block; width: auto; height: 392px; max-width: none; }

/* ---------- front page: post cards. One list from one Query Loop. On the first page the newest post is the wide paper
   "letter" and the pill bar is shown under it: that is done with order only, the list itself stays as WordPress built it */
.om-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 44px clamp(48px, 7vw, 88px); }
.om-home > .om-q, .om-home .om-cards { display: contents; }
.om-home .om-pages, .om-home .om-empty { order: 4; grid-column: 1 / -1; }
.om-listbar { order: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 20px 2px; scroll-margin-top: 16px; }
.paged .om-listbar { padding-top: 0; }
.om-showing { margin: 0 0 0 auto; font-size: .8125rem; font-weight: 500; line-height: 1; color: var(--faint); }
.om-showing b { font-weight: 700; }
.om-cards > li { order: 3; position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; min-width: 0; margin: 0; overflow: hidden; background: #0a0a0a; border: 1px solid #1c1c1c; border-radius: 16px; transition: border-color .2s; }
.om-cards > li:hover { border-color: var(--line-2); }
.om-cards > li > * { min-width: 0; margin: 0 !important; }
/* plate: the kind of post (one of its tags) and its title, split at the first ": " or "? " */
.om-plate { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; box-sizing: border-box; min-height: 158px; padding: 18px 20px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.om-plate-test { background: linear-gradient(155deg, #20245a 0%, #13152f 100%); border-bottom-color: #2c3170; }
.om-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; font-size: .656rem; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.om-plate-test .om-kicker { color: var(--iris); }
.om-plate-test .om-kicker::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); }
.om-cards .om-plate-title { font-size: 1.375rem; line-height: 1.16; letter-spacing: -.01em; color: var(--white); }
.om-plate-title a { transition: color .2s; }
.om-plate-title a::after { content: ""; position: absolute; inset: 0; }
.om-cards a { scroll-margin-block: 16px; }
.om-plate-title a:hover { color: var(--iris); }
.om-plate-sub { display: block; margin-top: 7px; font-family: var(--sans); font-size: .8125rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--mute); }
.om-plate-test .om-plate-sub { color: #b9c0ee; }
.om-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.om-card-body > * { margin: 0 !important; }
.om-card-body .om-date { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; padding-top: 0; font-size: .78rem; font-weight: 500; line-height: 1.2; color: var(--faint); }
.om-card-body .om-date time { font-weight: 600; color: var(--soft); }
.om-card-body .om-excerpt { max-width: none; margin: 0 !important; font-size: .875rem; line-height: 1.55; }
.om-card-body .om-labels { position: relative; z-index: 1; justify-content: flex-start; margin-top: auto !important; padding-top: 6px; }
.om-card-body .om-labels a:nth-of-type(n + 3) { display: inline-block; }
/* the letter: first card of the first page. Its plate and body are opened up (display: contents) so the parts sit on one grid with the postmark */
.blog:not(.paged) .om-cards > li:first-child { order: 1; grid-column: 1 / -1; grid-row: auto; grid-template-rows: none; grid-template-columns: max-content minmax(0, 1fr) 232px; column-gap: 14px; align-items: center; padding: 40px 44px; background: var(--paper); color: var(--ink); border: 0; border-radius: 18px; }
.blog:not(.paged) .om-cards > li:first-child .om-plate, .blog:not(.paged) .om-cards > li:first-child .om-card-body { display: contents; }
.blog:not(.paged) .om-cards > li:first-child .om-kicker { grid-column: 1; grid-row: 1; font-size: .75rem; font-weight: 800; color: #b83226; }
.blog:not(.paged) .om-cards > li:first-child .om-kicker::before { content: none; }
.blog:not(.paged) .om-cards > li:first-child .om-kicker-lead + .om-kicker-name::before { content: "\00b7"; margin-right: 7px; }
.blog:not(.paged) .om-cards > li:first-child .om-date { grid-column: 2; grid-row: 1; gap: 0; font-size: .8125rem; font-weight: 600; line-height: 1; color: #5b5d77; }
.blog:not(.paged) .om-cards > li:first-child .om-date time, .blog:not(.paged) .om-cards > li:first-child .om-readtime { font-weight: 600; color: inherit; }
.blog:not(.paged) .om-cards > li:first-child .om-readtime::before { content: "\00b7"; margin: 0 .45em; }
.blog:not(.paged) .om-cards > li:first-child .om-plate-title { grid-column: 1 / 3; grid-row: 2; max-width: 19em; margin: 16px 0 14px; font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.1; letter-spacing: -.018em; color: var(--ink); }
.blog:not(.paged) .om-cards > li:first-child .om-plate-title a:hover { color: #3a3f9a; }
.blog:not(.paged) .om-cards > li:first-child .om-plate-sub { display: inline; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.blog:not(.paged) .om-cards > li:first-child .om-excerpt { grid-column: 1 / 3; grid-row: 3; max-width: 36em; font-size: 1.03rem; font-weight: 500; line-height: 1.6; color: #3b3d58; }
.blog:not(.paged) .om-cards > li:first-child .om-labels { grid-column: 1 / 3; grid-row: 4; margin-top: 22px !important; padding-top: 0; }
.blog:not(.paged) .om-cards > li:first-child .om-labels a { background: transparent; border-color: #b9ae90; color: #3b3d58; }
.blog:not(.paged) .om-cards > li:first-child .om-labels a:hover { border-color: var(--ink); color: var(--ink); }
.blog:not(.paged) .om-cards > li:first-child .om-go { position: relative; z-index: 1; grid-column: 1 / 3; grid-row: 5; justify-self: start; box-sizing: border-box; height: 40px; margin-top: 14px !important; padding-block: 0; font-size: .875rem; }
.blog:not(.paged) .om-cards > li:first-child .om-go span { margin-left: .4em; }
.blog:not(.paged) .om-cards > li:first-child :focus-visible { outline-color: var(--ink); }
.blog:not(.paged) .om-cards > li:first-child .om-plate-title a { scroll-margin-top: 96px; }
.blog:not(.paged) .om-cards > li:first-child .om-postmark { grid-column: 3; grid-row: 1 / 6; justify-self: center; width: 216px; height: 216px; font-family: var(--sans); color: #d2483b; transform: rotate(-10deg); }

/* ---------- list heads (section, label, search, 404, pages) */
.om-list-head { padding-block: clamp(36px, 6vw, 68px) clamp(24px, 3.4vw, 36px); }
.om-list-head h1 { margin-top: 14px; font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.om-list-line { margin: 16px 0 0; max-width: 60ch; font-size: 1.05rem; line-height: 1.6; color: var(--mute); }
.om-list-head .om-pills { margin-top: 28px; }
/* 0.2.1: the head of a label or category page carries a stamp picture (its own, or the site stamp). Type sizes, spacing and wording of the head stay as they were. */
.om-list-head-art { --art-h: 120px; overflow-x: clip; }
.om-list-head-in { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 28px; }
.om-list-head-in > * { grid-column: 1 / -1; }
.om-list-head-in > .om-crumbs, .om-list-head-in > h1, .om-list-head-in > .om-list-line { grid-column: 2; }
.om-list-head-in > .om-list-art { position: relative; grid-area: 1 / 1 / span 3 / 2; align-self: start; justify-self: start; margin: 4px 0 0 6px; line-height: 0; transform: rotate(-5deg); }
.om-list-head-in > .om-list-art::before { content: ""; position: absolute; z-index: -1; inset: -60px -120px; background: radial-gradient(closest-side, rgba(127, 143, 255, .17), transparent); pointer-events: none; }
.om-list-art img { display: block; width: auto; height: var(--art-h); max-width: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .7)); }
/* right side of label and category heads: numbers and narrower labels in one small column from 1100px up; below that one line under the name */
.om-list-head-3 > .om-list-side { min-width: 0; margin: 14px 0 0; }
.om-list-head-3 > .om-side-facts { grid-column: 2; }
.om-list-side p, .om-list-side ul, .om-list-side dl, .om-list-side dd { margin: 0; padding: 0; }
.om-list-side .om-side-h, .om-list-side dt { margin: 0 0 10px; font-size: .656rem; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.om-side-nums { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.om-list-side .om-side-nums dt { margin-bottom: 7px; }
.om-side-nums dd { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.om-side-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.om-side-chips .om-label span { margin-left: 7px; font-variant-numeric: tabular-nums; color: var(--faint); }
.om-side-more { align-self: center; font-size: .76rem; color: var(--faint); }
@media (min-width: 1100px) {
	.om-list-head-3 { grid-template-columns: 128px minmax(0, 1fr) 320px; }
	.om-list-head-3 > .om-list-side { grid-area: 1 / 3 / span 3 / 4; align-self: stretch; margin: 2px 0 -20px; padding-left: 24px; border-left: 1px solid var(--line); }
	.om-side-facts .om-side-nums { margin-bottom: 16px; }
}
@media (max-width: 1099px) {
	.om-side-facts .om-side-h, .om-side-facts .om-side-chips { display: none; }
	.om-side-facts .om-side-nums { gap: 6px 22px; }
	.om-side-facts .om-side-nums > div { display: flex; align-items: baseline; gap: 8px; }
	.om-list-side .om-side-nums dt { margin: 0; }
	.om-side-facts .om-side-nums dd { font-size: 1.05rem; }
}
@media (max-width: 900px) {
	.om-list-head-3 > .om-side-facts { grid-column: 1 / -1; }
}
.om-page-head { border-bottom: 1px solid var(--line); }

/* ---------- inbox rows */
.om-list-wrap { padding-bottom: clamp(48px, 7vw, 88px); }
.om-inbox, .wp-block-post-template.om-inbox { list-style: none; margin: 0; padding: 0; max-width: none; border-top: 1px solid var(--line); }
.om-inbox > li { margin: 0; }
.om-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 232px; gap: 8px 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.om-row > * { margin: 0 !important; }
.om-date { display: flex; flex-direction: column; gap: 4px; padding-top: .38em; font-size: .82rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--mute); }
.om-date time { white-space: nowrap; }
.om-subject { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.26; letter-spacing: -.008em; color: var(--white); }
.om-subject a { transition: color .2s; }
.om-subject a:hover { color: var(--iris); }
.om-row-main > * { margin: 0 !important; }
.om-excerpt { margin-top: 8px !important; max-width: 64ch; font-size: .96rem; line-height: 1.6; color: var(--mute); }
.om-excerpt p { margin: 0; }
.om-excerpt .wp-block-post-excerpt__more-text { display: none; }
.om-row-side { display: flex; justify-content: flex-end; padding-top: .3em; }
.om-labels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.om-labels .wp-block-post-terms__separator { display: none; }
.om-labels a:nth-of-type(n + 3) { display: none; }

.om-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 36px 0 0 !important; font-size: .92rem; color: var(--mute); }
.om-pages a:hover { color: var(--white); }
.om-pages .wp-block-query-pagination-numbers { display: flex; gap: 6px; }
.om-pages .page-numbers { display: inline-block; min-width: 2.1em; text-align: center; padding: 6px 8px; border-radius: 8px; }
.om-pages .page-numbers.current { background: var(--white); color: var(--bg); font-weight: 700; }
.om-empty { margin: 0; padding: 28px 0; color: var(--mute); }

/* ---------- post: letter head */
.om-letter { padding-top: clamp(26px, 4vw, 44px); }
.om-letter-box { position: relative; margin-top: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; }
.om-fields { margin: 0; }
.om-field { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 14px clamp(18px, 3.2vw, 36px); border-top: 1px solid var(--line); }
.om-field:first-child { border-top: 0; }
.om-field dt { font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.om-field dd { margin: 0; font-size: .95rem; color: var(--soft); }
.om-field dd .om-readtime::before { content: "·"; margin: 0 .6em; color: var(--line-2); }
.om-field-subject { padding-block: clamp(22px, 3.2vw, 36px) clamp(20px, 3vw, 32px); }
.om-subject-title { font-weight: 500 !important; font-size: clamp(1.7rem, 3.9vw, 2.85rem); line-height: 1.12; letter-spacing: -.02em; color: var(--white); text-wrap: balance; }
.om-label-list { display: flex; flex-wrap: wrap; gap: 6px; }
.om-dek { margin: clamp(22px, 3vw, 30px) 0 0; max-width: 58ch; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.12rem, 1.9vw, 1.3rem); line-height: 1.5; color: var(--soft); }
/* post picture (featured image) between the letter head and the body: as wide as the text column, framed like the pictures in the body */
.om-cover { margin-block: clamp(22px, 3vw, 30px) 0 !important; }
.om-cover img { display: block; width: 100%; max-width: 680px; height: auto; border-radius: 10px; border: 1px solid var(--line-2); }

/* ---------- post: body and side list */
.om-post-layout { display: grid; grid-template-columns: minmax(0, 680px) 232px; justify-content: space-between; gap: 40px 64px; padding-block: clamp(30px, 4.6vw, 52px) clamp(40px, 6vw, 72px); }
.om-post-layout > * { margin: 0 !important; min-width: 0; }
.om-rail > * { margin: 0 !important; }
.om-toc { position: sticky; top: 24px; }
.om-toc h2 { font-family: var(--sans) !important; font-size: .74rem; font-weight: 600 !important; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.om-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line-2); }
.om-toc li { margin: 0; }
.om-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; font-size: .88rem; line-height: 1.4; color: var(--mute); transition: color .2s, border-color .2s; }
.om-toc a:hover { color: var(--white); border-left-color: var(--iris); }

.om-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--soft); overflow-wrap: break-word; }
.om-prose > * { margin-block: 0; }
.om-prose p { margin: 0 0 1.3em; }
.om-prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.82rem); line-height: 1.2; letter-spacing: -.012em; color: var(--white); margin: 2.2em 0 .7em; scroll-margin-top: 24px; }
.om-prose h3 { font-size: 1.24rem; line-height: 1.25; color: var(--white); margin: 1.9em 0 .6em; scroll-margin-top: 24px; }
.om-prose h4 { font-family: var(--sans) !important; font-size: 1.02rem; font-weight: 700 !important; color: var(--white); margin: 1.6em 0 .5em; }
.om-prose > :first-child { margin-top: 0 !important; }
.om-prose strong { color: var(--white); font-weight: 700; }
.om-prose a { color: var(--white); text-decoration: underline; text-decoration-color: var(--iris-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
.om-prose a:hover { color: var(--iris); }
.om-prose ul, .om-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.om-prose ul { list-style: disc; }
.om-prose ol { list-style: decimal; }
.om-prose li { margin: .45em 0; padding-left: .2em; }
.om-prose li::marker { color: var(--faint); }
.om-prose code { font-family: var(--mono) !important; font-size: .84em !important; background: var(--bg-3) !important; color: var(--white) !important; border: 1px solid var(--line-2) !important; border-radius: 5px !important; padding: .08em .36em !important; }
.om-prose pre, .om-prose .wp-block-code, .om-prose .wp-block-preformatted { font-family: var(--mono) !important; font-size: .84rem !important; line-height: 1.62 !important; background: var(--deep) !important; color: var(--soft) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; padding: 18px 20px !important; margin: 0 0 1.5em !important; overflow-x: auto; }
.om-prose pre code { background: none !important; border: 0 !important; padding: 0 !important; font-size: 1em !important; color: inherit !important; }
.om-prose figure { margin: 2.1em 0 !important; max-width: 100%; }
.om-prose figure img { display: block; border-radius: 10px; border: 1px solid var(--line-2); }
.om-prose figcaption, .om-prose .wp-element-caption { font-size: .84rem !important; line-height: 1.5; color: var(--faint) !important; margin-top: 11px !important; text-align: left; }
.om-prose div[style*="overflow-x"] { margin: 1.8em 0 !important; border: 1px solid var(--line) !important; border-radius: 10px; background: var(--bg-2) !important; }
.om-prose table { width: 100%; border-collapse: collapse; font-size: .9rem !important; line-height: 1.5; background: transparent !important; color: var(--soft) !important; border: 0 !important; }
.om-prose th, .om-prose td { padding: 11px 14px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; text-align: left; vertical-align: top; background: transparent !important; color: inherit !important; }
.om-prose th { font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mute) !important; border-bottom-color: var(--line-2) !important; }
.om-prose tbody tr:last-child td { border-bottom: 0 !important; }
.om-prose .wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.om-prose .wp-block-table table { margin: 0; }
.om-prose blockquote { margin: 0 0 1.3em; padding: 2px 0 2px 20px; border-left: 2px solid var(--iris-2); font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--white); }
.om-prose blockquote p:last-child { margin-bottom: 0; }
.om-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.om-prose iframe, .om-prose video { display: block; border-radius: 10px; border: 1px solid var(--line-2); background: #000; }
.om-prose details { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 0 18px; margin: 0 0 14px; }
.om-prose summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--white); }
.om-page-body { padding-block: clamp(28px, 4vw, 44px) clamp(48px, 7vw, 88px); }
.om-page-body .om-prose { max-width: 680px; }

/* previous / next */
.om-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px !important; }
.om-postnav > * { margin: 0 !important; }
.om-postnav a { display: block; height: 100%; box-sizing: border-box; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--white); transition: color .2s, border-color .2s; }
.om-postnav a:hover { border-color: var(--line-2); }
.om-postnav .post-navigation-link__label { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.om-postnav a:hover { color: var(--iris); }
.om-postnav .post-navigation-link-next { text-align: right; }
.om-postnav > *:empty { display: none; }

/* comments */
.om-comments:empty { display: none; }
.om-comments { margin-top: 48px !important; padding-top: 32px; border-top: 1px solid var(--line); color: var(--soft); }
.om-comments h2, .om-comments h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 18px; }
.om-comments input:not([type="submit"]):not([type="checkbox"]), .om-comments textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--white); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; }
.om-comments label { display: block; margin-bottom: 6px; font-size: .86rem; color: var(--mute); }
.om-comments .comment-form-cookies-consent label { display: inline; }
.om-comments input[type="submit"], .om-comments .wp-block-button__link { font: inherit; font-weight: 700; color: var(--bg); background: var(--white); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; }
.om-comments a { text-decoration: underline; text-decoration-color: var(--iris-2); text-underline-offset: 3px; }

/* keep reading */
.om-block { padding-block: clamp(36px, 5vw, 56px) clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.om-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.om-block-head h2 { font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -.015em; }
.om-more { font-size: .88rem; font-weight: 500; color: var(--mute); transition: color .2s; }
.om-more:hover { color: var(--white); }

/* ---------- contact card */
.om-compose { padding-top: clamp(24px, 3.4vw, 36px); }
.om-compose-box { margin-top: 0; max-width: 680px; }
.om-compose-to { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--white); overflow-wrap: anywhere; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.om-compose-to:hover { border-bottom-color: var(--iris); }
.om-compose-box .om-field { padding-block: 20px 12px; }
.om-compose-box .om-btn { margin: 4px clamp(18px, 3.2vw, 36px) 24px calc(clamp(18px, 3.2vw, 36px) + 102px); }

/* ---------- site foot: one line (mark and name, links, copyright) */
.om-foot { border-top: 1px solid var(--line); }
.om-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 34px 44px; font-size: .84rem; font-weight: 500; line-height: 1; color: var(--faint); }
.om-foot .om-brand { color: var(--white); }
.om-foot-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.om-foot-links a { transition: color .2s; }
.om-foot-links a:hover { color: var(--white); }
.om-foot-fine { margin: 0; }

/* empty advert places stay closed until something is put in them */
.ohren-ad-slot:empty { display: none; }
.ohren-ad-slot { margin: 28px auto !important; }

/* ---------- narrow screens */
@media (max-width: 1000px) {
	.om-post-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.om-prose-col { max-width: 680px; }
	.om-rail { order: -1; max-width: 680px; }
	.om-rail:empty { display: none; }
	.om-toc { position: static; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
}
@media (max-width: 760px) {
	.om-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 22px 0; }
	.om-date { flex-direction: row; gap: 12px; padding-top: 0; }
	.om-row-main { margin-top: 10px !important; }
	.om-row-side { justify-content: flex-start; margin-top: 14px !important; padding-top: 0; }
	.om-labels { justify-content: flex-start; }
}
@media (max-width: 560px) {
	.om-bar { flex-wrap: wrap; padding-block: 14px 8px; }
	.om-bar nav.wp-block-navigation { flex: none; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.om-bar nav.wp-block-navigation::-webkit-scrollbar { display: none; }
	.om-bar .wp-block-navigation__container { flex-wrap: nowrap; justify-content: flex-start; }
	.om-field { grid-template-columns: minmax(0, 1fr); padding-block: 12px; }
	.om-compose-box .om-btn { margin-left: clamp(18px, 3.2vw, 36px); }
	.om-postnav { grid-template-columns: 1fr; }
	.om-postnav .post-navigation-link-next { text-align: left; }
	.om-prose { font-size: 1.02rem; }
}
@media (max-width: 900px) {
	.om-hero-in { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 36px 40px; }
	.om-hero-art { order: -1; justify-self: start; margin-left: 10px; }
	.om-hero-art img { height: 210px; }
	.om-list-head-art { --art-h: 64px; }
	.om-list-head-in { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
	.om-list-head-in > .om-list-art { grid-row: 1 / span 2; margin: 2px 0 0 2px; }
	.om-list-head-in > .om-list-art::before { inset: -36px -64px; }
	.om-list-head-in > .om-list-line { grid-column: 1 / -1; }
	.om-stats { gap: 14px 26px; }
	.om-stat b { font-size: 1.5rem; }
	.om-home { grid-template-columns: minmax(0, 1fr); }
	.om-showing { width: 100%; margin-left: 0; padding-top: 6px; }
	.blog:not(.paged) .om-cards > li:first-child { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 22px 26px; }
	.blog:not(.paged) .om-cards > li:first-child .om-kicker { order: 1; }
	.blog:not(.paged) .om-cards > li:first-child .om-date { order: 2; margin-top: 12px !important; }
	.blog:not(.paged) .om-cards > li:first-child .om-plate-title { order: 3; margin: 14px 0 12px; }
	.blog:not(.paged) .om-cards > li:first-child .om-excerpt { order: 4; }
	.blog:not(.paged) .om-cards > li:first-child .om-labels { order: 5; margin-top: 18px !important; }
	.blog:not(.paged) .om-cards > li:first-child .om-go { order: 6; }
	.blog:not(.paged) .om-cards > li:first-child .om-postmark { order: 7; align-self: flex-end; width: 112px; height: 112px; margin-top: -34px !important; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* ---------- test-post patterns (/patterns) */
.ohren-notice { border: 1px solid var(--ohren-line); border-left: 2px solid var(--ohren-accent); border-radius: 0 var(--ohren-radius) var(--ohren-radius) 0; background: var(--ohren-s1); padding: 12px 16px !important; margin: 0 0 1.6em !important; }
.ohren-notice p { margin: 0 !important; font-size: .9rem !important; color: var(--ohren-muted); }
.ohren-box__title { font-family: var(--sans) !important; font-size: .74rem !important; font-weight: 600 !important; letter-spacing: .09em; text-transform: uppercase; color: var(--faint) !important; margin: 0 0 8px !important; }
.ohren-testlog { border: 1px solid var(--ohren-line); border-radius: var(--ohren-radius); background: var(--ohren-s1); padding: 20px 24px !important; margin: 0 0 1.8em !important; }
.ohren-testlog table { font-size: .9375rem; margin: 0; }
.ohren-testlog .wp-block-table { border: 0 !important; background: transparent !important; }
.ohren-testlog :where(th, td) { border: 0 !important; border-top: 1px solid var(--ohren-line) !important; padding: 10px 0 !important; background: transparent !important; }
.ohren-testlog tr:first-child :where(th, td) { border-top: 0 !important; }
.ohren-testlog td:first-child { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ohren-muted); width: 34%; padding-right: 16px !important; }
.ohren-testlog figure { margin: 0 !important; }
.ohren-result { display: inline-block; font-size: .74rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bg) !important; background: var(--ohren-accent); border-radius: 6px; padding: 3px 8px !important; }
.ohren-shots { gap: 16px !important; margin: 0 0 1.8em !important; }
.ohren-shot { background: var(--ohren-s1); border: 1px solid var(--ohren-line); border-radius: var(--ohren-radius); padding: 10px !important; margin: 0; }
.ohren-shot .wp-block-image { margin: 0 !important; }
.ohren-shot .wp-block-image img { border-radius: 8px; border: 1px solid var(--ohren-line); display: block; width: 100%; }
.ohren-shot p { margin: 10px 4px 2px !important; font-size: .875rem; }
.ohren-shot .ohren-shot__meta { font-size: .72rem; color: var(--ohren-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px !important; }
