/*
Theme Name: Чурчхела — со вкусом
Theme URI: https://churchhelainfo.ru/
Description: Кремово-бордовая тема для журнала о чурчхеле.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: churchhela-journal
License: GNU General Public License v2 or later
*/

:root {
	--cream: #faf4ec;
	--paper: #fffaf4;
	--wine: #710f1e;
	--wine-deep: #4f1119;
	--ink: #282020;
	--muted: #5f4946;
	--line: #dbbca9;
	--gold: #a76843;
	--serif: "PT Serif",Georgia,serif;
	--sans: "Golos Text",Arial,sans-serif;
	--wrap: 1280px;
}

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

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

a {
	color: var(--wine);
	text-underline-offset: .2em;
}

a:hover {
	color: #a12437;
}

button,input,textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
	outline: 3px solid #ac5a37;
	outline-offset: 4px;
}

h1,h2,h3 {
	color: var(--wine-deep);
	font-family: var(--serif);
	line-height: 1.13;
	margin: 0;
	letter-spacing: -.035em;
}

h1 {
	font-size: clamp(2.65rem,5vw,5.05rem);
}

h2 {
	font-size: clamp(2rem,4vw,3.3rem);
}

h3 {
	font-size: clamp(1.35rem,2.25vw,2.05rem);
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: min(var(--wrap),calc(100% - 64px));
	margin-inline: auto;
}

.site-header {
	background: #faf5ed;
	border-bottom: 1px solid #e6d6c8;
	position: relative;
	z-index: 2;
}

.header-row {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font: 700 clamp(1.55rem,2.3vw,2.5rem)/1 var(--serif);
	white-space: nowrap;
	color: var(--wine-deep);
}

.brand img {
	width: 51px;
	height: 40px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.site-nav ul,.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: clamp(16px,2.5vw,43px);
	align-items: center;
}

.site-nav a,.footer-nav a {
	text-decoration: none;
	color: var(--ink);
	font-weight: 550;
	white-space: nowrap;
}

.site-nav a:hover,.footer-nav a:hover {
	color: var(--wine);
	text-decoration: underline;
}

.header-search .search-form {
	border: 1px solid #bca395;
	border-radius: 99px;
	display: flex;
	align-items: center;
	padding: 2px 10px;
	gap: 5px;
	background: #fff8ef;
}

.search-form input[type=search] {
	color: var(--ink);
	min-width: 0;
}

.header-search input {
	border: 0;
	background: transparent;
	width: clamp(85px,10vw,150px);
	padding: 4px 0;
	font-size: .87rem;
}

.header-search button {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	border: 0;
	background: none;
	color: var(--wine-deep);
	padding: 2px;
}

.search-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	position: relative;
}

.search-icon::before {
	content: "";
	position: absolute;
	inset: 1px 5px 5px 1px;
	border: 1.6px solid currentColor;
	border-radius: 50%;
}

.search-icon::after {
	content: "";
	position: absolute;
	right: 1px;
	bottom: 2px;
	width: 7px;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(46deg);
}

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

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	top: 8px;
	left: 8px;
	background: var(--paper);
	padding: 8px 12px;
	z-index: 10;
}

.hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(400px,39vw,650px);
	display: grid;
	align-items: center;
	overflow: hidden;
	background: #f0dfce;
}

.hero-picture,.hero-picture img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-picture {
	z-index: -2;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg,#faf4ec 0%,#faf4eced 17%,#faf4ec9e 30%,transparent 52%);
	pointer-events: none;
}

.hero-content {
	padding-block: 38px 48px;
}

.hero .hero-subtitle {
	max-width: 325px;
	margin: 26px 0 28px;
	font-size: clamp(1.03rem,1.64vw,1.35rem);
	line-height: 1.42;
}

.hero h1 {
	max-width: 560px;
	color: #6c0a1b;
	letter-spacing: -.06em;
}

.eyebrow {
	display: inline-flex;
	gap: .8em;
	align-items: center;
	color: var(--wine);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 15px;
}

.eyebrow::after {
	content: "";
	width: 50px;
	height: 1px;
	background: #ae766a;
}

.button {
	display: inline-flex;
	gap: 14px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 99px;
	background: linear-gradient(#a32b38,#750a1c);
	color: #fff!important;
	padding: 10px 25px;
	min-height: 45px;
	font-weight: 650;
	text-decoration: none;
	text-align: center;
}

.button:hover {
	background: #5e101e;
}

.button span,.card-arrow {
	font: 400 1.4em/1 var(--sans);
}

.quick-topics {
	background: linear-gradient(180deg,#fff9f1,#f8efe5);
	border-block: 1px solid #eddcd0;
	padding: 23px 0;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(4,1fr);
}

.topic {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 7px clamp(10px,2vw,30px);
	text-decoration: none;
	color: var(--wine-deep);
	min-height: 71px;
	font: 700 clamp(1.12rem,1.75vw,1.6rem)/1.07 var(--serif);
}

.topic+.topic {
	border-left: 1px solid #d8b3a4;
}

.topic img {
	width: clamp(44px,5.8vw,83px);
	height: 66px;
	object-fit: contain;
	mix-blend-mode: multiply;
	flex-shrink: 0;
}

.topic:hover span {
	text-decoration: underline;
}

.section {
	padding-block: 34px;
}

.section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	text-align: center;
	margin: 4px 0 25px;
}

.section-title::before,.section-title::after {
	content: "";
	height: 1px;
	background: var(--line);
	width: min(11%,126px);
	flex-shrink: 0;
}

.feature {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 17px;
}

.feature-image,.feature-copy {
	border-radius: 18px;
	overflow: hidden;
}

.feature-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	min-height: 340px;
}

.feature-copy {
	background: linear-gradient(145deg,#fffaf5,#f8ede2);
	border: 1px solid #e8d6c7;
	padding: clamp(22px,3vw,44px);
	position: relative;
	isolation: isolate;
}

.feature-copy::after {
	content: "";
	background: var(--vine-art) center/contain no-repeat;
	position: absolute;
	opacity: .35;
	width: 165px;
	height: 130px;
	right: -16px;
	bottom: -7px;
	z-index: -1;
	mix-blend-mode: multiply;
}

.feature-copy h3 {
	font-size: clamp(1.85rem,3.15vw,3.25rem);
}

.steps {
	padding: 0;
	list-style: none;
	counter-reset: steps;
	margin: 19px 0 24px;
	display: grid;
	gap: 10px;
}

.steps li {
	counter-increment: steps;
	display: flex;
	align-items: center;
	gap: 11px;
	line-height: 1.35;
}

.steps li::before {
	content: counter(steps);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	color: #fff;
	background: #a45e43;
	font: 700 1.15rem/1 var(--serif);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 17px;
}

.card {
	border: 1px solid #e3cfc0;
	background: linear-gradient(150deg,#fff8ef,#f8eee4);
	border-radius: 15px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card-image {
	display: block;
	aspect-ratio: 2.2;
	overflow: hidden;
	background: #eadbce;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .22s;
}

.card:hover img {
	transform: scale(1.035);
}

.card-text {
	padding: 13px 18px 18px;
}

.card h3 a {
	color: var(--wine-deep);
	text-decoration: none;
}

.card h3 a:hover {
	text-decoration: underline;
}

.card p {
	margin: .45em 0 0;
	font-size: .92rem;
	line-height: 1.5;
}

.card-arrow {
	display: inline-block;
	margin-left: 3px;
	color: var(--wine);
}

.meet-section {
	padding-top: 12px;
}

.recent .archive-link {
	text-align: center;
	margin: 24px 0 0;
}

.storage-banner {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	overflow: hidden;
	min-height: clamp(180px,17.5vw,330px);
	background: radial-gradient(ellipse at 45% 30%, #791421, #6b101d 72%);
	color: #fff5ec;
}

.storage-ornament,
.storage-divider,
.storage-art {
	position: absolute;
	pointer-events: none;
}

.storage-ornament {
	inset: 0 auto 0 .9%;
	width: clamp(19px,3.6vw,68px);
}

.storage-ornament img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.storage-divider {
	inset: 17% auto 15% 47.2%;
	width: clamp(24px,3.7vw,68px);
	transform: translateX(-50%);
}

.storage-divider img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mask-image: radial-gradient(ellipse at center, #000 48%, transparent 75%);
}

.storage-art {
	inset: 0 0 0 47.8%;
	z-index: -1;
}

.storage-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 54% 52%;
	mask-image: linear-gradient(90deg, transparent, #000 2%);
}

.storage-copy {
	width: min(38%, 730px);
	margin-inline-start: 8.4%;
	padding-block: clamp(15px,1.5vw,27px);
}

.storage-copy h2 {
	max-width: 8em;
	color: #fff7f3;
	font-size: clamp(2rem,4.45vw,5.35rem);
	line-height: .95;
	letter-spacing: -.045em;
}

.storage-copy h2 a {
	color: inherit;
	text-decoration: none;
}

.storage-copy h2 a:hover {
	text-decoration: underline;
}

.storage-copy h2 a:focus-visible {
	outline-color: #f8d1ac;
}

.storage-copy p {
	max-width: 22em;
	margin: .52em 0 0;
	font-size: clamp(.86rem,1.45vw,1.65rem);
	line-height: 1.23;
}

.site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(97px,9.2vw,175px);
	background: #f9f2ec;
	padding-block: clamp(12px,1.15vw,20px) clamp(10px,1.45vw,24px);
}

.site-footer > .wrap {
	width: min(1640px,85%);
	margin-inline: 4.1% auto;
}

.footer-landscape,
.footer-grapes {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	mix-blend-mode: multiply;
}

.footer-landscape {
	inset: auto auto 0 3.25%;
	width: min(62%, 1190px);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
}

.footer-grapes {
	inset: 0 0 auto auto;
	width: clamp(70px,10.9vw,210px);
}

.footer-landscape img,
.footer-grapes img {
	width: 100%;
}

.footer-row {
	display: grid;
	grid-template-columns: auto minmax(0,1fr) auto;
	align-items: start;
	gap: clamp(12px,3.7vw,65px);
}

.site-footer .brand {
	gap: clamp(5px,.7vw,12px);
	font-size: clamp(1.38rem,2.4vw,2.6rem);
}

.site-footer .brand img {
	width: clamp(34px,4.1vw,74px);
	height: clamp(25px,3.04vw,56px);
}

.footer-nav {
	align-self: start;
	border-inline-start: 1px solid #a68b81;
	padding-inline-start: clamp(10px,3vw,52px);
	margin-block-start: clamp(3px,.55vw,8px);
}

.footer-nav ul {
	flex-wrap: wrap;
	gap: 4px clamp(10px,3.7vw,54px);
	font-size: clamp(.68rem,1.09vw,1.25rem);
	line-height: 1.5;
}

.footer-nav ul a {
	font-weight: 530;
}

.footer-motto {
	position: relative;
	justify-self: end;
	max-width: 15em;
	margin-block-start: clamp(20px,2.7vw,48px);
	padding-bottom: .6em;
	color: var(--wine);
	font: 400 clamp(1.05rem,1.85vw,2.15rem)/1.22 "Marck Script", cursive;
	text-align: center;
}

.footer-motto::after {
	position: absolute;
	inset: auto 20% .07em;
	height: .37em;
	border-top: 1.5px solid currentColor;
	border-radius: 50%;
	transform: rotate(3deg);
	content: "";
}

.footer-privacy {
	margin-block-start: .5em;
	font-size: .82rem;
	text-align: right;
}

.page-space {
	padding-block: 45px 65px;
}

.page-heading {
	margin-bottom: 24px;
}

.page-heading p {
	max-width: 65ch;
	margin-top: .65em;
	color: var(--muted);
}

.breadcrumbs {
	display: flex;
	gap: 6px 9px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: .88rem;
	margin: 0 0 17px;
}

.breadcrumbs a {
	color: var(--wine);
}

.article-layout {
	max-width: 875px;
	margin-inline: auto;
}

.article-header {
	margin-bottom: 22px;
}

.article-header h1 {
	font-size: clamp(2.25rem,5vw,4.15rem);
}

.article-lead {
	margin: 12px 0 0;
	font-size: 1.08rem;
	color: var(--muted);
	max-width: 72ch;
}

.article-cover {
	border-radius: 16px;
	width: 100%;
	aspect-ratio: 2.2;
	object-fit: cover;
	margin-bottom: 28px;
}

.entry-format {
	font-size: 1.05rem;
	line-height: 1.72;
}

.entry-format h2 {
	font-size: clamp(1.7rem,3.5vw,2.6rem);
	margin: 1.3em 0 .55em;
	scroll-margin-top: 24px;
}

.entry-format h3 {
	font-size: clamp(1.25rem,3vw,1.85rem);
	margin: 1em 0 .5em;
	scroll-margin-top: 24px;
}

.entry-format ul,.entry-format ol {
	padding-left: 1.5em;
	margin: 0 0 1.15em;
}

.entry-format li+li {
	margin-top: .35em;
}

.entry-format figure {
	margin: 1.4em 0;
}

.entry-format img {
	border-radius: 10px;
	margin: auto;
}

.entry-format figcaption {
	text-align: center;
	font-size: .87rem;
	color: var(--muted);
	margin-top: .4em;
}

.entry-format blockquote {
	margin: 1.2em 0;
	padding: .7em 1em;
	background: #f2e5da;
	border-left: 4px solid #ab694e;
}

.entry-format blockquote p:last-child {
	margin-bottom: 0;
}

.entry-format table {
	border-collapse: collapse;
	width: 100%;
	margin: 1.25em 0;
	background: var(--paper);
}

.entry-format th,.entry-format td {
	border: 1px solid #d8bba9;
	padding: 9px 11px;
	text-align: left;
	vertical-align: top;
}

.entry-format th {
	color: var(--wine-deep);
	font-weight: 700;
	background: #f3e3d5;
}

.entry-format iframe {
	max-width: 100%;
	border: 0;
}

.entry-format .entry-index {
	padding: 1em 1.2em;
	background: #f4e9df;
	border: 1px solid #dfc3b3;
	border-radius: 12px;
	margin: 1.1em 0;
}

.entry-index ol {
	margin: .4em 0 0;
}

.related-area,.comments-area {
	border-top: 1px solid var(--line);
	margin-top: 32px;
	padding-top: 22px;
}

.related-area h2,.comments-area h2 {
	margin: 0 0 14px;
	font-size: 1.75rem;
}

.pagination {
	margin-top: 30px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	border: 1px solid var(--line);
	padding: 5px 12px;
	border-radius: 6px;
}

.page-numbers.current {
	background: var(--wine);
	color: white;
}

.main-search .search-form {
	display: flex;
	gap: 9px;
	margin-bottom: 20px;
}

.main-search input {
	background: white;
	border: 1px solid #bca395;
	border-radius: 6px;
	padding: 8px 12px;
	width: min(360px,100%);
}

.main-search button {
	border: 0;
	border-radius: 6px;
	padding: 8px 12px;
	background: var(--wine);
	color: #fff;
}

.comment-list {
	padding-left: 1.2em;
}

.comment-form label {
	display: block;
}

.comment-form textarea,.comment-form input:not([type=checkbox]):not([type=submit]) {
	width: min(100%,650px);
	background: #fff;
	border: 1px solid #bca395;
	border-radius: 5px;
	padding: 8px;
}

.comment-form .submit {
	border: 0;
	background: var(--wine);
	color: white;
	border-radius: 99px;
	padding: 8px 20px;
}

.aligncenter {
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0 1em .6em 0;
}

.alignright {
	float: right;
	margin: 0 0 .6em 1em;
}

.wp-caption {
	max-width: 100%;
}

@media(max-width:1000px) {
	.header-row {
		gap: 18px;
	}
	.site-nav ul {
		gap: 17px;
	}
	.header-search input {
		width: 105px;
	}
	.topic {
		gap: 9px;
	}
	.feature-image img {
		min-height: 320px;
	}
}

@media(max-width:760px) {
	.wrap {
		width: calc(100% - 32px);
	}
	.header-row {
		min-height: 0;
		padding-block: 10px;
		gap: 11px;
		display: grid;
		grid-template-columns: 1fr auto;
	}
	.brand img {
		width: 43px;
		height: 33px;
	}
	.site-nav {
		grid-row: 2;
		grid-column: 1/-1;
		border-top: 1px solid #e6d6c8;
		padding-top: 6px;
	}
	.site-nav ul {
		justify-content: space-between;
		gap: 6px;
		font-size: clamp(.73rem,2.7vw,.94rem);
	}
	.header-search {
		grid-row: 1;
		grid-column: 2;
	}
	.header-search input {
		width: 86px;
	}
	.hero {
		display: block;
		min-height: 0;
		background: #f9f0e6;
	}
	.hero-picture {
		position: relative;
		height: clamp(155px,49vw,340px);
		display: block;
		z-index: auto;
	}
	.hero-picture img {
		object-position: 73% center;
	}
	.hero::after {
		display: none;
	}
	.hero-content {
		padding-block: 25px 28px;
	}
	.hero h1 {
		font-size: clamp(2.45rem,9.2vw,4.65rem);
	}
	.hero .hero-subtitle {
		margin: 12px 0 17px;
	}
	.eyebrow {
		margin-bottom: 10px;
	}
	.quick-topics {
		padding: 10px 0;
	}
	.topic-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
	.topic {
		min-height: 65px;
		padding: 8px 9px;
	}
	.topic img {
		width: 43px;
		height: 44px;
	}
	.topic:nth-child(3) {
		border-left: 0;
	}
	.topic:nth-child(n+3) {
		border-top: 1px solid #e6cbbc;
	}
	.section {
		padding-block: 23px;
	}
	.section-title {
		gap: 10px;
		margin-bottom: 17px;
	}
	.section-title::before,.section-title::after {
		width: 8%;
	}
	.feature {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.feature-image img {
		min-height: 0;
		aspect-ratio: 1.65;
	}
	.card-grid {
		gap: 10px;
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
	.card-text {
		padding: 11px 12px 14px;
	}
	.card h3 {
		font-size: clamp(1.15rem,4.2vw,1.65rem);
	}
	.page-space {
		padding-block: 30px 45px;
	}
	.entry-format th,.entry-format td {
		padding: 6px;
	}
	.entry-format table {
		font-size: .91rem;
	}
}

@media(max-width:390px) {
	.topic {
		font-size: .94rem;
		gap: 6px;
		padding-inline: 6px;
	}
	.topic img {
		width: 30px;
		height: 37px;
	}
	.card-grid {
		grid-template-columns: 1fr;
	}
	.hero h1 {
		font-size: 2.35rem;
	}
	.article-header h1 {
		font-size: 2.12rem;
	}
}

@media(prefers-reduced-motion:reduce) {
	*,*::before,*::after {
		transition: none!important;
	}
}
 
@media (max-width: 800px) {
	.site-footer > .wrap {
		width: calc(100% - 32px);
		margin-inline: auto;
	}
	.footer-row {
		grid-template-columns: auto minmax(0,1fr);
		align-items: center;
		gap: 8px 16px;
	}
	.footer-nav {
		align-self: center;
		margin-block-start: 0;
	}
	.footer-motto {
		grid-column: 1 / -1;
		margin-block-start: 6px;
		margin-inline-end: 9%;
	}
	.footer-privacy {
		margin-inline-end: 10%;
	}
}

@media (max-width: 620px) {
	.storage-banner {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.storage-copy {
		grid-row: 1;
		width: auto;
		margin-inline: max(34px, 10%) 18px;
		padding-block: 23px 20px;
	}
	.storage-copy p {
		font-size: .95rem;
	}
	.storage-art {
		position: relative;
		inset: auto;
		grid-row: 2;
		aspect-ratio: 2.8;
		z-index: 0;
	}
	.storage-art img {
		object-position: 74% 50%;
		mask-image: none;
	}
	.storage-ornament,
	.storage-divider {
		display: none;
	}
	.site-footer {
		padding-bottom: 23px;
	}
	.footer-row {
		grid-template-columns: 1fr;
	}
	.footer-nav {
		padding-inline-start: 0;
		border: 0;
	}
	.footer-nav ul {
		gap: 5px 15px;
		font-size: .8rem;
	}
	.footer-motto {
		margin-inline-end: 11%;
	}
	.footer-landscape {
		inset-inline-start: 0;
		width: 75%;
	}
	.footer-grapes {
		inset: auto 0 0 auto;
	}
}

.related-area .card h3 {
	font-size: clamp(1.13rem,2vw,1.65rem);
}

.related-home {
	margin: 1.15em 0 0;
}

.post-reactions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: .6rem .7rem;
	margin-top: 1.7rem;
}

.reaction-button {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	min-height: 42px;
	padding: .42em .9em;
	border: 1px solid #d2b6a5;
	border-radius: 999px;
	background: var(--paper);
	color: var(--wine);
	font-size: .94rem;
	font-weight: 600;
	cursor: pointer;
}

.reaction-button:hover,
.reaction-button[aria-pressed="true"] {
	background: #f1e0d5;
	border-color: #b88077;
}

.reaction-button:disabled {
	cursor: wait;
}

.reaction-button:focus-visible {
	outline: 3px solid #ac5a37;
	outline-offset: 4px;
}

.like-heart::before {
	content: "♡";
	font-size: 1.3em;
	line-height: 1;
}

.reaction-button[aria-pressed="true"] .like-heart::before {
	content: "♥";
}

.share-menu {
	position: relative;
}

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

.share-panel {
	display: grid;
	gap: .45rem;
	position: absolute;
	inset: calc(100% + 6px) auto auto 0;
	z-index: 2;
	min-width: min(238px, calc(100vw - 32px));
	padding: .75rem;
	border: 1px solid #d2b6a5;
	border-radius: 10px;
	background: var(--paper);
	box-shadow: 0 4px 15px #59121b26;
}

.share-panel button,
.share-panel input {
	padding: .28em .5em;
	border: 1px solid #d2b6a5;
	border-radius: 5px;
	background: #fffaf4;
	color: var(--wine);
	text-align: left;
	font-size: .9rem;
}

.share-panel input {
	width: 100%;
	min-width: 0;
}

.reaction-status {
	align-self: center;
	color: var(--muted);
	font-size: .88rem;
}

@media (max-width: 560px) {
	.share-panel {
		position: static;
		margin-top: 6px;
	}
	.reaction-status:not(:empty) {
		flex-basis: 100%;
	}
}
