/*
Theme Name: Yazın Akışı
Theme URI: https://yazinakisi.com
Author: Yazın Akışı
Author URI: https://yazinakisi.com
Description: Edebiyat, fikir, şiir, deneme ve haber paylaşımları için sosyal yayın platformu teması.
Version: 0.3.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: yazin-akisi
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
	--ya-bg: #f6f5f2;
	--ya-surface: #ffffff;
	--ya-surface-soft: #f3f2ee;
	--ya-surface-warm: #f9f5f1;
	--ya-text: #1d1b18;
	--ya-text-soft: #45413b;
	--ya-muted: #777168;
	--ya-border: #e3e0da;
	--ya-border-strong: #ccc7be;
	--ya-accent: #7b151b;
	--ya-accent-hover: #5d0f14;
	--ya-accent-soft: #f5e9ea;
	--ya-gold: #9a6c16;
	--ya-success: #067647;
	--ya-danger: #b42318;
	--ya-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--ya-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ya-radius-sm: 10px;
	--ya-radius: 16px;
	--ya-radius-lg: 22px;
	--ya-shadow-xs: 0 1px 2px rgba(28, 24, 20, .025);
	--ya-shadow-sm: 0 7px 22px rgba(28, 24, 20, .045);
	--ya-shadow-md: 0 18px 52px rgba(28, 24, 20, .075);
	--ya-container: 1376px;
	--ya-header-height: 72px;
	--ya-left: 226px;
	--ya-main: 690px;
	--ya-right: 320px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 8% 0%, rgba(123, 21, 27, .035), transparent 26rem),
		var(--ya-bg);
	color: var(--ya-text);
	font-family: var(--ya-sans);
	font-size: 15px;
	line-height: 1.58;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--ya-accent);
}

img {
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a,
summary {
	-webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid rgba(123, 21, 27, .18);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	width: auto;
	height: auto;
	top: 12px;
	left: 12px;
	z-index: 99999;
	padding: 10px 14px;
	background: #fff;
	color: #000;
	clip: auto;
	border-radius: 8px;
	box-shadow: var(--ya-shadow-md);
}

.site-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--ya-header-height);
	background: rgba(255, 255, 255, .93);
	border-bottom: 1px solid rgba(227, 224, 218, .9);
	backdrop-filter: blur(18px) saturate(1.2);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	width: min(calc(100% - 36px), var(--ya-container));
	height: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: var(--ya-left) minmax(360px, 1fr) auto;
	gap: 28px;
	align-items: center;
}

.site-branding,
.brand-link,
.brand-copy,
.header-actions,
.account-menu summary,
.account-dropdown a {
	display: flex;
	align-items: center;
}

.site-branding {
	min-width: 0;
}

.brand-link {
	gap: 10px;
	min-width: 0;
	color: var(--ya-text);
}

.brand-link:hover {
	color: var(--ya-text);
}

.brand-symbol,
.rail-footnote-mark,
.footer-brand > .brand-mark {
	display: inline-grid;
	place-items: center;
	color: var(--ya-accent);
}

.brand-mark {
	width: 42px;
	height: 42px;
	display: block;
}

.custom-logo-link {
	display: inline-flex;
}

.custom-logo {
	width: 42px;
	height: 42px;
	object-fit: contain;
}

.brand-copy {
	align-items: flex-start;
	flex-direction: column;
	min-width: 0;
	line-height: 1.12;
}

.brand-copy strong {
	font-family: var(--ya-serif);
	font-size: 1.22rem;
	font-weight: 800;
	letter-spacing: -.025em;
	white-space: nowrap;
}

.brand-copy small {
	margin-top: 4px;
	color: var(--ya-muted);
	font-size: .67rem;
	letter-spacing: .015em;
	white-space: nowrap;
}

.mobile-menu-toggle {
	display: none;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-right: 4px;
	padding: 0;
	border: 1px solid var(--ya-border);
	border-radius: 50%;
	background: #fff;
	color: var(--ya-text);
	cursor: pointer;
}

.header-search {
	width: min(100%, 610px);
	justify-self: center;
}

.header-search .search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.search-leading-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	z-index: 1;
	transform: translateY(-50%);
	color: var(--ya-muted);
	pointer-events: none;
}

.search-leading-icon .site-icon {
	width: 18px;
	height: 18px;
}

.header-search input[type="search"] {
	width: 100%;
	height: 44px;
	padding: 0 48px 0 44px;
	border: 1px solid var(--ya-border);
	border-radius: 999px;
	background: #f5f4f1;
	color: var(--ya-text);
	font-size: .88rem;
	outline: none;
	transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.header-search input[type="search"]::placeholder {
	color: #8a857d;
}

.header-search input[type="search"]:focus {
	background: #fff;
	border-color: rgba(123, 21, 27, .42);
	box-shadow: 0 0 0 4px rgba(123, 21, 27, .055);
}

.header-search .search-submit {
	position: absolute;
	right: 6px;
	top: 6px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ya-muted);
	cursor: pointer;
}

.header-search .search-submit:hover {
	background: #fff;
	color: var(--ya-accent);
}

.header-search .search-submit .site-icon {
	width: 16px;
	height: 16px;
}

.header-actions {
	justify-content: flex-end;
	gap: 7px;
	min-width: 0;
}

.header-icon-button {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #4d4841;
	transition: .16s ease;
}

.header-icon-button:hover {
	background: var(--ya-surface-soft);
	color: var(--ya-accent);
}

.header-icon-button .site-icon {
	width: 19px;
	height: 19px;
}

.header-badge {
	position: absolute;
	right: 1px;
	top: 1px;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--ya-accent);
	color: #fff;
	font-size: .61rem;
	font-weight: 850;
}

.header-write-button,
.header-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 40px;
	padding: 0 15px;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 770;
	transition: .16s ease;
}

.header-write-button {
	background: var(--ya-accent);
	color: #fff;
	box-shadow: 0 4px 12px rgba(123, 21, 27, .15);
}

.header-write-button:hover {
	background: var(--ya-accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

.header-write-button .site-icon {
	width: 17px;
	height: 17px;
}

.header-login {
	border: 1px solid var(--ya-border);
	background: #fff;
}

.account-menu {
	position: relative;
}

.account-menu summary {
	gap: 8px;
	min-width: 0;
	padding: 4px 6px 4px 4px;
	border-radius: 999px;
	cursor: pointer;
	list-style: none;
	transition: background .16s ease;
}

.account-menu summary::-webkit-details-marker {
	display: none;
}

.account-menu summary:hover,
.account-menu[open] summary {
	background: var(--ya-surface-soft);
}

.account-menu summary img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}

.account-summary-copy {
	display: grid;
	line-height: 1.2;
}

.account-summary-copy strong {
	max-width: 92px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .75rem;
}

.account-summary-copy small {
	max-width: 92px;
	overflow: hidden;
	color: var(--ya-muted);
	font-size: .64rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-menu summary > .site-icon {
	width: 15px;
	height: 15px;
	color: var(--ya-muted);
}

.account-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	z-index: 30;
	width: 220px;
	padding: 8px;
	border: 1px solid var(--ya-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--ya-shadow-md);
}

.account-dropdown::before {
	content: "";
	position: absolute;
	right: 20px;
	top: -6px;
	width: 11px;
	height: 11px;
	background: #fff;
	border-left: 1px solid var(--ya-border);
	border-top: 1px solid var(--ya-border);
	transform: rotate(45deg);
}

.account-dropdown a {
	gap: 10px;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 9px;
	font-size: .82rem;
	font-weight: 650;
}

.account-dropdown a:hover {
	background: var(--ya-surface-soft);
	color: var(--ya-text);
}

.account-dropdown a .site-icon {
	width: 17px;
	height: 17px;
	color: var(--ya-muted);
}

.account-dropdown .account-logout {
	margin-top: 5px;
	border-top: 1px solid var(--ya-border);
	border-radius: 0 0 8px 8px;
	color: var(--ya-danger);
}

/* Main shell */
.site-layout {
	width: min(calc(100% - 36px), var(--ya-container));
	margin: 22px auto 64px;
	display: grid;
	grid-template-columns: var(--ya-left) minmax(0, var(--ya-main)) minmax(280px, var(--ya-right));
	gap: 28px;
	align-items: start;
	justify-content: center;
}

.site-main {
	min-width: 0;
}

.sidebar {
	position: sticky;
	top: calc(var(--ya-header-height) + 20px);
}

.admin-bar .sidebar {
	top: calc(var(--ya-header-height) + 52px);
}

/* Left rail */
.sidebar-left {
	align-self: start;
}

.left-rail-inner {
	display: grid;
	gap: 18px;
}

.rail-group {
	padding-bottom: 17px;
	border-bottom: 1px solid var(--ya-border);
}

.rail-heading {
	margin: 0 12px 7px;
	color: #918b82;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.rail-nav {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rail-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 8px 11px;
	border-radius: 11px;
	color: #4c4842;
	font-size: .86rem;
	font-weight: 680;
	transition: .16s ease;
}

.rail-link:hover {
	background: rgba(255, 255, 255, .75);
	color: var(--ya-text);
}

.rail-link.is-active {
	background: #fff;
	color: var(--ya-accent);
	box-shadow: var(--ya-shadow-xs);
}

.rail-link.is-active::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 11px;
	width: 3px;
	height: 22px;
	border-radius: 99px;
	background: var(--ya-accent);
}

.rail-icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	color: #68635c;
}

.rail-link.is-active .rail-icon {
	color: var(--ya-accent);
}

.rail-icon .site-icon {
	width: 19px;
	height: 19px;
}

.rail-label {
	min-width: 0;
	flex: 1;
}

.rail-count {
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ya-accent);
	color: #fff;
	font-size: .63rem;
	font-weight: 850;
}

.rail-compose {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	border-radius: 12px;
	background: var(--ya-accent);
	color: #fff;
	font-size: .84rem;
	font-weight: 780;
	box-shadow: 0 8px 20px rgba(123, 21, 27, .14);
	transition: .16s ease;
}

.rail-compose:hover {
	background: var(--ya-accent-hover);
	color: #fff;
	transform: translateY(-1px);
}

.rail-compose .site-icon {
	width: 18px;
	height: 18px;
}

.rail-footnote {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 2px 8px;
	color: var(--ya-muted);
}

.rail-footnote-mark .brand-mark {
	width: 26px;
	height: 26px;
}

.rail-footnote p {
	margin: 1px 0 0;
	font-family: var(--ya-serif);
	font-size: .72rem;
	font-style: italic;
	line-height: 1.45;
}

/* Feed masthead */
.feed-masthead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 13px;
	padding: 2px 2px 0;
}

.feed-heading-copy,
.page-heading {
	min-width: 0;
}

.feed-eyebrow,
.page-eyebrow,
.panel-kicker,
.selection-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ya-accent);
	font-size: .64rem;
	font-weight: 850;
	letter-spacing: .105em;
	text-transform: uppercase;
}

.feed-heading-copy h1,
.page-heading h1,
.taxonomy-hero h1 {
	margin: 2px 0 0;
	font-family: var(--ya-serif);
	font-size: 1.65rem;
	font-weight: 760;
	line-height: 1.1;
	letter-spacing: -.035em;
}

.feed-tabs {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--ya-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
}

.feed-tabs a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 31px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--ya-muted);
	font-size: .72rem;
	font-weight: 730;
	white-space: nowrap;
	transition: .16s ease;
}

.feed-tabs a:hover {
	color: var(--ya-text);
}

.feed-tabs a.is-active {
	background: #fff;
	color: var(--ya-accent);
	box-shadow: 0 2px 8px rgba(28, 24, 20, .07);
}

.quick-composer {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 62px;
	margin-bottom: 13px;
	padding: 10px 12px;
	border: 1px solid var(--ya-border);
	border-radius: 15px;
	background: rgba(255, 255, 255, .88);
	box-shadow: var(--ya-shadow-xs);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.quick-composer:hover {
	border-color: var(--ya-border-strong);
	box-shadow: var(--ya-shadow-sm);
	color: inherit;
}

.quick-composer img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

.quick-composer-placeholder {
	min-width: 0;
	flex: 1;
	color: #8a857d;
	font-size: .85rem;
}

.quick-composer-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 11px;
	border-radius: 999px;
	background: var(--ya-accent-soft);
	color: var(--ya-accent);
	font-size: .72rem;
	font-weight: 760;
}

.quick-composer-action .site-icon {
	width: 15px;
	height: 15px;
}

/* Core feed card overrides */
.ya-feed {
	gap: 13px;
}

.ya-card {
	border-color: var(--ya-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, .96);
	box-shadow: var(--ya-shadow-xs);
}

.ya-card:hover {
	border-color: #d6d1c8;
	box-shadow: var(--ya-shadow-sm);
	transform: none;
}

.ya-card-header {
	padding: 14px 16px 7px;
}

.ya-card-author img {
	width: 40px;
	height: 40px;
}

.ya-author-line strong {
	font-size: .87rem;
}

.ya-author-copy small {
	font-size: .7rem;
}

.ya-type-badge {
	background: #f4f1ed;
	color: #5c5750;
}

.ya-card--siir .ya-type-badge,
.ya-card--alinti .ya-type-badge {
	background: #f3ece4;
	color: #7b4f22;
}

.ya-card--haber .ya-type-badge {
	background: #eaf1f6;
	color: #285d79;
}

.ya-card--fikir-yazisi .ya-type-badge,
.ya-card--tartisma .ya-type-badge {
	background: var(--ya-accent-soft);
	color: var(--ya-accent);
}

.ya-card-content {
	padding: 7px 16px 16px;
}

.ya-card-content h2 {
	margin-bottom: 8px;
	font-family: var(--ya-serif);
	font-size: 1.28rem;
	font-weight: 760;
	line-height: 1.25;
	letter-spacing: -.023em;
}

.ya-card-text {
	color: var(--ya-text-soft);
	font-size: .88rem;
	line-height: 1.58;
}

.ya-card--siir .ya-card-content {
	padding-left: 29px;
}

.ya-card--siir .ya-card-content::before {
	left: 13px;
	top: 3px;
	font-size: 2rem;
}

.ya-poem-text {
	font-family: var(--ya-serif);
	font-size: .96rem;
	line-height: 1.72;
}

.ya-card-actions {
	padding: 7px 9px;
	border-top-color: #ece9e4;
}

.ya-action {
	min-height: 34px;
	padding: 5px 9px;
	font-size: .73rem;
}

.ya-action .ya-icon {
	width: 17px;
	height: 17px;
}

.ya-card-media {
	margin-left: -16px;
	margin-right: -16px;
	margin-bottom: -16px;
}

.ya-topic-row {
	margin-top: 10px;
}

.ya-topic-row a {
	font-size: .69rem;
}

/* Right discovery */
.sidebar-right {
	display: grid;
	gap: 13px;
}

.discovery-panel {
	border: 1px solid var(--ya-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, .84);
	box-shadow: var(--ya-shadow-xs);
	overflow: hidden;
}

.panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 15px 11px;
}

.panel-kicker .site-icon {
	width: 13px;
	height: 13px;
}

.panel-heading h2 {
	margin: 3px 0 0;
	font-family: var(--ya-serif);
	font-size: 1.03rem;
	font-weight: 760;
	letter-spacing: -.02em;
}

.panel-heading > a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--ya-muted);
}

.panel-heading > a:hover {
	background: var(--ya-surface-soft);
	color: var(--ya-accent);
}

.panel-heading > a .site-icon {
	width: 16px;
	height: 16px;
}

.topic-list {
	margin: 0;
	padding: 0 8px 9px;
	list-style: none;
}

.topic-list li + li {
	border-top: 1px solid #efede9;
}

.topic-list a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 7px;
	border-radius: 9px;
}

.topic-list a:hover {
	background: var(--ya-surface-soft);
	color: var(--ya-text);
}

.topic-rank {
	width: 23px;
	color: #aaa49b;
	font-family: var(--ya-serif);
	font-size: .78rem;
	font-weight: 760;
}

.topic-copy {
	display: grid;
	min-width: 0;
}

.topic-copy strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .8rem;
}

.topic-copy small {
	margin-top: 2px;
	color: var(--ya-muted);
	font-size: .65rem;
}

.panel-empty {
	padding: 10px 8px 15px;
	color: var(--ya-muted);
	font-size: .76rem;
	line-height: 1.5;
}

.suggested-authors {
	display: grid;
	gap: 2px;
	padding: 0 8px 10px;
}

.suggested-author {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 7px;
	border-radius: 10px;
}

.suggested-author:hover {
	background: var(--ya-surface-soft);
}

.suggested-author-main {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	flex: 1;
}

.suggested-author-main img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.suggested-author-main > span {
	display: grid;
	min-width: 0;
	line-height: 1.22;
}

.suggested-author-main strong,
.suggested-author-main small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.suggested-author-main strong {
	font-size: .76rem;
}

.suggested-author-main small {
	margin-top: 3px;
	color: var(--ya-muted);
	font-size: .64rem;
}

.follow-button,
.profile-follow-button,
.profile-secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 999px;
	font-weight: 750;
	cursor: pointer;
	transition: .16s ease;
}

.follow-button {
	height: 30px;
	padding: 0 10px;
	border: 1px solid var(--ya-border-strong);
	background: #fff;
	color: var(--ya-text);
	font-size: .65rem;
}

.follow-button:hover {
	border-color: var(--ya-accent);
	color: var(--ya-accent);
}

.follow-button.is-active {
	border-color: var(--ya-accent-soft);
	background: var(--ya-accent-soft);
	color: var(--ya-accent);
}

.selection-panel {
	padding: 15px;
	background:
		linear-gradient(145deg, rgba(123, 21, 27, .055), transparent 62%),
		#fff;
}

.selection-label .site-icon {
	width: 13px;
	height: 13px;
}

.selection-panel h2 {
	margin: 10px 0 6px;
	font-family: var(--ya-serif);
	font-size: 1.08rem;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.selection-panel p {
	margin: 0;
	color: var(--ya-text-soft);
	font-family: var(--ya-serif);
	font-size: .82rem;
	line-height: 1.55;
}

.selection-author {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	color: var(--ya-muted);
	font-size: .68rem;
	font-weight: 650;
}

.selection-author img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.sidebar-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	padding: 2px 5px;
	color: #979188;
	font-size: .62rem;
}

.sidebar-legal a:hover {
	color: var(--ya-text);
}

/* Composer */
.social-page-content {
	min-width: 0;
}

.ya-composer-shell {
	border-color: var(--ya-border);
	border-radius: 18px;
	box-shadow: var(--ya-shadow-xs);
}

.ya-composer-intro {
	padding: 21px 22px;
	background:
		radial-gradient(circle at 85% 10%, rgba(123, 21, 27, .08), transparent 15rem),
		linear-gradient(135deg, #faf1f1, #fff 65%);
}

.ya-composer-intro h2 {
	font-family: var(--ya-serif);
	font-size: 1.3rem;
	letter-spacing: -.02em;
}

.ya-publication-form {
	padding: 22px;
}

.ya-type-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ya-type-option {
	min-height: 41px;
	padding: 7px 8px;
	font-size: .7rem;
}

.ya-field-group textarea {
	font-family: var(--ya-serif);
	font-size: .98rem;
}

/* Page and taxonomy */
.page-heading {
	margin-bottom: 14px;
	padding: 0 2px;
}

.page-card,
.taxonomy-hero,
.profile-hero,
.publication-article,
.author-after-article,
.comments-area {
	border: 1px solid var(--ya-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--ya-shadow-xs);
}

.page-card {
	padding: 30px;
}

.entry-content {
	font-family: var(--ya-serif);
	font-size: 1rem;
	line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--ya-sans);
	line-height: 1.25;
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--ya-accent);
	color: #3b3732;
	font-size: 1.12em;
	font-style: italic;
}

.taxonomy-hero {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 14px;
	padding: 20px;
}

.taxonomy-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--ya-accent-soft);
	color: var(--ya-accent);
}

.taxonomy-icon .site-icon {
	width: 22px;
	height: 22px;
}

.taxonomy-hero p {
	margin: 6px 0 0;
	color: var(--ya-muted);
	font-size: .78rem;
}

/* Profile */
.profile-hero {
	overflow: hidden;
	margin-bottom: 16px;
}

.profile-cover {
	position: relative;
	height: 142px;
	background:
		linear-gradient(120deg, rgba(123, 21, 27, .85), rgba(73, 16, 19, .92)),
		repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.05) 18px 19px);
	overflow: hidden;
}

.profile-cover::before,
.profile-cover::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50%;
}

.profile-cover::before {
	width: 260px;
	height: 260px;
	right: -60px;
	top: -130px;
}

.profile-cover::after {
	width: 130px;
	height: 130px;
	right: 85px;
	top: 30px;
}

.profile-cover-quote {
	position: absolute;
	right: 26px;
	bottom: 15px;
	color: rgba(255,255,255,.88);
}

.profile-cover-quote .brand-mark {
	width: 58px;
	height: 58px;
}

.profile-main {
	position: relative;
	padding: 0 23px 22px;
}

.profile-avatar-wrap {
	position: absolute;
	left: 22px;
	top: -48px;
}

.profile-avatar-wrap img {
	display: block;
	width: 96px;
	height: 96px;
	border: 5px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	background: #eee;
}

.profile-actions {
	display: flex;
	justify-content: flex-end;
	min-height: 55px;
	padding-top: 12px;
}

.profile-follow-button,
.profile-secondary-button {
	height: 36px;
	padding: 0 13px;
	border: 1px solid var(--ya-accent);
	background: var(--ya-accent);
	color: #fff;
	font-size: .72rem;
}

.profile-follow-button:hover,
.profile-secondary-button:hover {
	background: var(--ya-accent-hover);
	color: #fff;
}

.profile-follow-button.is-active,
.profile-secondary-button {
	border-color: var(--ya-border-strong);
	background: #fff;
	color: var(--ya-text);
}

.profile-follow-button.is-active:hover,
.profile-secondary-button:hover {
	border-color: var(--ya-accent);
	background: var(--ya-accent-soft);
	color: var(--ya-accent);
}

.profile-follow-button .site-icon,
.profile-secondary-button .site-icon {
	width: 16px;
	height: 16px;
}

.profile-identity h1 {
	margin: 0;
	font-family: var(--ya-serif);
	font-size: 1.7rem;
	line-height: 1.15;
	letter-spacing: -.03em;
}

.profile-identity > span {
	color: var(--ya-muted);
	font-size: .76rem;
}

.profile-bio {
	max-width: 560px;
	margin: 12px 0 0;
	color: var(--ya-text-soft);
	font-size: .82rem;
	line-height: 1.55;
}

.profile-bio-empty {
	color: var(--ya-muted);
	font-style: italic;
}

.profile-stats {
	display: flex;
	gap: 24px;
	margin-top: 17px;
}

.profile-stats a {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.profile-stats strong {
	font-size: .86rem;
}

.profile-stats span {
	color: var(--ya-muted);
	font-size: .72rem;
}

.profile-feed-section {
	margin-top: 16px;
}

.profile-feed-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 11px;
	padding: 0 3px;
}

.profile-feed-header h2 {
	margin: 2px 0 0;
	font-family: var(--ya-serif);
	font-size: 1.35rem;
	letter-spacing: -.025em;
}

.profile-feed-header > span {
	color: var(--ya-muted);
	font-size: .7rem;
}

/* Single publication */
.publication-article {
	overflow: hidden;
}

.publication-header {
	padding: 25px 28px 20px;
}

.publication-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	color: var(--ya-muted);
	font-size: .68rem;
}

.publication-breadcrumb a:hover {
	color: var(--ya-accent);
}

.publication-type {
	display: inline-flex;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--ya-accent-soft);
	color: var(--ya-accent);
	font-size: .66rem;
	font-weight: 800;
}

.publication-header h1 {
	margin: 10px 0 18px;
	font-family: var(--ya-serif);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 760;
	line-height: 1.12;
	letter-spacing: -.045em;
}

.publication-author-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.publication-author {
	display: flex;
	align-items: center;
	gap: 9px;
}

.publication-author img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

.publication-author > span {
	display: grid;
	line-height: 1.2;
}

.publication-author strong {
	font-size: .8rem;
}

.publication-author small {
	margin-top: 3px;
	color: var(--ya-muted);
	font-size: .66rem;
}

.publication-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ya-muted);
	font-size: .68rem;
}

.publication-cover {
	margin: 0;
	border-top: 1px solid var(--ya-border);
	border-bottom: 1px solid var(--ya-border);
	background: var(--ya-surface-soft);
}

.publication-cover img {
	display: block;
	width: 100%;
	max-height: 540px;
	object-fit: cover;
}

.publication-content {
	padding: 27px 48px 30px;
	font-size: 1.06rem;
	line-height: 1.82;
}

.publication-content > p:first-child::first-letter {
	float: left;
	margin: .08em .08em 0 0;
	color: var(--ya-accent);
	font-family: var(--ya-serif);
	font-size: 3.3em;
	font-weight: 760;
	line-height: .82;
}

.publication-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding: 0 28px 20px;
}

.publication-topics a {
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--ya-surface-soft);
	color: var(--ya-muted);
	font-size: .68rem;
	font-weight: 670;
}

.publication-actions {
	padding: 10px 17px;
}

.author-after-article {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 13px;
	align-items: center;
	margin-top: 14px;
	padding: 17px;
}

.author-after-article > a:first-child img {
	display: block;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.author-after-article h2 {
	margin: 1px 0 3px;
	font-family: var(--ya-serif);
	font-size: 1.1rem;
}

.author-after-article p {
	margin: 0;
	color: var(--ya-muted);
	font-size: .72rem;
}

/* Comments */
.comments-area {
	margin-top: 14px;
	padding: 22px;
}

.comments-title,
.comment-reply-title {
	font-family: var(--ya-serif);
	font-size: 1.2rem;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid var(--ya-border);
	border-radius: 13px;
	background: var(--ya-surface-soft);
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--ya-border);
	border-radius: 10px;
	background: #fff;
}

.comment-form input[type="submit"] {
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--ya-accent);
	color: #fff;
	font-size: .74rem;
	font-weight: 760;
	cursor: pointer;
}

/* Pagination */
.pagination .nav-links,
.ya-pagination ul {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--ya-border);
	border-radius: 10px;
	background: #fff;
	font-size: .72rem;
}

.page-numbers.current {
	border-color: var(--ya-accent);
	background: var(--ya-accent);
	color: #fff;
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--ya-border);
	background: rgba(255,255,255,.72);
}

.footer-inner {
	width: min(calc(100% - 36px), var(--ya-container));
	min-height: 88px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--ya-accent);
}

.footer-brand > .brand-mark {
	width: 34px;
	height: 34px;
}

.footer-brand > span {
	display: grid;
	color: var(--ya-text);
	line-height: 1.25;
}

.footer-brand strong {
	font-family: var(--ya-serif);
	font-size: .9rem;
}

.footer-brand small {
	color: var(--ya-muted);
	font-size: .62rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ya-muted);
	font-size: .7rem;
}

.mobile-bottom-nav {
	display: none;
}

/* Errors/empty */
.empty-state,
.ya-empty {
	border: 1px dashed var(--ya-border-strong);
	border-radius: 16px;
	background: rgba(255,255,255,.72);
	box-shadow: none;
}

/* Tablet */
@media (max-width: 1180px) {
	:root {
		--ya-container: 1050px;
		--ya-left: 210px;
		--ya-main: 690px;
	}

	.header-inner {
		grid-template-columns: var(--ya-left) minmax(320px, 1fr) auto;
		gap: 18px;
	}

	.site-layout {
		grid-template-columns: var(--ya-left) minmax(0, var(--ya-main));
		gap: 24px;
	}

	.sidebar-right {
		display: none;
	}

	.account-summary-copy {
		display: none;
	}
}

@media (max-width: 900px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.site-header {
		height: auto;
		min-height: 64px;
	}

	.header-inner {
		width: min(calc(100% - 24px), 760px);
		min-height: 64px;
		grid-template-columns: 1fr auto;
		gap: 10px;
	}

	.mobile-menu-toggle {
		display: grid;
	}

	.brand-copy small {
		display: none;
	}

	.header-search {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		padding-bottom: 10px;
	}

	.header-message-button,
	.header-write-button,
	.account-menu summary > .site-icon {
		display: none;
	}

	.site-layout {
		width: min(calc(100% - 24px), 760px);
		grid-template-columns: minmax(0, 1fr);
		margin-top: 14px;
	}

	.sidebar-left {
		position: fixed;
		left: 0;
		top: 0;
		z-index: 1500;
		width: min(84vw, 300px);
		height: 100dvh;
		padding: 82px 18px 28px;
		background: #f8f7f4;
		box-shadow: 20px 0 50px rgba(28,24,20,.14);
		transform: translateX(-105%);
		transition: transform .22s ease;
		overflow-y: auto;
	}

	body.menu-open .sidebar-left {
		transform: translateX(0);
	}

	body.menu-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 1400;
		background: rgba(25, 21, 18, .28);
		backdrop-filter: blur(2px);
	}

	.feed-masthead {
		align-items: flex-start;
		flex-direction: column;
	}

	.feed-tabs {
		width: 100%;
		overflow-x: auto;
	}

	.feed-tabs a {
		flex: 1;
	}

	.site-footer {
		padding-bottom: 76px;
	}

	.footer-inner {
		width: min(calc(100% - 24px), 760px);
	}

	.mobile-bottom-nav {
		position: fixed;
		left: 50%;
		bottom: 10px;
		z-index: 1200;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		align-items: center;
		width: min(calc(100% - 20px), 520px);
		height: 62px;
		padding: 4px 8px;
		border: 1px solid rgba(227,224,218,.95);
		border-radius: 20px;
		background: rgba(255,255,255,.94);
		box-shadow: 0 18px 50px rgba(28,24,20,.18);
		backdrop-filter: blur(18px);
		transform: translateX(-50%);
	}

	.mobile-bottom-nav > a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 3px;
		flex-direction: column;
		height: 52px;
		border-radius: 14px;
		color: var(--ya-muted);
		font-size: .57rem;
		font-weight: 700;
	}

	.mobile-bottom-nav > a:hover {
		color: var(--ya-accent);
	}

	.mobile-bottom-nav .site-icon {
		width: 19px;
		height: 19px;
	}

	.mobile-bottom-nav .mobile-compose {
		width: 48px;
		height: 48px;
		margin: 0 auto;
		border-radius: 50%;
		background: var(--ya-accent);
		color: #fff;
		box-shadow: 0 8px 18px rgba(123,21,27,.23);
	}

	.mobile-bottom-nav .mobile-compose:hover {
		color: #fff;
	}
}

/* Phone */
@media (max-width: 560px) {
	body {
		font-size: 14px;
	}

	.header-inner,
	.site-layout,
	.footer-inner {
		width: min(calc(100% - 16px), 760px);
	}

	.brand-mark,
	.custom-logo {
		width: 37px;
		height: 37px;
	}

	.brand-copy strong {
		font-size: 1.06rem;
	}

	.header-icon-button {
		width: 36px;
		height: 36px;
	}

	.account-menu summary img {
		width: 32px;
		height: 32px;
	}

	.feed-heading-copy h1,
	.page-heading h1,
	.taxonomy-hero h1 {
		font-size: 1.45rem;
	}

	.quick-composer {
		min-height: 56px;
		padding: 8px 10px;
	}

	.quick-composer img {
		width: 34px;
		height: 34px;
	}

	.quick-composer-action span {
		display: none;
	}

	.quick-composer-action {
		width: 34px;
		padding: 0;
		justify-content: center;
	}

	.ya-card {
		border-radius: 14px;
	}

	.ya-card-header {
		padding: 12px 12px 6px;
	}

	.ya-card-content {
		padding: 6px 12px 13px;
	}

	.ya-card-content h2 {
		font-size: 1.15rem;
	}

	.ya-card-text {
		font-size: .84rem;
	}

	.ya-card-actions {
		overflow-x: auto;
		justify-content: space-around;
	}

	.ya-action-label {
		display: none;
	}

	.ya-action {
		min-width: 50px;
	}

	.ya-type-badge span {
		display: none;
	}

	.ya-type-badge {
		width: 28px;
		height: 28px;
		padding: 0;
		justify-content: center;
	}

	.ya-card-menu {
		width: 28px;
		height: 28px;
	}

	.ya-composer-intro {
		align-items: flex-start;
		padding: 17px;
	}

	.ya-composer-avatar img {
		width: 46px;
		height: 46px;
	}

	.ya-publication-form {
		padding: 17px;
	}

	.ya-type-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ya-form-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ya-form-buttons {
		width: 100%;
	}

	.ya-form-buttons button {
		flex: 1;
	}

	.profile-cover {
		height: 118px;
	}

	.profile-main {
		padding: 0 16px 18px;
	}

	.profile-avatar-wrap {
		left: 16px;
		top: -39px;
	}

	.profile-avatar-wrap img {
		width: 78px;
		height: 78px;
		border-width: 4px;
	}

	.profile-actions {
		min-height: 48px;
	}

	.profile-identity h1 {
		font-size: 1.45rem;
	}

	.profile-stats {
		gap: 15px;
	}

	.publication-header {
		padding: 20px 18px 17px;
	}

	.publication-header h1 {
		font-size: 2rem;
	}

	.publication-author-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.publication-content {
		padding: 22px 20px 25px;
		font-size: 1rem;
	}

	.publication-topics {
		padding: 0 18px 18px;
	}

	.author-after-article {
		grid-template-columns: auto 1fr;
	}

	.author-after-article .profile-secondary-button {
		grid-column: 1 / -1;
		width: 100%;
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
		padding: 22px 0;
	}
}

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